What deivces use " ip name server command"

Unanswered Question
Apr 16th, 2007

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 ?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
b.petronio Mon, 04/16/2007 - 07:17


ip name server "ip from a dns server"

is for setting the dns ip address.


Danilo Dy Mon, 04/16/2007 - 07:19


"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

if you type "ping www.yahoo.com", the device will query the name server (in this case for the ip address of www.yahoo.com.

DenisFoley Mon, 04/16/2007 - 07:33

Thanks, should all switches and routers have this command configured in them ? or just the routers ?

Richard Burts Mon, 04/16/2007 - 07:23


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,




This Discussion