RE: No DNS records

From: Scroggins, Kelly <ScroggiK@dont-contact.us>
Date: Mon, 27 Mar 2000 16:51:59 -0600

        Please give more info about your config. -- what os version,
        where is dns server etc, and squid version (I guess that this is
2.3STABLE1?).
        This is the same problem as I got sometime ago (and not only I),
        but it is still unanswered.
        See also a bug section at squid homepage (sorry can't give url now)
-
        for 2.3stable2 there is one bug about dns.

        For now, you can (if this is 2.3stable1) recompile with
--disable-internal-dns
        and set negative_dns_ttl to 1 secounds in squid.conf (or something
like this,
        don't remember exactly).

        I already notified squid-bugs about this. But seemed to be that
this is
        rarely happened problem...

        P.S. What hardware you are using?

        P.P.S. If something wrong with dns, squid gives another messages,
        as, for example, "domain not found", "nameserver timeout" etc...

I'm running "Starting Squid Cache version 2.3.STABLE2 for
i686-pc-linux-gnu...",
on Red Hat 6.1.

My original message addressed your questions. We use our ISPs DNS server on
the outside of our network.
 
[snip](my original message):
My machine is a Dual PII 266 with 128MB RAM, two 8GB SCSI drives (one drive
is dedicated to cache), and two NICs. The NICs are on the same subnet but
only one NIC is on the access list to go through the firewall. I've loaded
Red Hat 6.1 (basic server install) and installed squid. I've also shutdown
several default servers including Apache.

The problem is that when I attempt to browse to a URL from a (NT)
workstation, after a couple of minutes I get the error message quoted below.
I've also attached my squid.conf file.

Also I am able to access the web with the same workstation if it is only
going through the PIX firewall.

################ S u i d E r r o r ##################

The requested URL could not be retrieved

  ------------------------------------------------------------------------

While trying to retrieve the URL: http://www.linuxtoday.com/

The following error was encountered:

     Unable to determine IP address from host name for
     www.linuxtoday.com

The dnsserver returned:

     No DNS records

This means that:

 The cache was not able to resolve the hostname presented in the URL.
 Check if the address is correct.

Your cache administrator is root@localhost.
  ------------------------------------------------------------------------
Generated Mon, 27 Mar 2000 15:07:24 GMT by localhost.localdomain
(Squid/2.3.STABLE2)

############## S q u i d . c o n f ################

# squid.conf
#
# a basic configuration file for the Squid Proxy Web Cache

# set logging to the lowest level
debug_options ALL,1

# define group "all" that encompasses all possible IP addresses
# and group "mynet" that represents my class-C network:
acl mynet src xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx
acl all src 0.0.0.0/0.0.0.0

# define an access control for group "all" to deny http access,
# and another for group "mynet" to allow http access.
#
# The effect of using both is to prohibit access to the cache by
# any address that doesn't satisfy the criteria established
# in group "mynet".
http_access allow mynet
http_access deny all

# set Squid's user and group
cache_effective_user squid squid

# set log directories
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log

# set cache directories of 3.5GB each
cache_dir ufs /usr/local/squid/cache0 3500 16 256
#cache_dir ufs /usr/local/squid/cache1 3500 16 256

# set the cache memory target for the Squid process
cache_mem 80 MB

# the mailbox of the sysadmin
cache_mgr root@localhost

The logs show that it's finding the DNS servers.

############ L o g #####################
2000/03/27 11:30:44| DNS Socket created on FD 5
2000/03/27 11:30:44| Adding nameserver 206.66.12.36 from /etc/resolv.conf
2000/03/27 11:30:44| Adding nameserver 206.66.12.86 from /etc/resolv.conf
2000/03/27 11:30:44| Accepting HTTP connections at 0.0.0.0, port 3128, FD 9.
2000/03/27 11:30:44| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2000/03/27 11:30:44| WCCP Disabled.
2000/03/27 11:30:44| Loaded Icons.
2000/03/27 11:30:44| Ready to serve requests.
2000/03/27 16:03:25| Preparing for shutdown after 1 requests
2000/03/27 16:03:25| Waiting 30 seconds for active connections to finish
2000/03/27 16:03:25| FD 9 Closing HTTP connection
2000/03/27 16:03:27| Shutting down...

############## //EOF// ###############

"Scroggins, Kelly" wrote:
>
> I'm sorry, I meant to include that info in my original message.
>
> I've already verified that I can hit the outside with 'names' as well as
> IPs. I am able to do nslookup and ping URLS. From the squid box.
>
> Thanks,
> Kelly
>
> -----Original Message-----
> From: Blue Lang [mailto:blue@calico.gator.net]
> Sent: Monday, March 27, 2000 4:51 PM
> To: Scroggins, Kelly
> Cc: 'Squid Mailing List'
> Subject: Re: No DNS records
>
> >
> > This means that:
> >
> > The cache was not able to resolve the hostname presented in the URL.
> > Check if the address is correct.
> >
> > Your cache administrator is root@localhost.
> >
------------------------------------------------------------------------
>
> The machine on which squid is running cannot resolve hostnames - ie, DNS
> is not set up properly on it. Make sure you can do
>
> nslookup www.yahoo.com
>
> or whatever from the squid box. If not, make sure your name server's ip
> addy is present in /etc/resolv.conf and that you can reach it - that you
> have a proper route to it, etc.
>
> Good Luck,
> Blue
Received on Mon Mar 27 2000 - 16:08:19 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:27 MST