<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">On AstLinux (<a href="http://www.astlinux-project.org">www.astlinux-project.org</a>) we use wide-dhcpv6 as our client to obtain IPv6 from the ISP.  In the conf file for that we specify a script "/etc/dhcp6c.script" that is called whenever the ISP updates IPv6 and we can act on any changes to the delegated prefixes.  Our script file is here...</div><div class="gmail_default"><font face="verdana, sans-serif"><a href="https://github.com/astlinux-project/astlinux/blob/master/package/wide-dhcpv6/dhcp6c.script">https://github.com/astlinux-project/astlinux/blob/master/package/wide-dhcpv6/dhcp6c.script</a></font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">AstLinux uses dnsmasq for internal interface dhcp server, dns and router advertisements.  We do not restart dnsmasq when prefix changes (have not found a need to do that) but no reason why you could not.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 2, 2017 at 7:50 AM, M. Buecher <span dir="ltr"><<a href="mailto:maddes+dnsmasq@maddes.net" target="_blank">maddes+dnsmasq@maddes.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody,<br>
<br>
dnsmasq is used in my small LAN at home and it provides static interface ids to a few servers for Global Unicast Addresses (GUA, 2000::/3) too.<br>
The GUA prefix from my ISP is advertised via RA by my router (M+O+A flags set).<br>
As the prefix from my ISP changes from time to time I restart dnsmasq manually so that it reads the new prefix via the dhcp-range constructor method.<br>
Of course I would prefer that this would happen automatically.<br>
<br>
Has anyone setup such an similar automatic reloading on a new prefix?<br>
<br>
OS is Raspbian 9.0 "Stretch" (Debian derivative).<br>
Network config via systemd-networkd.service and *not* Debian's default ifupdown legacy compatibility networking.service.<br>
Another possible alternative would be dhcpcd [<a href="https://roy.marples.name" rel="noreferrer" target="_blank">https://roy.marples.name</a>].<br>
<br>
Kind regards<br>
Maddes<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
/etc/systemd/network/ethernet.<wbr>network:<br>
</blockquote></blockquote></blockquote>
[Match]<br>
Name=en*<br>
<br>
[Network]<br>
IPv6AcceptRA=yes<br>
LinkLocalAddressing=ipv6<br>
IPv6Token=::a:b:c:d<br>
IPv6PrivacyExtensions=yes<br>
<br>
[Address]<br>
## ULA<br>
Address=fd00:1:2:3:a:b:c:d/64<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
/lib/systemd/system/<a href="http://dnsmasq.se">dnsmasq.se</a><wbr>rvice:<br>
</blockquote></blockquote></blockquote>
[Unit]<br>
Description=dnsmasq - A lightweight DHCP and caching DNS server<br>
Requires=network.target<br>
Wants=nss-lookup.target<br>
Before=nss-lookup.target<br>
After=network.target<br>
<br>
[Service]<br>
Type=forking<br>
PIDFile=/run/dnsmasq/dnsmasq.p<wbr>id<br>
<br>
# Test the config file and refuse starting if it is not valid.<br>
ExecStartPre=/usr/sbin/dnsmasq --test<br>
<br>
# We run dnsmasq via the /etc/init.d/dnsmasq script which acts as a<br>
# wrapper picking up extra configuration files and then execs dnsmasq<br>
# itself, when called with the "systemd-exec" function.<br>
ExecStart=/etc/init.d/dnsmasq systemd-exec<br>
<br>
# The systemd-*-resolvconf functions configure (and deconfigure)<br>
# resolvconf to work with the dnsmasq DNS server. They're called liek<br>
# this to get correct error handling (ie don't start-resolvconf if the<br>
# dnsmasq daemon fails to start.<br>
ExecStartPost=/etc/init.d/dnsm<wbr>asq systemd-start-resolvconf<br>
ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf<br>
<br>
<br>
ExecReload=/bin/kill -HUP $MAINPID<br>
<br>
[Install]<br>
WantedBy=multi-user.target<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelle<wbr>ys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk<wbr>/mailman/listinfo/dnsmasq-disc<wbr>uss</a><br>
</blockquote></div><br></div>