目錄表

dnsmasq 輕型 dns/dhcpd 安裝設定

- 安裝 dnsmasq

yum install dnsmasq

- 設定 dnsmasq

vi /etc/dnsmasq.conf
:
port=
dhcp-leasefile=/tmp/dnsmasq.leases
interface=eth1
dhcp-range=192.168.11.101,192.168.11.500,12h
dhcp-option=1,255.255.255.0 #subnet mask
dhcp-option=28,192.168.11.255 #broadcast
dhcp-option=3,192.168.11.250 #default gateway
dhcp-option=6,192.168.11.251 #DNS
:
service dnsmasq start
chkconfig dnsmasq on
  • port= 表示關閉 DNS 功能, 這樣可以解決同主機啟用 bind 的問題

參考網頁