Community discussions

MikroTik App
 
thejassman
just joined
Topic Author
Posts: 1
Joined: Wed Mar 27, 2024 9:17 pm

Custom DNS reverts after a day

Wed Mar 27, 2024 9:19 pm

I'm a noob, but.. there definitely seems to be something wrong.

I had DoH working with 1.1.1.1.
Then I decided to dabble with a PiHole.
I set my DNS to the PiHole and press Apply... great, everything works!

...a dayish later?...

I'm back to resolving via Verizon. TL;DR if I goto the webfig page for DNS and simply press Apply -- leaving the existing server IP as-is -- then boom, all my clients are using my pihole again.

For about a dayish.
 
tangent
Forum Guru
Forum Guru
Posts: 1404
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: Custom DNS reverts after a day

Thu Mar 28, 2024 12:15 am

That sounds like the expiration of a DHCP lease to me. Updating the DNS addresses in DHCP doesn't apply them instantly throughout your network; each client keeps using the old information from their current lease until it expires.

Moreover, if the client reappears and asks for the same lease before it expires, I believe the RouterOS implementation simply tells the client to keep using what it already knows. Updating the DHCP configuration doesn't rewrite all the stored leases on the DHCP server! You have to wipe out all the dynamic lease info when you reconfigure DHCP to force all of that to be regenerated:

/ip/dhcp-server/lease/remove [find where dynamic]

Who is online

Users browsing this forum: No registered users and 4 guests