Skip to content

Commit 155244f

Browse files
committed
comment on bind-dynamic vs bind-interfaces
1 parent 989caa9 commit 155244f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

  • tailscale/rootfs/etc/s6-overlay/s6-rc.d
    • magicdns-egress-proxy
    • magicdns-ingress-proxy

tailscale/rootfs/etc/s6-overlay/s6-rc.d/magicdns-egress-proxy/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ options+=(--log-facility='-')
5656
options+=(--cache-size=0)
5757

5858
options+=(--listen-address="${DNSMASQ_EGRESS_ADDRESS_IPV4}")
59+
# on the lo interface this bind-interfaces option has the effect that dnsmasq connects only to the specified address
60+
# and on the lo interface bind-interfaces option doesn't result in a logged warning
61+
# this is intentionally different from the ingress proxy, where on a non-lo interface bind-dynamic option has the same effect
5962
options+=(--bind-interfaces)
6063
options+=(--port="${dnsmasq_egress_port}")
6164

tailscale/rootfs/etc/s6-overlay/s6-rc.d/magicdns-ingress-proxy/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ if bashio::var.has_value "${tailscale_address_ipv6-}"; then
6363
options+=(--listen-address=${tailscale_address_ipv6})
6464
fi
6565

66+
# on a non-lo interface this bind-dynamic option has the effect that dnsmasq connects only to the specified address
67+
# this is intentionally different from the egress proxy, where on the lo interface bind-interfaces option has the same effect
68+
# and on the lo interface bind-interfaces option doesn't result in a logged warning
6669
options+=(--bind-dynamic)
6770
options+=(--port=${dnsmasq_ingress_port})
6871

0 commit comments

Comments
 (0)