How do I reset the Dynamic-Servers list in RouterOS DNS settings, except for rebooting the router? Mine contains invalid entry 192.168.8.1, which cannot be removed by DHCP-client renew or release. Even temporarily disabling DHCP won’t help.
Are you saying that you’ve had an error in the dhcp server which was thus providing this DNS address in the offers and acknowledgements, then you’ve fixed the error so the dhcp server does not push this DNS address any more, but it does not disappear after the dhcp client obtains a new lease? Or has the address appeared in the dynamic list “out of blue”?
The dynamic servers are set by the “Use peer DNS” option in the relevant interface or address setting option.
E.g. DHCP client or PPP client.
Just remove that checkmark and it will no longer set those dynamic servers.
In that case it sounds like a bug to me, as when the WAN interface went down, the lease should have got lost, and even if you have the physical WAN interface in a bridge, if the same client has obtained a new lease, albeit from a different server, the old one should have got lost as well.
Setting ****
use-peer-dns
to
no
doesn’t make the dhcp client forget the leases’ contents, so once you set it back to
yes
, the full list will be back. The lease is not renewed when you change the
In that case it sounds like a bug to me, as when the WAN interface went down, the lease should have got lost, and even if you have the physical WAN interface in a bridge, if the same client has obtained a new lease, albeit from a different server, the old one should have got lost as well.
Setting > ****
use-peer-dns
>
> to
>
> ```text
no
doesn’t make the dhcp client forget the leases’ contents, so once you set it back to
yes
>
> , the full list will be back. The lease is not renewed when you change the
>
> ```text
use-peer-dns
setting back to
yes
>
> .
Yes, you are right, disabling use-peer-dns doesn't help, now the dynamic-servers contains only one invalid entry:
```text
dynamic-servers: 192.168.8.1
Are you sure that this DNS address comes from the DHCP from the modem? Can’t it come from some VPN interface (L2TP, PPTP)? If not, then it’s really a big and only reboot can remove that address from the list.