Community discussions

MikroTik App
 
Guscht
Member Candidate
Member Candidate
Topic Author
Posts: 236
Joined: Thu Jul 01, 2010 5:32 pm

DNS-resolution without DNS-Sever, Route or IP

Wed Feb 24, 2021 6:29 pm

Hi,

why does the Ping-tool resolve "www.cnn.com" to 151.101.1.67?
The router has no config, no IP, no route(s) and even no DNS server entry:

ping1.jpg
Perfectly resolved DNS in an IP...
ping2.jpg
And even more suspicious, a packet-sniffer shows nothing related to a DNS resolution...
How (and why) can the router resolve the DNS-name in an IP?
You do not have the required permissions to view the files attached to this post.
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: DNS-resolution without DNS-Sever, Route or IP

Wed Feb 24, 2021 6:38 pm

The host is resolved in Winbox on the client device..

Try this in Terminal:

[admin@MikroTik] > /ping [:resolve www.cnn.com] 
failure: dns server failure
 
User avatar
inteq
Member
Member
Posts: 402
Joined: Wed Feb 25, 2015 8:15 pm
Location: Romania

Re: DNS-resolution without DNS-Sever, Route or IP

Wed Feb 24, 2021 6:41 pm

Have you cleared DNS cache?
 
User avatar
cdiedrich
Forum Veteran
Forum Veteran
Posts: 997
Joined: Thu Feb 13, 2014 2:03 pm
Location: Basel, Switzerland // Bremen, Germany
Contact:

Re: DNS-resolution without DNS-Sever, Route or IP

Wed Feb 24, 2021 6:42 pm

Winbox is using your computer's DNS settings.
resolve command in terminal is using the router's DNS settings.
-Chris
 
Guscht
Member Candidate
Member Candidate
Topic Author
Posts: 236
Joined: Thu Jul 01, 2010 5:32 pm

Re: DNS-resolution without DNS-Sever, Route or IP

Wed Feb 24, 2021 6:51 pm

Hi, thanks!

Is this somewhere documented? I searced prior this thread a lot, but found nothing regarding this behaviour...
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: DNS-resolution without DNS-Sever, Route or IP

Wed Feb 24, 2021 7:31 pm

Not really. It has been mentioned before on the forum.

viewtopic.php?f=2&t=103739&p=515485#p515505

I just confirmed that Winbox 3.0 still has the behavior where typing a hostname into "Ping To" will use the client's DNS resolver, and not the remote Mikrotik's. I put a hostname into the ping tool, and the Mikrotik tried to ping to my office's internal IP and not the public IP that external hosts would get from DNS.
 
JJT211
Frequent Visitor
Frequent Visitor
Posts: 55
Joined: Sun Apr 28, 2019 9:01 pm

Re: DNS-resolution without DNS-Sever, Route or IP

Sun May 01, 2022 4:10 pm

Ive been checking DNS this way for a while but just came across this issue just now. I guess it makes sense if you think about it as the Winbox application resides on the PC not the router but this is very misleading IMO. Moving forward, Ill be testing DNS via address-list but I would consider this a bug. Are there any use cases where it would be needed? I guess if youre accessing a remote Mikrotk via DNS name, then yea, it would need to use the client DNS. But Im sure Mikrotik could code in the different scenarios. Maybe I should reach out to Mikrotik support?

Who is online

Users browsing this forum: Bing [Bot] and 71 guests