cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4197
Views
0
Helpful
3
Replies

DHCP scope DNS servers

tedauction
Level 1
Level 1

Hello, I have seen a router configured with the following DHCP scope:

ip dhcp pool vlan10
network 10.20.90.0 255.255.255.0
default-router 10.20.90.1

I queried the admin about why there was no DNS entries. He said the the following provided DNS to the DHCP clients.

ip name-server 10.2.4.3
ip name-server 10.2.4.4

I thought 'ip name-server' entries were only for the router itself. Is there any possible way that 'ip name-server' can provide DNS servers to clients accessing the DHCP scope ?

1 Accepted Solution

Accepted Solutions

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

That is correct. That is for the router only.

If you want the router to assign dns to clients you need this config

ip dhcp pool vlan10
 network 10.20.90.0 255.255.255.0
 default-router 10.20.90.1
 dns-server 8.8.8.8

HTTH

View solution in original post

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

That is correct. That is for the router only.

If you want the router to assign dns to clients you need this config

ip dhcp pool vlan10
 network 10.20.90.0 255.255.255.0
 default-router 10.20.90.1
 dns-server 8.8.8.8

HTTH

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi

As Reza mentioned below you can configure the dhcp pool to provide DNS servers to the hosts:

ip dhcp pool vlan10
dns-server <DNS IP #1> <DNS IP #2> <DNS IP #3>

Additional, remember to exclude the gateway from the dhcp scope, it is not related to the config above but it is good practice  :-)

ip dhcp excluded-address 10.20.90.1 10.20.90.1  (assuming your gateway is IP .1)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hello

Just like to add - if you receiving dhcp from your ISP you could also use their dns in your own dhcp pools, via importing the ISP's dhcp options for your clients.

ip dhcp pool xxx
network 10.20.90.0 255.255.255.0
default-router 10.20.90.1
import all

res
Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul