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:
192.168.1.250 -> pc-srv1.localarea.local -> dhcp + dns
dyn -> pc-dyna.localarea.local
192.168.1.252 -> pc-www1.localarea.local -> apache (www.vhost1.local,
www.vhost2.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?
thanks,
Stefano
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. {
primary 127.0.0.1;
key rndc-key;
}
option domain-name "localarea.local.";
option domain-name-servers 192.168.1.250, 62.94.0.41,
62.94.0.42;
option ip-forwarding off;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.251 192.168.1.254;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
allow unknown-clients;
host pc-0252 {
hardware ethernet 8:00:27:54:fb:e3;
fixed-address 192.168.1.252;
}
zone localarea.local. {
primary 192.168.1.250;
key rndc-key;
}
zone 1.168.192.in-addr.arpa. {
primary 192.168.1.250;
key rndc-key;
}
}
More information about the dhcp-users
mailing list