Page 1 of 1

DNS troubles in Mikrotik

Posted: Wed Sep 14, 2016 3:28 pm
by Peque
Hi Guys.
I have a Mikrotik Hex - which I'm using at a little shop.
Unfortunably there's a error somewhere I cannot find where it is.
When trying to ping directly for Mikrotik Winbox Terminal - I'm getting this:
 > ping google.com
invalid value for argument address:
    invalid value of mac-address, mac address required
    invalid value for argument ipv6-address
    while resolving ip-address: could not get answer from dns server
But when looking in dns settings - it'll look fine.
Although I've have a reserved Dynamic IP from the ISP
 /ip dns> print
                servers: 8.8.8.8
        	dynamic-servers: 193.162.153.164,194.239.134.83
  		allow-remote-requests: yes
    		max-udp-packet-size: 4096
   		query-server-timeout: 0ms
    		query-total-timeout: 0ms
             	cache-size: 2048KiB
          	cache-max-ttl: 0s
             	cache-used: 19Ki
What could be the problem here.
the IPv6 Package is disabled - But each time I'm trying anything the network is slow as a 56k Modem - so how can I make this work again

Thanks in advance
P

Re: DNS troubles in Mikrotik

Posted: Wed Sep 14, 2016 3:56 pm
by raymondr15
Maybe connection is too slow to reach DNS server or timing out...
What is the latency to the DNS servers?

Re: DNS troubles in Mikrotik

Posted: Wed Sep 14, 2016 4:14 pm
by kaptain46
Hi,
to reach DNS server, your Routerboard needs to have a default route installed.

You can check it by:
/ip route print
and check if you have a route with dst-address=0.0.0.0/0 and gateway your Internet Router.

Re: DNS troubles in Mikrotik

Posted: Wed Sep 14, 2016 5:09 pm
by Peque
Hi Guys.
Thanks for a quick Reply
In my routes I have these:
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          188.178.222.21            0
 1 ADC  188.178.222.20/30  188.178.222.22  WAN                       0
 2 A S  192.168.201.0/24   192.168.202.1   WAN                       1
 3 ADC  192.168.202.0/24   192.168.202.1   LAN-bridge                0
Which Should be the right setup!
When opening a terminal in Winbox - and trying to ping google.com - it'll give the earlier described error - But when using the tool/ping windows - No problem

Re: DNS troubles in Mikrotik

Posted: Wed Sep 14, 2016 5:21 pm
by macgaiver
Try traceroute to see where the timeout comes into play

Re: DNS troubles in Mikrotik

Posted: Wed Sep 14, 2016 6:28 pm
by Peque
Welll - using traceroute from tool gives a empty answer -
,But am online on the router from outsite - the only thing is the network is really slow on this line.
And my guess is regarding this DNS problem.

But haven't seen that message before regarding this issue:
 > ping google.com
invalid value for argument address:
    invalid value of mac-address, mac address required
    invalid value for argument ipv6-address
    while resolving ip-address: could not get answer from dns server

Re: DNS troubles in Mikrotik

Posted: Wed Sep 14, 2016 11:47 pm
by raymondr15
As I asked earlier, what is the latency to the DNS servers?

Re: DNS troubles in Mikrotik

Posted: Thu Sep 15, 2016 7:14 am
by IntrusDave
do you have a private IP assigned to your WAN?
Maybe start with a default config.

also, try
/ping interface=WAN src-address=188.178.222.22 address=8.8.8.8