12-13-2022 03:21 AM
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
12-13-2022 04:39 AM
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]
12-13-2022 04:41 AM
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.
12-13-2022 06:48 AM - edited 12-13-2022 06:49 AM
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
12-13-2022 06:49 AM - edited 12-13-2022 06:49 AM
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
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