DNS Host - who is it?

Ansgar Burchardt ansgar at 2008.43-1.org
Tue Mar 25 15:56:52 UTC 2008


John <John at DMJ-Consultancy.co.uk> writes:
>> The DNS server is listed in /etc/resolv.conf, other information received
>> from the DHCP server is in /var/lib/dhcp/dhclient.* (though this may
>> depend on which DHCP client you are using).
> Thanks, Ansgar. I've checked the following files between two of my
> Ubuntu portables (one works and the other doesn't, and both use the
> same DHCP server!)
> hosts, resolve.conf, dhclient*, host.conf, hostname, hosts.allow, hosts.deny
> Apart, obviously, from the local laptop's own name, the files are 
> identical and reference the correct nameserver and search domain.

What do the `host' or `dig' utilities say if you try to resolve a
host name on the non-working computer?

You can also call them with a nameserver they should use (but this
shouldn't necessary if resolv.conf contains the correct nameserver):
 $ host [hostname] [dns server]
 $ dig [hostname] @[dns server]

Did you try resolving the full host name (e.g. myhost.example.com) or
just the first part (e.g. myhost)?


PGP: 1024D/595FAD19  739E 2D09 0969 BEA9 9797  B055 DDB0 2FF7 595F AD19

More information about the ubuntu-users mailing list