bind socket error

Hello

What causes the error to bind socket ?

We have seen these errors when configured for “unbound resolver” or “unbound forwarding” modes.

They seem to not cause a problem, the resolver eventually resolves the request.

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [err] [12764:0] error: can't bind socket: Cannot assign requested address for 192.168.0.131 port 59253 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: error sending query to auth server ip4 8.8.8.8 port 53 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: processQueryTargets: www.carillon.ca. A IN

· 2021 Jun 16 17:17:35+00:00 wglng-17 wireless [notice] LinkManagerHandler() base station connection BSC1 r0=up r1=dn r2=dn r3=dn eth=dn BSC2 r0=dn r1=dn r2=dn r3=dn eth=dn

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: DelegationPoint<.>: 0 names (0 missing), 1 addrs (1 result, 0 avail) parentNS

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: sending query: www.carillon.ca. A IN

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [err] [12764:0] error: can't bind socket: Cannot assign requested address for 10.130.230.8 port 19652 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: error sending query to auth server ip4 8.8.8.8 port 53 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: processQueryTargets: www.carillon.ca. A IN

Thanks

Though I’m not entirely certain, I believe that means Unbound could not use that IP address as its outgoing-interface. Typically that’s due to the interface being unbelievable for some reason.

Hello

What causes the error to bind socket ?

We have seen these errors when configured for “unbound resolver” or “unbound forwarding” modes.

They seem to not cause a problem, the resolver eventually resolves the request.

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [err] [12764:0] error: can't bind socket: Cannot assign requested address for 192.168.0.131 port 59253 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: error sending query to auth server ip4 8.8.8.8 port 53 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: processQueryTargets: www.carillon.ca. A IN

· 2021 Jun 16 17:17:35+00:00 wglng-17 wireless [notice] LinkManagerHandler() base station connection BSC1 r0=up r1=dn r2=dn r3=dn eth=dn BSC2 r0=dn r1=dn r2=dn r3=dn eth=dn

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: DelegationPoint<.>: 0 names (0 missing), 1 addrs (1 result, 0 avail) parentNS

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: sending query: www.carillon.ca. A IN

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [err] [12764:0] error: can't bind socket: Cannot assign requested address for 10.130.230.8 port 19652 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: error sending query to auth server ip4 8.8.8.8 port 53 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0] info: processQueryTargets: www.carillon.ca. A IN

Hello

How does unbound determine the IP address and UDP port to use ?

Thanks

Teledyne Confidential; Commercially Sensitive Business Data

Hello,

looking at the change log at https://nlnetlabs.nl/projects/unbound/download/, there are multiple errors fixed in multiple versions over time.
So: which version do you run?

Andreas

please keep the discussion on list

Version 1.9.4

that's ~2 years old. consider upgrading...
Maybe you hit a bug fixed in newer versions

- https://github.com/NLnetLabs/unbound/blob/master/doc/Changelog#L75
- https://github.com/NLnetLabs/unbound/blob/master/doc/Changelog#L411
- https://github.com/NLnetLabs/unbound/blob/master/doc/Changelog#L439
- https://github.com/NLnetLabs/unbound/blob/master/doc/Changelog#L1076

Andreas

Though I'm not entirely certain, I believe that means Unbound could not use
that IP address as its outgoing-interface. Typically that's due to the
interface being unbelievable for some reason.

Hello

What causes the error to bind socket ?

We have seen these errors when configured for “unbound resolver” or
“unbound forwarding” modes.

They seem to not cause a problem, the resolver eventually resolves the
request.

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [err] [12764:0]
error: can\'t bind socket: Cannot assign requested address for
192.168.0.131 port 59253 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0]
info: error sending query to auth server ip4 8.8.8.8 port 53 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0]
info: processQueryTargets: www.carillon.ca. A IN

· 2021 Jun 16 17:17:35+00:00 wglng-17 wireless [notice]
LinkManagerHandler() base station connection BSC1 r0=up r1=dn r2=dn r3=dn
eth=dn BSC2 r0=dn r1=dn r2=dn r3=dn eth=dn

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0]
info: DelegationPoint<.>: 0 names (0 missing), 1 addrs (1 result, 0 avail)
parentNS

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0]
info: sending query: www.carillon.ca. A IN

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [err] [12764:0]
error: can\'t bind socket: Cannot assign requested address for 10.130.230.8
port 19652 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0]
info: error sending query to auth server ip4 8.8.8.8 port 53 (len 16)

· 2021 Jun 16 17:17:34+00:00 wglng-17 unbound [info] [12764:0]
info: processQueryTargets: www.carillon.ca. A IN

Thanks

This looks very much like port contention. IOW something else is using the
port, or ports that you've assigned to unbound..Sorry if someone else has
already informed you of this. As I'm trying to get caught up on my mail. :slight_smile:

Hello

I found the problem, fixed by flushing the unbound.conf outgoing-interface Section before each session.

Thanks

Teledyne Confidential; Commercially Sensitive Business Data