02-26-2018 02:33 PM - edited 03-03-2019 08:45 AM
I was able to configure a Cisco router to be a DNS server but is there a way to get a reverse DNS configured on it? When pinging the router's IP address it should resolve the IP into a hostname.
Solved! Go to Solution.
02-28-2018 09:20 PM
02-26-2018 04:58 PM
02-26-2018 09:43 PM
Hi,
I hope your solution will be "ip host www.xxx.com X.X.X.X" command.
Regards,
Deepak Kumar
02-27-2018 12:25 PM
I am able to resolve ip addresses into names with the ''ip host'' command but I need it the other way around. Say if you were pinging an IP address it would show you the host name of it.
02-27-2018 03:08 PM
Can you share your config please?
not tested on GNS but on real router it works:
Config on router: ip host esxi 10.100.99.2
Result nslookup based on IP
$ nslookup 10.100.99.2
Server: 10.100.1.1
Address: 10.100.1.1#53
Non-authoritative answer:
2.99.100.10.in-addr.arpa name = esxi.
02-27-2018 09:05 PM
Hi,
By default, Ping is not sending any DNS query, if you are trying to ping with IP address.
If you want to check the hostname also then you have to use some switches as
Ping -a X.X.X.X
So it will check the PTR record also. It is tested you can check the PTR.
Regards,
Deepak Kumar
02-28-2018 11:44 AM
02-28-2018 09:20 PM
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