cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
492
Views
5
Helpful
4
Replies

IOS name-server configuration

HeikkiLavaste
Level 1
Level 1

Hi folks,

Quick question:

Let's say I have a Cisco router/switch configured with two DNS servers:

ip name-server x.x.x.x
ip name-server y.y.y.y

Which one is the primary? The one that was configured first?

In that case. If my primary x.x.x.x fails, server y.y.y.y will be used.

Will x.x.x.x still be queried every time first?

Br,

Heikki Lavaste

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

yes correct of x.x.x.x fails it will look for y.y.y.y for the DNS query.

you need to change the order which ever you looking to have primary and secondary or upto 6 you can add.

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

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I will check the failover when you use 
ip name-server <x.x.x.x> <y.y.y.y>

and 
ip name-server x.x.x.x
ip name=server y.y.y.y

I will run small lab and update you.

Lab the R1 is dns server for both R2 and R3 and in 
Case 1 
in R1 config 
ip name-server 10.0.0.10 10.0.0.20

the two DNS server ip in one line, 
the ping using name is success even if I config DNS name of R2 in 10.0.0.10 and DNS name of R3 in 10.0.0.20
that meaning that R1 ask both DNS server for Name resolve 

 

Screenshot (79).pngScreenshot (78).pngScreenshot (80).png

Lab the R1 is dns server for both R2 and R3 and in 
Case 2
in R1 config 
ip name-server 10.0.0.10

ip name-server 10.0.0.20

the two DNS server ip in two line, 
the ping using name is success even if I config DNS name of R2 in 10.0.0.10 and DNS name of R3 in 10.0.0.20
that meaning that R1 ask both DNS server for Name resolve 

Screenshot (81).pngScreenshot (82).pngScreenshot (83).png

Review Cisco Networking for a $25 gift card