cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
20753
Views
0
Helpful
4
Replies

DNS name resolution on IOS router terminal

nbaker011
Level 1
Level 1

Hello, I have an 800 series I'm going through the configuration on and have a question on how to get dns name resolution to work on the router itself. I'm not running a local dns server (I'm using the one from the ISP). After running autosecure on the router, dns resolution on the router itself doesm't seem to work anymore. Meaning if I login via SSH into the router to run diagnostics it doesn't resolve - for example if I do "ping www.cisco.com" its stuck on

Cisco891F#ping www.cisco.com

Translating "www.cisco.com"...domain server (X.X.X.X) !--- X.X.X.X is my ISP's modem

% Unrecognized host or address, or protocol not running.

I can ping X.X.X.X directly (and 23.72.0.170, which is www.cisco.com)

On the LAN side, the PCs are provided with the same dns server (X.X.X.X), and name-resolution seems to be working there, so the router is letting dns queries through, but doesn't seem to be able to use the name server directly.

I can provide the relevant configuration info, if there isn't something obvious i'm missing.

Thanks,

Nick.

1 Accepted Solution

Accepted Solutions

Austin Sabio
Level 4
Level 4
ip domain lookup
ip name-server
ip domain name

Make sure all above commands are enabled. 

Please see http://www.cisco.com/c/en/us/support/docs/ip/domain-name-system-dns/24182-reversedns.html

Good luck! 

View solution in original post

4 Replies 4

Milos Megis
Level 3
Level 3

Hi, use command (in configuration mode) "ip name-server x.x.x.x" where x.x.x.x is IP address of some DNS server

It has been quite a while since I have looked at autosecure and I am not sure exactly what it is doing. But it is pretty obvious that part of what it does to make the router more secure is to not use DNS for resolving names to IP addresses. I know that one perspective about making a router more secure is to remove all non essential services. So disabling DNS resolution reduces the things that might possible be used to attack the router. But I agree with your point that having name resolution makes management of the network and troubleshooting more convenient. So I would suggest that you have a look at the current config of the router, find what autosecure disabled, and enable it.

HTH

Rick

HTH

Rick

Austin Sabio
Level 4
Level 4
ip domain lookup
ip name-server
ip domain name

Make sure all above commands are enabled. 

Please see http://www.cisco.com/c/en/us/support/docs/ip/domain-name-system-dns/24182-reversedns.html

Good luck! 

nbaker011
Level 1
Level 1

Thanks, that was the link I was trying to find. There is an incoming access list on the internet facing interface. I didn't think this was the problem seeing as the PCs work fine. I added the following to the acl:

 permit udp any any eq domain

 permit udp any eq domain any

So I don't quite understand why this works now, but it does. The only other item on the configuration is "ip inspect dns-timeout 7". Not the highest priority for me at the moment, but would be nice to understand the inconsistency.

Thanks,

Nick.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card