Discussion:
[Dnsmasq-discuss] Unable to resolve before dhcp
David Erickson
2016-03-21 23:48:47 UTC
Permalink
All-
We are using dnsmasq inside ddwrt and have noticed that we are unable to
resolve reserved dhcp names until after a device has dhcp'd. IE the
following config line:

dhcp-host=xx:xx:xx:xx:xx:xx,myname,10.128.0.2,2880m

I won't be able to resolve "myname" or "myname.domain.name" until the
device with that MAC address has issued a dhcp request.

Is this expected behavior? Can I correct this without having to add a
corresponding host-record line for every dhcp-host entry?

Thanks,
David
Simon Kelley
2016-04-02 17:11:39 UTC
Permalink
All- We are using dnsmasq inside ddwrt and have noticed that we are
unable to resolve reserved dhcp names until after a device has
dhcp-host=xx:xx:xx:xx:xx:xx,myname,10.128.0.2,2880m
I won't be able to resolve "myname" or "myname.domain.name" until
the device with that MAC address has issued a dhcp request.
Is this expected behavior?
Yes, for the reason that there may be dhcp-host configs associating a
host with addresses on more than one network, and only the address on
the network where the host currently has a DHCP lease should appear in
the DNS.
Can I correct this without having to add a corresponding
host-record line for every dhcp-host entry?
No, that's the recommended way to do it.


Cheers,

Simon.
Thanks, David
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...