| 80 | |
| 81 | = multiple domain-name on same subnet = |
| 82 | * Debian GNU/Linux 6.0.4 (squeeze) |
| 83 | |
| 84 | * /etc/dhcp/dhcpd.conf |
| 85 | {{{ |
| 86 | |
| 87 | ddns-update-style interim; |
| 88 | |
| 89 | option domain-name "dhcp.mitty.jp"; |
| 90 | option domain-name-servers 192.168.0.254; |
| 91 | |
| 92 | default-lease-time 172800; |
| 93 | max-lease-time 2678400; |
| 94 | |
| 95 | authoritative; |
| 96 | |
| 97 | log-facility local7; |
| 98 | |
| 99 | subnet 192.168.0.0 netmask 255.255.254.0 { |
| 100 | option routers 192.168.0.254; |
| 101 | option ntp-servers 192.168.0.254; |
| 102 | option broadcast-address 192.168.0.255; |
| 103 | option domain-search "local.mitty.jp", "dhcp.mitty.jp"; |
| 104 | |
| 105 | pool { |
| 106 | allow unknown-clients; |
| 107 | option domain-name "dhcp.mitty.jp"; |
| 108 | range 192.168.1.100 192.168.1.199; |
| 109 | default-lease-time 7200; |
| 110 | max-lease-time 86400; |
| 111 | ddns-updates on; |
| 112 | } |
| 113 | |
| 114 | pool { |
| 115 | deny unknown-clients; |
| 116 | option domain-name "local.mitty.jp"; |
| 117 | range 192.168.0.100 192.168.0.199; |
| 118 | ddns-updates off; |
| 119 | } |
| 120 | |
| 121 | include "/etc/dhcp/dhcpd.conf.d/local.mitty.jp"; |
| 122 | } |
| 123 | }}} |