Discussion:
[Dnsmasq-discuss] Can DNS return IPs for inactive static DHCP records?
Eric Sandeen
2016-02-25 22:09:29 UTC
Permalink
Say I have host fred, with ip address 1.2.3.4.

I could do:

dhcp-host=11:22:33:44:55:66,fred,1.2.3.4

so that fred always gets 1.2.3.4 when it asks.

But as far as I can tell, unless fred has an active lease, DNS
lookups for fred will fail. Right now it looks like I need
to also do:

host-record=fred,1.2.3.4

to get DNS to answer the query if fred has gone missing.

Do I really need to have 2 directives to cover both cases?

It would be nice if a dhcp-host entry with a fixed IP address
would always result in a host record, so I could query the IP
IP address of a hostname even if that host has no active lease.
This would also cover the case where a host has a static IP
configured within the host and never asks for a DHCP lease.

Are the 2 lines above required (or even correct), or is there
a better way to do this? Or am I doing something dumb here?

Thanks,
-Eric

Loading...