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

2017-05-05 Thread Simon Kelley
How do your machines get their IPv6 addresses, and specifically, their
changed IPv6 addresses after the prefix changes.?If you're using DHCPv6
with dnsmasq as the server, then something like this is already
available: if you have a dhcp-range line which has the constructor:
keyword, then you can have IPv6 addresses in dhcp-host lines which have
zero network part, and the relevant prefix will be substituted in.

Cheers,

Simon.


On 05/05/17 15:13, Carsten Spieß wrote:
> 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:" option to 
> --host-record like:
>   
> --host-record=[,],[],[][,constructor:][,]
> 
> Where [] contains only the host-/local-network part and
> [constructor:] will add the prefix from 
> 
> e.g.
> --host-record=myhost,10.1.2.3,::0123:4567:89ab:cdef,constructor:eth1
> for adding the /64 prefix of eth1
> 
> Regards
> Carsten
> 
> 
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 



signature.asc
Description: OpenPGP digital signature
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


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

2017-05-05 Thread Carsten Spieß
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:" option to 
--host-record like:

--host-record=[,],[],[][,constructor:][,]

Where [] contains only the host-/local-network part and
[constructor:] will add the prefix from 

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

Regards
Carsten


pgpyqUwxzxzcl.pgp
Description: Digitale Signatur von OpenPGP
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss