Adding new hostnames to the router without rebooting the router

When using Luci, if I navigate to Network > Hostnames I can add new hostnames and assign IP addresses to them. However, once I've hit Save & Apply, the changes don't take affect until after I reboot my router.

Is there anyway to apply these changes without rebooting? I tried doing /etc/init.d/dnsmasq restart but that doesn't work do the trick unfortunately.

1 Like

have you also restarted the dhcp server ?

How do I do that - which process is that I need to restart? I thought dnsmasq did DNS and DHCP.

You need to reconnect the clients.
Or manually run DHCP release and renew from the clients.
Or specify shorter lease time on OpenWrt and wait until it expires.

1 Like

Turning into a bit of a tangent but is there a way to force OpenWrt to give everyone a new lease in one go without rebooting (apart from the short lease trick)?

Obviously, on my Windows device, I can run ipconfig /release to get a new lease but if I've got multiple devices, I'm wondering if there's a more convenient way that also avoids rebooting the router as there's never a good time to restart a router that's in use 24/7!

No, the possible methods are already listed above.
It's easier when you have something like Ansible or GPO for batch deployment of tasks.


Theoretically, you can disable/remove dnsmasq and use odhcpd which supports RFC 6704 for both DHCPv4 and DHCPv6, but whether it will work or not depends on the clients.

service odhcpd restart

1 Like

odhcpd only manages DHCPv6 by default.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.