Community discussions

MikroTik App
 
Rhapsody01
just joined
Topic Author
Posts: 13
Joined: Thu Mar 05, 2009 6:29 pm
Location: France

Internal Dns error

Thu Mar 05, 2009 9:00 pm

Hi,

I bought a RB450 two weeks ago and i'm already loving it ^^.
I've successfully set up, 2 Wan interfaces with fail over, OpenVpn server + clients, and Qos.
Thanks to the Documentations and Wiki !

But i'm still a noob, and i have one question regarding Dns server on RouteurOs.
I have a static entry in Dns that don't work. Since my english is not very good, here's a screen :
http://img24.imageshack.us/my.php?image=dnserror.jpg
As you can see, Static entry "Server" is working but no "Dedibox".

Some informations :
Wan 1 (primary) : 192.168.2.0/24 -> Mikrotik 192.168.2.1
Wan 2 (backup) : 192.168.1.0/24 -> Mikrotik 192.168.1.66 (Yeah my dns reservation is no good on this screen)
Lan : 192.168.0.0/24 -> Mikrotik 192.168.0.254
OpenVpn : 192.168.88.0/24 -> Mikrotik 192.168.88.1

Remote dns request are allowed.

Dedibox host is a Vpn client, but that should not be a problem.

And the best for the end : From a pc on Lan :
-Ping dedibox : KO
-Nslookup dedibox : OK !!
-Ping 192.168.88.2 : OK

Do you guys have an idea ?
Thanks !
Last edited by Rhapsody01 on Fri Mar 06, 2009 10:41 am, edited 2 times in total.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Internal Dns error

Fri Mar 06, 2009 1:24 am

well, it seems like ROS do not use local static DNS entries while resolving names for 'ping' command
 
Rhapsody01
just joined
Topic Author
Posts: 13
Joined: Thu Mar 05, 2009 6:29 pm
Location: France

Re: Internal Dns error

Fri Mar 06, 2009 1:52 am

I don't have any local Dns server, so why should it work with "Server" and not "Dedibox" ?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Internal Dns error

Fri Mar 06, 2009 10:50 am

I tried to add different domain names to ROS DNS, and it cannot resolve them. I think, 'server' is your Windows machine name, and it's resolved via NetBIOS or something. Try to disconnect your ROS machine from the Server, reboot it and see whether 'Server' name works
 
Rhapsody01
just joined
Topic Author
Posts: 13
Joined: Thu Mar 05, 2009 6:29 pm
Location: France

Re: Internal Dns error

Fri Mar 06, 2009 12:13 pm

Thanks for support !

Even if Ros does not use Dns statics records, Ros Dns server should use it for Dns request form clients on Lan !
What is really weird is that nslookup works, but not ping ! This behavior happens on all my Pc on Lan.
Before seting up Ros, i used to have an Ipcop firewall (linux based firewall) with internal Dns server, which worked like a charm.
Nothing changed but the firewall.

Is Ros Dns server stable ? Does anyone encounter the same behavior ?
I don't want to step up another dns server, since i don't have lots of records (Home use).

Anyway, thanks for help ;)
 
Rhapsody01
just joined
Topic Author
Posts: 13
Joined: Thu Mar 05, 2009 6:29 pm
Location: France

Re: Internal Dns error

Mon Mar 09, 2009 1:34 am

Can someone help me ? :roll:
 
User avatar
omega-00
Forum Guru
Forum Guru
Posts: 1167
Joined: Sat Jun 06, 2009 4:54 am
Location: Australia
Contact:

Re: Internal Dns error

Mon Mar 09, 2009 6:14 am

please make a supout.rif and send it over to mikrotik support
I've been seeing a similar dns problem but haven't been able to get enough info on it yet.

if we both send through info it should help them discover what the prob is :-)
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Internal Dns error

Mon Mar 09, 2009 11:07 am

i have no problems with router resolving entry from /ip dns static

the only configuration is set primary and secondary dns, allow-remote-requests=no
add entry, and i can ping it without problems. no other place to resolve the entry but local dns cahce/dns static entry.
[admin@MikroTik] /ip dns static> print 
Flags: D - dynamic, X - disabled, R - regexp 
 #     NAME         ADDRESS                                        TTL         
 0     test       10.0.0.1                                     1d 
[admin@MikroTik] /ip dns> print 
            primary-dns: 10.5.50.1
          secondary-dns: 10.5.50.1
  allow-remote-requests: no
    max-udp-packet-size: 512
             cache-size: 2048KiB
          cache-max-ttl: 1w
             cache-used: 6KiB
[admin@MikroTik] /ip dns> /ping test
10.0.0.1 64 byte ping: ttl=63 time<1 ms
10.0.0.1 64 byte ping: ttl=63 time<1 ms
10.0.0.1 64 byte ping: ttl=63 time<1 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
if you see other results - use latest version available.
 
Rhapsody01
just joined
Topic Author
Posts: 13
Joined: Thu Mar 05, 2009 6:29 pm
Location: France

Re: Internal Dns error

Mon Mar 09, 2009 4:14 pm

I'm happy that your Dns are working ....

By the way, i already use the Lastest stable version of ROS (3.20).


omega-00 -> I'll send my config file to support, hope it will help.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Internal Dns error

Wed Mar 11, 2009 11:21 am

i have no problems with router resolving entry from /ip dns static

<...>

if you see other results - use latest version available.
yep, checked: with CLI all is working. but try to use WinBox: after successful ping from CLI WinBox says 'Error in Ping To - ip address expected!'. non-local names work fine