Skip to content

Commit

Permalink
fix: make sure to only respond on given interfaces
Browse files Browse the repository at this point in the history
note from man page: On systems which support it, dnsmasq binds the wildcard address, even when it is listening on only some interfaces. It then discards requests that it shouldn't reply to. This has the advantage of working even when interfaces come and go and change address. This option forces dnsmasq to really bind only the interfaces it is listening on. About the only time when this is useful is when running another nameserver (or another instance of dnsmasq) on the same machine. Setting this option also enables multiple instances of dnsmasq which provide DHCP service to run in the same machine.
  • Loading branch information
MartinLoeper authored May 16, 2022
1 parent f252d7a commit f3d8c80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions iotwifi/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (c *Command) StartDnsmasq() {
"--address=/captive.apple.com/17.253.35.204",
"--address=/clients3.google.com/216.58.204.46",
"--address=/www.msftconnecttest.com/13.107.4.52",
"--bind-interfaces"
}

cmd := exec.Command("dnsmasq", args...)
Expand Down

0 comments on commit f3d8c80

Please sign in to comment.