I have configured a Raspberry Pi as a dual-stack (IPv4/IPv6) internet
router. dnsmasq plays an important role in the configuration and it
works great. All computers have dual stack access (including Andriod
phones over WLAN!).

There is just one thing that I don't know how to solve in a good, neat
way.

Since I am using a 6RD-tunnel the ISP (Telia), the IPv6 address
delegation will change when the IPv4 address changes as a result of
expired DHCP lease from the ISP (it will not change often but it will
happen...).

In 6RD, the ISP 6RD-prefix is concatenated with the ISP-customers IPv4
adress resulting in a address chunk available to the customer (typically
64-bits).

The "dnsmasq.conf" file allows me to specify a range of IPv6-addresses
which are used for stateful DHCPv6. This works great!

However, if the IPv4 address (public) changes, I would have to edit the
range (manually or by script) and restart dnsmasq. This is of course a
working solution. But I don't really fancy the idea of stopping a
service, editing the config file and starting again while the clients
are requesting service from the router... maybe I am missing something
here.

Proposal:

I think it would be great if the 6RD-prefix could be read from a file by
dnsmasq (and using 'inotify' so that updates are tracked).

The syntax in the dnsmasq.conf file would need a "symbol" for the
PREFIX. I took $(6RD) as an example below:

:
:
#                                                                               
                   
dhcp-range=$(6RD):1000::a, $(6RD):1000::100, 96, 10m
enable-ra
dhcp-host=id:00:01:00:01:15:c8:32:d6:f0:4d:a2:c7:b9:cc, laptop1,
[$(6RD):1000::4]
:
:

The value read from the prefix file would then be concatenated the
values from the .conf-file (on the fly).
 
This would totally solve the update needs associated with the dynamic
nature of 6RD-type IPv6 addresses.

BTW: I am also trying to convince Telia to add option 212 to their DHCP
servers. The requested dnsmasq feature above and the option 212 would
make the use of 6RD-tunnels automagic.

Please, let me know what you think about this idea.

BR,
Joakim Langlet




_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to