04-16-2007 07:09 AM - edited 03-03-2019 04:33 PM
I am new to a company and I find some devices have the " ip name server " command set but not most of the devices. Where should the command be used and what devices use the command if it is enabled ? switches, routers, or PC's ?
04-16-2007 07:17 AM
Hi,
ip name server "ip from a dns server"
is for setting the dns ip address.
Petr?nio
04-16-2007 07:19 AM
Hi,
"ip name-server" command is used in router and switches to specify name server ip address for name and address resolution.
For example;
ip name-server 192.168.1.128
if you type "ping www.yahoo.com", the device will query the name server (in this case 192.168.1.128) for the ip address of www.yahoo.com.
04-16-2007 07:33 AM
Thanks, should all switches and routers have this command configured in them ? or just the routers ?
04-16-2007 07:23 AM
Denis
The ip name-server command is used by IOS based devices (routers, MSFCs, some switches) to configure a DNS server to be used by the device. This is useful when the device may need to resolve names and addresses. The equivalent command on catOS based devices is set ip dns server
(primary).I think that it is beneficial for both routers and switches to configure a name server. It facilitates things like ping and traceroute. While it is probably more obvious on routers I would do it on both,
HTH
Rick
04-16-2007 09:47 AM
Thanks, This information clarifies the issue for me.
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