File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ if [ -n "${IPV6_IP}" ]; then
6969 ip -6 route add ${IPV6_IP} /128 dev br${VLAN} .mac
7070fi
7171
72+ # Make DNSMasq listen to the container network for split horizon or conditional forwarding
73+ if ! grep -qxF interface=br$VLAN .mac /run/dnsmasq.conf.d/custom.conf; then
74+ echo interface=br$VLAN .mac >> /run/dnsmasq.conf.d/custom.conf
75+ kill -9 ` cat /run/dnsmasq.pid`
76+ fi
77+
7278if podman container exists ${CONTAINER} ; then
7379 podman start ${CONTAINER}
7480else
Original file line number Diff line number Diff line change @@ -4,4 +4,14 @@ listen :53
44report-client-info yes
55cache-size=10MB
66
7+ # Change this if you changed your subnet, should point to your router, comment out
8+ # if you want to discover via DHCP
9+ discovery-dns 10.0.5.1
10+
11+ # Change and uncomment this if you want to resolve your local ips
12+ # forwarder your.domain=10.0.5.1
13+
14+ # Change and uncomment if you want to resolve ptr records
15+ # bogus-priv false
16+ # forwarder 10.in-addr.arpa=10.0.5.1
717config YOURIDHERE
You can’t perform that action at this time.
0 commit comments