Dnsmasq 安裝與設定
Install & Config
Install dnsmasq (assume you r root)
StartUP service
Check service listening on port 53
Config
Tell dnsmasq resolve public netowork from which main DNS nameserver
Setup dnsmasq
resolv-file=/etc/dnsmasq.resolv.conf #specify a resolve file for dnsmasq
interface=eth0 #specify which NIC to use dnsmasq
dhcp-range=192.168.1.101,192.168.1.200,8h #specify IP range and lease period
interface=eth0 #specify which NIC to use dnsmasq
dhcp-range=192.168.1.101,192.168.1.200,8h #specify IP range and lease period
DHCP additional options
dhcp-option=1,255.255.255.0 #specify Subnet mask
dhcp-option=3,192.168.1.254 #specify Gateway
dhcp-option=6,192.168.1.254 #specify DNS
dhcp-option=44,192.168.1.254 #specify WINS
dhcp-option=3,192.168.1.254 #specify Gateway
dhcp-option=6,192.168.1.254 #specify DNS
dhcp-option=44,192.168.1.254 #specify WINS
APPLICATION
While we have a internal network , and we want to resolve all computes those in a internal network.
we don't need to ask master DNS admin to set forward for us.
we don't need to ask master DNS admin to set forward for us.
Just to rewrite our /etc/resolv.conf
nameserver dnsmasq-ip-address
nameserver dnsmasq-ip-address
Run up when boot
Comments
Post a Comment