[Dnsmasq-discuss] FQDN in /etc/hosts and using that FQDN in dhcp-host
Simon Kelley
simon at thekelleys.org.uk
Sat Jan 14 22:04:08 GMT 2012
On 14/01/12 15:46, Christopher Zimmermann wrote:
> Hi,
>
> I'd like to add FQDNs to my /etc/hosts config and configure the
> correspondent hosts with a dhcp-host entry. Like this:
>
> /etc/resolv.conf:
>
> nameserver 127.0.0.1
> nameserver 193.189.244.202
> nameserver 193.189.244.194
>
> search example.com.
>
> lookup file bind
>
>
>
> /etc/hosts:
>
> 192.168.1.5 test.example.com
>
>
>
> dnsmasq.conf:
>
> domain="#"
> dhcp-host=8e:3a:7d:49:5b:83,test
>
>
>
> But all I get with this conig is:
> DHCPDISCOVER(vr1) 8e:3a:7d:49:5b:83 no address available
I think that either including the non-qualified name in /etc/hosts, ie
192.168.1.5 test.example.com test
or using the qualified name in dhcp-host
dhcp-host=8e:3a:7d:49:5b:83,test.example.com
will work.
HTH
Simon.
More information about the Dnsmasq-discuss
mailing list