-
Notifications
You must be signed in to change notification settings - Fork 1
/
dnsmasq.conf
39 lines (29 loc) · 1.06 KB
/
dnsmasq.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Provide a DHCP service over our eth0 adapter (ethernet port)
interface=eth0
# Listen on the static IP address of the RPi router
listen-address=10.0.0.1
# Declare DHCP range with an IP address lease time of 12 hours
# 97 host addresses total (128 - 32 + 1)
dhcp-range=10.0.0.32,10.0.0.128,12h
# Assign static IPs to the kube cluster members (RPi K8s worker nodes 1 to 3)
# This will make it easier for tunneling, certs, etc.
dhcp-host=b8:27:eb:00:00:01,10.0.0.50
dhcp-host=b8:27:eb:00:00:02,10.0.0.51
dhcp-host=b8:27:eb:00:00:03,10.0.0.52
# Declare name-servers (using Cloudflare's)
server=1.1.1.1
server=1.0.0.1
# Bind dnsmasq to the interfaces it is listening on (eth0)
# Commented out for now to help dnsmasq server start up
bind-interfaces
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Use the hosts file on this machine
expand-hosts
# Limits name services to dnsmasq only and will not use /etc/resolv.conf
no-resolv
# Uncomment to debug issues
# log-queries
# log-dhcp