[Dnsmasq-discuss] possible dns address conflict ?
Simon Kelley
simon@thekelleys.org.uk
Fri, 21 Jan 2005 21:46:01 +0000
matthieu castet wrote:
> Hi,
>
> I don't remember exactly, but if a name is associated with an ip and
> /etc/hosts and a dhcp client provide the same hostname, the dns will
> reply the second address (dhcp one). Shouldn't the static one
> (/etc/hosts) be replied ?
That's not correct: /etc/hosts will always override DHCP. If a DHCP host
tries to claim a name in /etc/hosts and has a different address, it will
be rejected and a message logged the the syslog.
>
> Sorry if it is not the case.
>
> Matthieu CASTET
>
> PS: What happen when more than one dhcp client provide the same hostname ?
The laster client overrides earlier ones. (The DHCP lease will still
exist, but the name mapping will go.)
Cheers,
Simon.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>