[Dnsmasq-discuss] "not giving name"
Carlos Carvalho
carlos at fisica.ufpr.br
Wed Oct 3 15:16:31 BST 2007
Simon Kelley (simon at thekelleys.org.uk) wrote on 1 October 2007 11:57:
>Carlos Carvalho wrote:
>> dnsmasq sometimes refuses to send a name to a host with the msg:
>>
>> not giving name aar to the DHCP lease of 192.168.3.141 because the name exists in /etc/dnsmasq/hosts with address 192.168.97.141
>>
>> This is correct. The problem is that the department is divided in
>> vlans, and the same machine gets different IPs when connected to
>> points in different vlans.
>>
>> I wonder if dnsmasq should send the name if it finds it corresponding
>> to that IP in a config file, even if the name is repeated. Perhaps
>> just a warning could be put in the log... Opinions?
>>
...
>The altenative, which _does_ work, is to use dhcp-host
>
>dhcp-host=myhost,192.168.1.100
>dhcp-host=myhost,192.168.2.100
>dhcp-host=myhost,192.168.3.100
>
>Now dnsmasq will pick the host line which fits the current network, and
>insert only that address into DNS: DNS queries will always get the
>correct answer.
You mean a hosts file isn't necessary and I can do the association
IP/name directly in the dhcp-host declaration?
As it is now all queries are answered, while putting the name only in
dhcp-host will produce a NXDOMAIN answer if a machine hasn't got a
lease. Which might not be a bad idea...
More information about the Dnsmasq-discuss
mailing list