cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

15737
Views
20
Helpful
5
Replies
Beginner

Changing Existing DHCP DNS Servers

Hi All,

Complete Newbie when it comes to Cisco command line routers, trying to learn though...

Can someone give me a quick lesson on how to change the existing DNS Servers within DHCP please on a Cisco 800 series?

Config is as follows:

ip dhcp pool DHCP-POOL

   import all

   network 192.168.18.0 255.255.255.0

   default-router 192.168.18.254

   dns-server 192.168.10.2 83.256.23.424

   domain-name XXXX

   netbios-name-server 192.168.10.2

I wish to remove 83.256.23.424 and replace it with another DNS server

thank you

Lee

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted

Changing Existing DHCP DNS Servers

Hi Lee,

You can do that like below...


Router(config)# ip dhcp pool DHCP-POOL
Router(config-dhcp)# no dns-server 192.168.10.2 83.256.23.424
Router(config-dhcp)# dns-server 192.168.10.2 "another DNS server IP"
Router(config-dhcp)# exit

Please rate the helpful posts.
Regards,
Naidu.

Everyone's tags (1)

Changing Existing DHCP DNS Servers

Yes... To write the configuration to NVRAM so that if the router get reaload anytime unknowingly the configuration will not loose.

Please rate the helpful posts.
Regards,
Naidu.

5 REPLIES 5
Highlighted

Changing Existing DHCP DNS Servers

Hi Lee,

You can do that like below...


Router(config)# ip dhcp pool DHCP-POOL
Router(config-dhcp)# no dns-server 192.168.10.2 83.256.23.424
Router(config-dhcp)# dns-server 192.168.10.2 "another DNS server IP"
Router(config-dhcp)# exit

Please rate the helpful posts.
Regards,
Naidu.

Everyone's tags (1)
Beginner

Changing Existing DHCP DNS Servers

Thank you!

Completed after ive done the following copy running-config startup-config

Is that all I need to do?

Thanks

Lee

Changing Existing DHCP DNS Servers

Yes... To write the configuration to NVRAM so that if the router get reaload anytime unknowingly the configuration will not loose.

Please rate the helpful posts.
Regards,
Naidu.

Beginner

Changing Existing DHCP DNS Servers

Superb. I've rated. thanks for your help

Lee

Changing Existing DHCP DNS Servers

You are most welcome Lee..... :-)

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards