-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_dnsmasq.conf
executable file
·47 lines (39 loc) · 1.16 KB
/
example_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
40
41
42
43
44
45
46
47
# Common options for privacy, security and performance
domain-needed
bogus-priv
dhcp-fqdn
localise-queries
no-resolv
cache-size=10000
dhcp-authoritative
dhcp-rapid-commit
bogus-nxdomain=64.94.110.11
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
log-async=5
# what is my own name? set it here
# we assume our router is also calling itself 192.168.1.1 in /etc/hosts.conf
domain=myhostname.net
dhcp-option=option:domain-search,myhostname.net
local=/myhostname.net/
address=/myhostname.net/192.168.1.1
# cloudflare dns
server=1.1.1.1
server=1.0.0.1
# your own resolver on port 5053
#server=127.0.0.1#5053
# listen on all interfaces, except...
interface=*
# ... don't allow Dnsmasq on the internet facing interfaces
except-interface=ppp0
#except-interface=eth0
# The addresses you configured for your AP/LAN
dhcp-range=myhostname,192.168.1.1,192.168.1.254,12h
dhcp-range=myhostname,192.168.2.1,192.168.2.254,12h
# Put a blocklist here for ad/malware filtering
#conf-file=/etc/dnsmasq.d/badsites.txt
# static IPs
dhcp-host=pancake,192.168.1.1,infinite
# advertise ourselves as router
dhcp-option=option:router,192.168.1.1
dhcp-option=option:dns-server,192.168.1.1