Skip to content

Commit b6ae187

Browse files
committed
updated dnsmasq example configuration
1 parent c45182f commit b6ae187

1 file changed

Lines changed: 20 additions & 27 deletions

File tree

dnsmasq/conf/dnsmasq.conf-example

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,31 @@
1+
# this should be the IP address in .env
2+
listen-address=172.80.0.2
3+
14
log-queries
2-
# don't forward requests for names without domains
35
domain-needed
4-
# don't forward requests for non-routed addresses
56
bogus-priv
6-
# don't read resolv.conf
77
no-resolv
8-
# windows :/
98
filterwin2k
109

10+
# Use this if you want to use a bogus local domain
11+
# this way you can address hosts as "esphome.ctrlh"
1112
domain=ctrlh
13+
local=/ctrlh/
14+
no-hosts
1215
expand-hosts
1316

14-
address=/backrest.ctrlh/192.168.13.2
15-
address=/dnsmasq.ctrlh/192.168.13.2
16-
address=/dumpster.ctrlh/192.168.13.2
17-
address=/calibre/192.168.13.2
18-
address=/calibre.ctrlh/192.168.13.2
19-
address=/cyberchef.ctrlh/192.168.13.2
20-
address=/esphome/192.168.13.2
21-
address=/esphome.ctrlh/192.168.13.2
22-
address=/frigate.ctrlh/192.168.13.2
23-
address=/glances/192.168.13.2
24-
address=/glances.ctrlh/192.168.13.2
25-
address=/hass/192.168.13.2
26-
address=/hass.ctrlh/192.168.13.2
27-
address=/invidious/192.168.13.2
28-
address=/invidious.ctrlh/192.168.13.2
29-
address=/mopidy.ctrlh/192.168.13.2
30-
address=/mqtt.ctrlh/192.168.13.2
31-
address=/ntp.ctrlh/192.168.13.2
32-
address=/weather.ctrlh/192.168.13.2
33-
address=/wiki.ctrlh/192.168.13.2
34-
address=/zig.ctrlh/192.168.13.2
35-
#address=//192.168.13.2
17+
# disable lookup caching at the expense of increased network traffic and latency
18+
local-ttl=0
19+
max-cache-ttl=0
20+
21+
hostsdir=/etc/hosts.d
22+
23+
# you can add individual hostnames if you want
24+
# address=/DOMAIN.NAME/IP.ADD.RE.SS
25+
26+
# chain queries to other internal DNS servers using the hackstack
27+
server=/corginium.ctrlh/192.168.13.11
3628

37-
#server=1.1.1.1
29+
# default DNS server
30+
# 9.9.9.9 is considered more private than Google (8.8.8.8) or Cloudflare (1.1.1.1)
3831
server=9.9.9.9

0 commit comments

Comments
 (0)