Skip to content
Contents
GuidesOpenWrt

SmartDNS adds a CIDR suffix to the DNS address advertised by DHCP after a restart

DHCP option 6 should deliver the DNS server address without the LAN subnet prefix. First determine whether the address error occurs at configuration generation or after lease renewal.

Applies to · OpenWrt 25.12.2 · SmartDNS · DHCP option 6

What to check

Check if DHCP option 6 displays a service address in the format 192.168.1.1/24.

Connect over Ethernet and run the following commands in an SSH session on the router.

uci show network.lan
uci show dhcp | grep dhcp_option

How to interpret the result

If the DNS in the pool is set to 192.168.1.1/24, compare the dhcp_option values before and after SmartDNS reloads. If the pool contains only an IP address and the client still has a suffix, verify which DHCP server issued the current lease.

Verify and recover

After restarting SmartDNS, check that option 6 lists valid resolver addresses without prefixes or duplicate entries. Renew the test client’s lease. Restore the previous pool options if necessary.

Related guide · What to back up separately from OpenWrt UCI configuration

Explore hardware

Comments