From: David K. <da...@ke...> - 2023-09-26 14:02:32
|
Comcast went down on me again overnight. It did not recover on its own, I had to reset the cable modem. Astlinux handled it well with one exception, on recovery I noticed that DHCPv6 had delegated me a new /60 subnet... different from before. It is in fact the first time comcast has changed the IPv6 delegated subnet for me ever. So in abundance of caution I went and grep'd to see if I had hardcoded the old /60 subnet somewhere. All I found was the /etc/hosts file that was not updated so the IPv6 address for "pbx" on the local LAN was set using the old subnet. This is set by /etc/init.d/network and also /etc/init.d/dnsmasq It feels like dnsmasq should be restarted if the external network interface goes down and then comes back up. This may be done already (have not researched that) but the setting of /etc/hosts is done in the "init" part of the code, not the "start" part of the code, so a "restart" is not good enough. I manually ran a service dnsmasq stop followed by service dnsmasq init and that rebuilt the hosts file. But could this be done automatically? Thanks David. |