dnsmasq - money168/cobbler GitHub Wiki
dnsmasq
==
https://github.com/jpillora/docker-dnsmasq
==
- Enable the TFTP server
enable-tftp
tftp-root=/var/lib/tftp
mkdir /var/lib/tftp
systemctl enable dnsmasq.service
systemctl start dnsmasq.service
69/tcp and 69/udp
==
http://www.rendoumi.com/yong-dnsmasq-mrepoti-huan-diao-cobbler/
vi /etc/dnsmasq.conf
-—-
domain-needed
bogus-priv
no-resolv
no-poll
#address=/www.google.com/google.com/23.95.9.184
#AliDNS
server=223.5.5.5
server=223.6.6.6
- Google
server=8.8.8.8
server=8.8.4.4
dhcp-range=172.8.2.10,172.8.2.250,30m
dhcp-host=52:54:f6:65:52:39,linux01,172.8.2.50,net:centos6x
dhcp-boot=net:centos6x,/centos6-x86_64/pxelinux.0
dhcp-option=option:router,172.16.8.254
enable-tftp
tftp-root = /tftpboot
#tftp 目錄
log-dhcp
-—-
TFTP server in next_server
you need to enable /etc/cobbler/modules.conf
[dns]
#module = manage_bind
module = manage_dnsmasq
[dhcp]
#module = manage_isc
module = manage_dnsmasq
==
==
vim /etc/dnsmasq.conf
domain-needed
bogus-priv
domain=mydomain.net
expand-hosts
local=/mydomain.net/
listen-address=127.0.0.1
listen-address=192.168.1.10
listen-address=192.168.2.10
bind-interfaces
dhcp-range=lan,192.168.1.100,192.168.1.200
dhcp-range=wifi,192.168.2.100,192.168.2.200
#set default gateway
dhcp-option=lan,3,192.168.1.50
dhcp-option=wifi,3,192.168.2.50
#set DNS server
dhcp-option=lan,6,192.168.1.10
dhcp-option=wifi,6,192.168.2.10
#TFTP Server
dhcp-boot=pxelinux.0
dhcp-boot=pxelinux,servername,192.168.1.25