Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

What deivces use " ip name server command"

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 ?

5 REPLIES
New Member

Re: What deivces use " ip name server command"

Hi,

ip name server "ip from a dns server"

is for setting the dns ip address.

Petr?nio

Re: What deivces use " ip name server command"

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.

New Member

Re: What deivces use " ip name server command"

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

Hall of Fame Super Gold

Re: What deivces use " ip name server command"

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

New Member

Re: What deivces use " ip name server command"

Thanks, This information clarifies the issue for me.

438
Views
0
Helpful
5
Replies
CreatePlease to create content