Community discussions

MikroTik App
 
CyberT
Member Candidate
Member Candidate
Topic Author
Posts: 172
Joined: Tue Feb 01, 2011 1:39 pm
Location: Johannesburg, South Africa
Contact:

2 Networks worth of DNS (config problem)

Tue Feb 01, 2011 1:54 pm

Hey Guys

I have been a mikrotik Fan for quite some time, and have been working with mikrotik for a long time, I have recently come across the following problem with DNS, But firstly the network infrastructure.

We have a wireless user group with close on 600 nodes, as with anything this size we relies on dns to make things a little bit more manageable, We have DNS running, and working great. The issue does however arise when u use the Mikrotik to also Establish a PPPoe or any dynamic Link (not for bridging the 2 of course, but for the user to have 1 gateway for both user group and internet), with the use peer dns option enabled it will actively remove the original DNS server (by design i geuss) and overwrite them with the peer.

If i disable this option and use the setting as follows
A) DNS server 1 = User Group
DNS server 2 = Internet

Then i have a huge amount of Internet pages i cannot visit as the page complains that it is unable to resolve host

b) Dns server 1 = Internet
Dns server 2 = User Group

Then i am unable to resolve any internal DNS names.

What i want to know is, Is there a way around this?

As it seems to fail to query the second DNS if the First DNS is Connectible?

Its rather amazing, Ive been following the forums for answers for close on 4 years, First time that i had to ask a question that there wasn't already an answer for on here.

Thanks Guys Keep up the Great work
 
User avatar
sariao
Frequent Visitor
Frequent Visitor
Posts: 92
Joined: Thu Jul 08, 2004 10:55 am
Location: Saudi Arabia

Re: 2 Networks worth of DNS (config problem)

Tue Feb 01, 2011 4:42 pm

You can work around this issue by ether setting up internet DNS on your group DNS server means on Mikrotik DNS server set only your group DNS, then on your group DNS server put your internet DNS.

or! you can set both DNSs on your users computer directly. so primary would be the group DNS and the secondary would be your MIKROTIK DNS then on mikrotik use only internet DNS

Hope this is clear
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: 2 Networks worth of DNS (config problem)

Tue Feb 01, 2011 4:50 pm

I use a static dns entry for this. Use your standard dns servers in the setup, but add your local dns entries as static.
/ip dns static
add name=local.mydomain.com address=192.168.0.2
This will override any external dns entries for local.mydomain.com. Only local networks use it.
Would that help?
 
CyberT
Member Candidate
Member Candidate
Topic Author
Posts: 172
Joined: Tue Feb 01, 2011 1:39 pm
Location: Johannesburg, South Africa
Contact:

Re: 2 Networks worth of DNS (config problem)

Sat Feb 05, 2011 9:55 am

SurferTim

Thank you for the reply, There is a rather large repository of dns's for the local group, as its over 400 sites, and looking into a script to update all local dns adresses could be a viable option, I will firstly try and use the windows workaround, and test that.

What i have found works fairly well is using the dns overrides for the dude, as that network is almost completely mikrotik based, i have been using the dude to manage portions of it with great success, the problem is when u use the old faithful command prompt that the issue arises.

Thanks for the replies
 
CyberT
Member Candidate
Member Candidate
Topic Author
Posts: 172
Joined: Tue Feb 01, 2011 1:39 pm
Location: Johannesburg, South Africa
Contact:

Re: 2 Networks worth of DNS (config problem)

Sat Feb 05, 2011 10:04 am

I used the windows work around as suggested,

Set up the 1 mikrotik to pull group dns
set the 2nd mikrotik to get Inet dns (aka PPP dialer)

In windows
Set Pri DNS to mikrotik 1 (groupdns)
Set sec dns to mikrotik 2 (Inet DNS from Inet Dialer)
 
User avatar
sariao
Frequent Visitor
Frequent Visitor
Posts: 92
Joined: Thu Jul 08, 2004 10:55 am
Location: Saudi Arabia

Re: 2 Networks worth of DNS (config problem)

Sat Feb 05, 2011 12:26 pm

Yes using Static DNS for local group is not practical specially when your local network is using dynamic IPs.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: 2 Networks worth of DNS (config problem)

Sat Feb 05, 2011 1:29 pm

Yes using Static DNS for local group is not practical specially when your local network is using dynamic IPs.
I'll go one better. Using any DNS with dhcp issued ips (not static) is unwise.