Are the DNS servers and default router supposed to update via DHCP when TrueNAS SCALE is connected to a different network (and rebooted)?
I’m running 24.10 and observing that once the DNS servers and default router are set the first time from DHCP they remain that way and are not updated when the system is connected to a different network (even after reboot) even though the actual IP address does change with DHCP. I only have one interface active.
The documentation seems to suggest that they should refresh but it isn’t very clear and the behavior that I am observing is that they do not. Have I missed something?
Complete shutdown and power on or are you only seeing behavior on reboot? I would expect all the data to update.
I would be interested in knowing if rebooting “fixes” your issue, because it should.
If it does not there is a larger problem. There’s also probably a less big hammer approach than rebooting tho.
Still, you really shouldn’t keep your NAS on DHCP unless you expect your DHCP server to remain stable. Those settings aren’t something that should be touched frequently…
Understood about DHCP. But in my case I’m building a second system to take off-site so it will do ZFS replication via Tailscale. I’m moving between different networks (simulated off-site behind a VPN router) to ensure that replication via Tailscale continues to work before I take it to its destination 600 miles away. It is when changing networks for this that I have noticed this behavior. Very repeatable.
(I know it’s not the DHCP server because other clients behave correctly)
I have done both a simple reboot as well as a complete power off. No difference. Though I don’t really see what the difference from a software perspective should be either way.
I did this again after moving networks and rebooting.
Default router did update correctly via DHCP.
DNS servers were a partial success.
The new one given by DHCP got added to the list but the old one remained.
Clearing out the old ones causes them all to come back and claim to be via DHCP but old ones that I put in manually return too (my DHCP only provides one DNS server address).
Clearing them out again repeatedly causes the same, they come back.
I had to manually delete the old ones out of /etc/resolv.conf.