Bug 10573
Summary: | DNS not working as it should???? | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Chris Yeo <cyeo> |
Component: | squid | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | CC: | rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-04-18 18:49:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chris Yeo
2000-04-04 02:56:02 UTC
What do you have the various dns_* variables set to in your squid.conf file? Here are all the lines that have dns on them... (grep -i dns squid.conf)# in the access.log. To do this Squid does a DNS lookup of all # TAG: cache_dns_program # Specify the location of the executable for dnslookup process. #cache_dns_program /usr/lib/squid/dnsserver # TAG: dns_children # The number of processes spawn to service DNS name lookups. # To disable dnsservers, set this to 0. NOTE, this is very # strongly discouraged. If you disable dnsservers your Squid # process will BLOCK on DNS lookups! #dns_children 5 # TAG: dns_defnames on|off # Normally the 'dnsserver' disables the RES_DEFNAMES resolver # dnsserver to handle single-component names, enable this #dns_defnames off # TAG: dns_nameservers # Use this if you want to specify a list of DNS name servers # Example: dns_nameservers 10.0.0.1 192.172.0.4 #dns_nameservers none # negative caching of DNS lookups. # TAG: positive_dns_ttl time-units # Time-to-Live (TTL) for positive caching of successful DNS lookups. #positive_dns_ttl 6 hours # TAG: negative_dns_ttl time-units # Time-to-Live (TTL) for negative caching of failed DNS lookups. #negative_dns_ttl 5 minutes # A list of other DNS names that your cache has. # TAG: dns_testnames # The DNS tests exit as soon as the first site is successfully looked up # If you want to disable DNS tests, do not comment out or delete this #dns_testnames netscape.com internic.net nlanr.net microsoft.com # dns # By default Squid checks that DNS responses are received Is squid resolving only the hosts present in DNS, as opposed to those in /etc/hosts? My domain (internally) is internal.horizon.sk.ca, when I reference a 'local' website, I must give the FQDN in order to get there. This is not a huge deal. But when I add hosts to /etc/hosts (for named multiple servers under apache/IIS), then it resolves via DNS, instead of what is listed in /etc/host.conf, which is: root@goofy:[ /home/cyeo ] cat /etc/host.conf order hosts,bind multi on Duh, I forgot. squid, as of version 2.3, does its own DNS lookups internally, no longer using a 'dnsserver' child. It does these DNS lookups directly, without going through gethostbyname(), and therefore ignores /etc/hosts, NIS, and other things of that sort. If you want to use the old DNS child processes, you need to recompile with --disable-internal-dns. |