06-22-2021 02:25 AM
Hello and sorry for my english,
just little question, I have 4 DNS servers to set on switchs : 10.4.0.1 10.131.0.1 10.4.0.2 10.131.0.2
if there is a difference if i put DNS like this :
ip name-server 10.4.0.1 10.131.0.1 10.4.0.2 10.131.0.2
and like this :
ip name-server 10.4.0.1
ip name-server 10.131.0.1
ip name-server 10.4.0.2
ip name-server 10.131.0.2
thanks a lot
Solved! Go to Solution.
06-22-2021 02:34 AM
Hello,
No apologies needed - your English is perfectly okay!
There is no difference between the two forms of the command. The second style (one DNS per command) will automatically collapse into the first style (multiple DNS per command):
r1(config)# ip name-server 1.2.3.4 2.3.4.5 r1(config)# ip name-server 3.4.5.6 r1(config)# do show run | i name-server ip name-server 1.2.3.4 2.3.4.5 3.4.5.6
This was tested on an IOS-XE 16.12.
Best regards,
Peter
06-22-2021 02:33 AM
depends on the device, both should work.
06-22-2021 02:34 AM
Hello,
No apologies needed - your English is perfectly okay!
There is no difference between the two forms of the command. The second style (one DNS per command) will automatically collapse into the first style (multiple DNS per command):
r1(config)# ip name-server 1.2.3.4 2.3.4.5 r1(config)# ip name-server 3.4.5.6 r1(config)# do show run | i name-server ip name-server 1.2.3.4 2.3.4.5 3.4.5.6
This was tested on an IOS-XE 16.12.
Best regards,
Peter
06-22-2021 03:51 AM - edited 06-22-2021 03:52 AM
Salut,
Avec plaisir ; )
Peter
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