[Dnsmasq-discuss] define IPv6 prefix for host-records

Carsten Spieß fli4l at carsten-spiess.de
Fri May 5 15:13:01 BST 2017


Hello ,

i'm using dnsmasq to deliver IPv6 DNS entries.
The IPv6 prefix i get dynamicaly from my ISP after dialin (pppoe),
but this changes on every reconnect (which is at least once a day).

When the prefix changes every IPv6 host in /etc/hosts 
dnsmasq.conf files has to be changed to cause dnsmasq to deliver
the IPv6 address containing the new prefix.
(I didn't find a posibility to configure dnsmasq to do this
automatically)

I would like to suggest to add an "constructor:<interface>" option to 
--host-record like:
	--host-record=<name>[,<name>....],[<IPv4-address>],[<IPv6-address>][,constructor:<interface>][,<TTL>]

Where [<IPv6-address>] contains only the host-/local-network part and
[constructor:<interface>] will add the prefix from <interface>

e.g.
--host-record=myhost,10.1.2.3,::0123:4567:89ab:cdef,constructor:eth1
for adding the /64 prefix of eth1

Regards
Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20170505/b2a8e0b5/attachment.sig>


More information about the Dnsmasq-discuss mailing list