One dhcp server multiple DNS
Simon Hobson
dhcp1 at thehobsons.co.uk
Thu May 22 06:55:43 UTC 2008
Suhaime Raeze wrote:
>in my dhcpd.conf config i have set a group of static ips
>(192.168.1.1-180) and the rest is obtain via normal DHCP process.
>Clients who obtain IPs via the static IPs are internet enabled
>client whereas the rest is non-internet enabled clients.
>
>I am wondering whether the statement
>
>option domain-name-servers
>
>can be repeated for the block of IPs pool i.e. 192.168.1.181-254
Yes.
This does sound a bit like an RTFM situation ... 'man dhcpd.conf' is
your friend here, and if you want a really good text then "The DHCP
Handbook" by Ralph Droms and Ted Lemon comes highly recommended.
You can define and redefine most options in any scope - and the
server will use the most specific. Eg, you can define DNS servers
globally, then override that setting for just one subnet, or just one
pool, or just one host. Eg :
option domain-name-servers a.b.c.d ;
subnet ..... {
....
}
subnet ..... {
option domain-name-servers e.f.g.h ;
pool {
....
}
pool {
option domain-name-servers i.j.k.l ;
....
}
}
group {
option domain-name-servers m.n.o.p ;
host .... {
}
host .... {
}
}
host .... {
....
option domain-name-servers q.r.s.t ;
}
If you don't specify an option in any particular scope, it is simply
inherited from the enclosing scope. If you do specify one, then it
overrides it.
It sounds like what you want to do is enclose your fixed address host
declarations in a group statement, then add an "option
domain-name-servers ..." to the group - that way you only have to
specify it once for the whole group.
More information about the dhcp-users
mailing list