Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 21439

General • Split DNS

$
0
0
Just wanted to give a gentle shout-out to BartoszP for enlightening me about split-dns here:

viewtopic.php?p=1136419#p1136419

I've been playing with split-DNS and it's totally cool.

I (effectively, randomly) chose a location with a router (call it location-1) to act as a "central DNS server" and set up static dns entries such as:
Code:
/ip dns staticadd address=192.168.2.2 comment=212router.internal name=212router.internal type=Aadd address=10.10.100.80 comment=729router.internal name=729router.internal type=A
Then, on a router at another site (location-2), I have this entry:
Code:
/ip dns staticadd comment=.internal forward-to=192.168.2.2 regexp=".*\\.internal" type=FWD
Now, from location-2 I can ping (or use in any way in place of an IP address) 212router.internal or 729router.internal

Not sure how this makes my life easier or better, but it feels like it should.

Statistics: Posted by Josephny — Sun Apr 06, 2025 2:45 pm



Viewing all articles
Browse latest Browse all 21439

Trending Articles