Jamby wrote:

>       Here's a copy of some of my files
> 
> "resolv.conf" 
> domain nubble.light-by-the-sea.com
> search nubble.light-by-the-sea.com light-by-the-sea

Note: the resolver(5) manpage says:

     The domain and search keywords are mutually exclusive. If more
     than one instance of these keywords is present, the last instance
     wins.

> nameserver 127.0.0.1
> #nameserver 207.69.188.185
> #nameserver 207.69.188.186
> 
> #search domain.com    
> "resolv.conf" end--
> 
> The two nameservers commented out above are my ISP's. I commented them
> out while experimenting with the problem.
> 
> 
> "hosts"
> #
> #  /etc/hosts
> #
> # This file contains the hostnames and their address for hosts in the
> # network.  This file is used to resolve a hostname into an Internet
> # address.
> #
> # Internet Address      Hostname        # Comments
> # 192.9.200.1           net0sample      # ethernet name/address
> # 128.100.0.1           token0sample    # token ring name/address
> # 10.2.0.2              x25sample       # x.25 name/address
> 
> 127.0.0.1       localhost       nubble.light-by-the-sea
> #0.0.0.0                                jamby97.users.mindspring.com
> 192.168.0.4     capeblanco      capeblanco.light-by-the-sea.com

This is why you can ping capeblanco by name. Unless you've modified
/etc/nsswitch.conf, gethostbyname() always checks /etc/hosts first.
nslookup, OTOH, only uses DNS.

> 192.168.0.2     heceta          heceta.light-by-the-sea.com
> 192.168.0.3     hatteras        hatteras.light-by-the-sea.com
> 192.168.0.1     nubble          nubble.light-by-the-sea.com      
> "hosts" end---
> 
> "host.conf"
> order hosts,bind
> multi on  
> "host.conf" end---

Note: /etc/host.conf doesn't appear to be used on glibc-2 systems. It
has been superseded by /etc/nsswitch.conf.

I can't see anything obviously wrong with your files.

Is named actually running? Are there any firewall rules which would
block access to it?

You could try running nslookup under "strace"; that will show what it
is trying to do, and what is failing (look for error codes; these are
in block capitals and begin with "E", e.g. "ENETUNREACH").

-- 
Glynn Clements <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to