06-24-2012 08:58 PM - edited 03-11-2019 04:22 PM
gusy just want to check the DNS server attached to the firewall can i tried to telnet to port 53 on a roiuter just to see if the remote firewall alllows the conection.......telnet is tcp and DNS is udp based will it work thanks
06-24-2012 11:05 PM
If you are trying to see if connectivity works on DNS request (normally uses UDP/53), then the answer is no, telnet on port 53 will not work.
If you are trying to test DNS resolution/request, then just use "nslookup" from command prompt, then specify the dns server: server
Example from DOS prompt:
C:\Windows\System32>nslookup
> server 4.2.2.2
Default Server: vnsc-bak.sys.gtei.net
Address: 4.2.2.2
> cisco.com
Server: vnsc-bak.sys.gtei.net
Address: 4.2.2.2
Non-authoritative answer:
Name: cisco.com
Addresses: 2001:420:1101:1::a
198.133.219.25
06-24-2012 11:15 PM
No but yes it might.
You can not "mix" udp and tcp, they are totally different protocols so you are using one or the other.
you can not test one of them with the other.
However DNS use BOTH Udp and Tcp so it listens on both protocols.
Udp for small stuff like asking one address or something like that, and for larger transfers such as zone and so on it will switch to using Tcp.
so yes it might work to test with using tcp port 53.
06-25-2012 01:29 AM
Not directly related to your problem, but perhaps helpful:
When testing connections to remote servers, NetCat is much more powerfull than using Telnet for this kind of work.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide