Community discussions

MikroTik App
 
Nixen
just joined
Topic Author
Posts: 4
Joined: Fri Dec 29, 2017 4:22 pm

Trouble with internal DNS server

Fri Dec 29, 2017 6:15 pm

Hello
We've switched from linux-based router (basically a computer with 2 network cards, so) to mikrotik RB433. Now we wanted to use our DNS server to handle requests for our hosted websites and to redirect some requests, based on CNAME. So I'd be very gratefull if you could help us with configuration, I'v already added our local DNS as DNS server in setting and added a frowarding from port 53/tcp and udp to same ports on our server, but it doesn't work for us.
Thank you in advance.
 
poizzon
Member Candidate
Member Candidate
Posts: 113
Joined: Fri Jun 21, 2013 12:53 pm

Re: Trouble with internal DNS server

Sat Dec 30, 2017 1:23 am

--
poi
 
Nixen
just joined
Topic Author
Posts: 4
Joined: Fri Dec 29, 2017 4:22 pm

Re: Trouble with internal DNS server

Sat Dec 30, 2017 12:02 pm

Yeah, I've read this and still I don't know what to do. We're using our own DNS server which is in our local network but we want it to handle external querries, eg. we have site example.com which is forwarded to CNAME example.hosting.com, but we also have site1.example.com which is redirected to our local server of ip 192.168.0.122. And that doesn't work from internet but I think it works from intranet, so master DNS isn't connecting to our DNS (we're in city network).
 
msatter
Forum Guru
Forum Guru
Posts: 1703
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Trouble with internal DNS server

Sat Dec 30, 2017 12:48 pm

Hairpin is still the way to go. Intranet is restricted public on the outside so you have make a table of addresses that should have access and then the standard access control.

All the DNS stuff is done outside and the hairpin will direct internal traffic to the local servers when it sees the your external IP returned by the outside DNS.
One RB4011 (cooled) and a RB760iGS (hEX S) in series. The 4011 Does PPPoE/IKEv2.
The cooler: viewtopic.php?f=3&t=138613&start=300#p799879
Running:
RouterOS 6.47 / Winbox 3.24 / MikroTik APP 1.3.14
 
Nixen
just joined
Topic Author
Posts: 4
Joined: Fri Dec 29, 2017 4:22 pm

Re: Trouble with internal DNS server

Sat Dec 30, 2017 3:47 pm

Okay, I'm gonna try this
 
Nixen
just joined
Topic Author
Posts: 4
Joined: Fri Dec 29, 2017 4:22 pm

Re: Trouble with internal DNS server

Wed Jan 03, 2018 7:26 pm

Okay, huge thanks, it's working now.
But I have another problem now, we have some zones specified in bind config which point to external IP adresses, which have authoritative DNS servers and that resolving doesn't work, dig returns external ip of our network. I think it's not bind-related problem since our dns server was working with old linux router.
Thanks in advance!

Who is online

Users browsing this forum: No registered users and 44 guests