cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1632
Views
0
Helpful
2
Replies

Q: Cisco IOS and ip dns server configuration command

Orlando_Native
Level 1
Level 1

I've looked; but documentation on this isn't exactly clear.

I read where a Cisco device running IOS can function as a DNS forwarder - ie not resolving the name/IP relationship itself; but passing it on to the "real" nameservers and relaying the response back to the client who originally generated the request.   But I can't seem to get the IOS device (in this case a Catalyst 4948E-F switch) to take the ip dns server command like the documentation mentions.

 

So I'm wondering if there's some specific service; feature; or image (lan; ip base; or enterprise) that's actually needed to support this; or whether that function is just left out of images for that family of switches.

 

Can someone actually say - or point me to documentation that clearly says - what the requirements for this function might be?

 

It would have also been nice if this function had been "migrated" to NX-OS; but it doesn't appear that it was.  I only find references to the switch/router being a DNS client.  Unless; again; the documentation is unclear about that as well...

 

Thanks.

2 Replies 2

Hello, 

 

the 'ip dns server' would configure the switch as an authoritative name server, is this what you are looking for ? Or do you want the switch to forward requests to a name server, in which case the 'name-server' command is needed ?

I was under the impression - from the documentation - that the ip name-server commands only configured the dns "client side" of the switch itself; and that if you wanted the switch to be either an authoritative name server *or* a forwarder you needed to enable the switch as a "server side" via ip dns server.

 

From the doc (I want the caching name server version):

 

A Cisco IOS device can provide service to DNS clients, acting as both a caching name server and as an authoritative name server for its own local host table.

When configured as a caching name server, the device relays DNS requests to other name servers that resolve network names into network addresses. The caching name server caches information learned from other name servers so that it can answer requests quickly, without having to query other servers for each transaction.

 

....

 

SUMMARY STEPS

1.    enable

2.    configure terminal

3.    ip dns server                                       <- this command fails with % Invalid input detected at '^' marker.  The '^' marker is under the "n" in "dns".

4.    ip name-server server-address1 [server-address2... server-address6]

5.    ip dns server queue limit {forwarder queue-size-limit | director queue-size-limit}

6.    ip host [vrf vrf-name] [view view-name] hostname {address1 [address2 ... address8] | additional address9 [address10 ... addressn]}

7.    ip dns primary domain-name soa primary-server-name mailbox-name [refresh-interval [retry-interval [expire-ttl [minimum-ttl]]]]

8.    ip host domain-name ns server-name

 

There are more steps following step 3; though I'm not sure they're all necessary.  But even if they are; they'd *follow* step 3; not precede it.

 

Now, *before* I wanted to convert this unit to a caching name server; I already had the "ip name-server  <server1> <server2> commands in place; so the switch could resolve host names for itself; though actually nothing in the switch configuration references host names other than that of the switch itself; which obviously would already know it's own IP.