[Dnsmasq-discuss] dhcp-range for DNS entries: how to gain A and AAAA for same host?
Steffen Nurpmeso
steffen at sdaoden.eu
Tue Mar 16 22:18:38 UTC 2021
Steffen Nurpmeso wrote in
<20210315233512.P_VVW%steffen at sdaoden.eu>:
|Geert Stappers wrote in
| <20210315223843.be2shl6pkr3i22qo at gpm.stappers.nl>:
||On Mon, Mar 15, 2021 at 08:35:44PM +0100, Steffen Nurpmeso:
||> Geert Stappers wrote:
||>> On Sun, Mar 14, 2021 at 01:39:18AM +0100, Steffen Nurpmeso
||>>> For being more automatic and flexible with (many) VMs i changed
||>>> from a static addn-hosts= to a dhcp-hostsfile= approach, which
| ...
||>>> However, i stumbled over a problem on Linux. If i scp a file with
||>>> the name of the VM it tooks a long time, and this is because ssh
||>>> uses getaddrinfo, and the GNU C library resolver sends out queries
||>>> for A and AAAA at the same time. The A is delivered quickly by
||>>> dnsmasq, but the AAAA one is forwarded (thus subject to fail, on
||>>> dotless names).
| ...
||>>> 54:72:01:01:00:15,alp-2021,10.0.1.21,[::5472:101:15]
| ...
||>> dhcp-range=10.0.0.1,10.3.255.253,255.252.0.0,24h
||>> dhcp-range=3fb:1::5472:101:1,3fb:1::5472:104:FFFF,24h
...
|Hm. The thing to me is that hosts.dnsmasq defined entries for
|both, IPv4 and IPv6. It would be great if dnsmasq would treat
|this as a request to act authoritative for this, and since it
|actually does serve the A, it should act for AAAA, and vice versa.
|And if the future would bring the possibility to enforce that
|somehow on dhcp-hostfile= base, even if that does _not_ define any
|address at all but MAC (and hostname), _that_ would be tremendous.
So nothing but a feature request for free. But would be cool!
Interesting the coincidence with the other poster.
I suspend my subscription again, so much work to do.
Ciao, and thanks again for dnsmasq, it is running everywhere for
almost two decades (DNS part)!
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
More information about the Dnsmasq-discuss
mailing list