dhcp reservation, apache and virtual hosts

tangonights at yahoo.it tangonights at yahoo.it
Fri Oct 15 14:38:23 UTC 2010

hello everybody!,

My present configuration include a dhcp and 2 hosts. one of them is a server 
apache running 2 virtual hosts and is now configured static.

gentoo linux: -> pc-srv1.localarea.local -> dhcp + dns
dyn -> pc-dyna.localarea.local -> pc-www1.localarea.local -> apache (www.vhost1.local, 

- how can I configure dhcp, in order to switch the apache host to the dhcp pool 
(even as fixed-address), considering the virtualhost zones? now my static dns 
entries are configured with CNAMEs and different zones but it is not clear to me 
how let dhcp manage them on behalf of the dns server.
- was it a viable solution, when possible, for a small LAN or was it better to 
keep all the servers static?


here is my present dhcpd.conf:

server-identifier	server;
ddns-updates		on;
ddns-update-style	interim;
ddns-domainname		"localarea.local.";
ddns-rev-domainname	"in-addr.arpa.";
ignore			client-updates;
include			"/etc/bind/rndc.key";

zone localarea.local. {
	key rndc-key;

option			domain-name		"localarea.local.";
option			domain-name-servers,,;
option			ip-forwarding		off;

default-lease-time	600;
max-lease-time	7200;

log-facility		local7;

subnet netmask {
	option		broadcast-address;
	option		routers;
	allow		unknown-clients;

	host pc-0252 {
		hardware ethernet	8:00:27:54:fb:e3;

	zone localarea.local. {
		key	rndc-key;

	zone 1.168.192.in-addr.arpa. {
		key	rndc-key;

More information about the dhcp-users mailing list