[Dnsmasq-discuss] resolving lan hostnames

Simon Kelley simon at thekelleys.org.uk
Sat Sep 17 10:23:00 BST 2005


stealth at thekeyboardcowboys.org wrote:
> I am having a problem which resolving LAN hostnames.  I have a FreeBSD
> 5.4-STABLE box setup with dnsmasq and running the standard FreeBSD dhcp
> server.
> 
> On the FreeBSD box I have setup /etc/resolv.conf and /etc/hosts correctly
> and from other boxes on my LAN, can resolve (using nslookup or dig) and
> ping external address and hostnames. eg 'google.com' 'yahoo.com'
> 
> With LAN hostnames, I can resolve them using nslookup or dig. eg 'nslookup
> phoenix'.  That resolves correctly.
> 
> But I cannot ping them using their hostname. eg 'ping phoenix'.  That gets
> a resolve error: Unknown host.
> 
> However if I do 'ping phoenix.', note the period after the hostname, I
> will get a reply.
> 
> Is this supposed to act in this way or is there a configuration option I
> have missed?  Any help about be much appreciated.
> 

try adding

options ndots:0

to /etc/resolv.conf on each of boxes.


Cheers,

Simon.









More information about the Dnsmasq-discuss mailing list