[Dnsmasq-discuss] hostname seems to override my address setting in the config
Simon Kelley
simon at thekelleys.org.uk
Mon Apr 2 20:50:28 BST 2012
On 02/04/12 15:35, Ali Jelveh wrote:
> Hi!
>
> I've just run into a weird issue with our local dnsmasq installation:
> I have an address setting in my config "address=/protonet/10.42.0.1"
> but the moment someone with a host named "protonet" connects and gets
> his ip address dnsmasq seems to no longer return 10.42.0.1 but the IP
> of that new machine, is this intended? Am I doing something wrong?
It's intended that names-addresses from DHCP should override
address=/<domain>/, yes, and if a machine is called "protonet" then that
name will override the address you've configured.
There are at least three approaches that will fix this. If you don't
care about names for DHCP hosts, add
dhcp-ignore-names
to /etc/dnsmasq.conf. That will stop dnsmasq adding the names of any
DHCP hosts to the DNS.
If the problem is just one machine, you could add
dhcp-host=<alternative-name>,<MAC address of client>
to control the name given to that machine.
Alternatively, do something like
domain=example.com
dhcp=fqdn
That will stop the DHCP machine having the name "protonet" (and stop the
override) but it will still have the name "protonet.example.com"
This change will apply to all DHCP names, of course.
HTH
Simon.
>
> Cheers, Ali
>
> _______________________________________________ Dnsmasq-discuss
> mailing list Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list