Ubuntu Server 10.04 その3
- DHCPサーバ
$ sudo apt-get install dhcp3-server
$ sudo vi /etc/dhcp3/dhcpd.conf
ddns-update-style interim;
option domain-name “xxxx.liliso.com”;
option domain-name-servers 192.168.0.10, 192.168.0.1;
default-lease-time 6000;
max-lease-time 72000;
authoritative;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.231 192.168.0.254;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
}
$ sudo vi /etc/bind/named.local.conf
以下を各zoneに追加
allow-update {
127.0.0.1;
192.168.0.10;
};
$ sudo chmod g+w /etc/bind
$ sudo vi /etc/apparmor.d/usr.sbin.named
/etc/bind/** rw, <-wを追加
$ sudo /etc/init.d/apparmor restart
$ sudo /etc/init.d/bind9 restart
$ sudo /etc/init.d/dhcp3-server restart本当は/var/libの下にbindのjournalが作られるようにすべきなんだろうけど、よくわからんのでとりあえずこんな感じ。
Comments and Trackback
Post a comment