[dnsdist] Fatal error: binding socket

Pieter Lexis pieter.lexis at powerdns.com
Sun Jan 24 12:51:13 UTC 2021


Hi Sami,

On 1/23/21 5:26 PM, SAMI RAHAL via dnsdist wrote:
> after installing dnsdist an error message appears: "Fatal error: binding
> socket to @192.168.1.10:53: Address already in use"

So something is listening on your system on that IP address and port 53
(or potentially 0.0.0.0:53). Please use `netstat` or `ss` to figure out
what application listens here.

A comment in your config shows:

> -- accept DNS queries on UDP/5200 and TCP/5200

However, this is not the case in the actual config. If you cange this line

>  setLocal('192.168.1.10')

to

    setLocal('192.168.1.10:5200')

I also see that you set the ACL to 0.0.0.0, which means 0.0.0.0/32 (so 1
IP address) if you want to open up dnsdist to all IP addresses (which is
not recommended, please limit to specific subnets), use 0.0.0.0/0.

Cheers,

Pieter

-- 
Pieter Lexis
PowerDNS.COM BV -- https://www.powerdns.com


More information about the dnsdist mailing list