Maintained by: NLnet Labs

error: outgoing tcp: bind: Address already in use

Quirin Scheitle
Thu Jul 6 10:32:45 CEST 2017


Hi Nick,

IIRC, unbound does a “bind before connect” on sockets, which requires a local port to be completely unused [1] to be used by bind. 

Unbound 1.6.4 should fix this by setting SO_REUSEADDR on outgoing ports - please give it a try.

Kind regards
Quirin

[1] https://idea.popcount.org/2014-04-03-bind-before-connect/

> On 06 Jul 2017, at 10:13, Nick Urbanik via Unbound-users <unbound-users at unbound.net> wrote:
> 
> Dear Folks,
> 
> A DNS server running unbound 1.6.3 has these messages; any suggestions
> on what is happening?
> 
> error: serviced_tcp_initiate: failed to send tcp query
> error: outgoing tcp: bind: Address already in use
> -- 
> Nick Urbanik http://nicku.org 808-71011 nick.urbanik at optusnet.com.au
> GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24  ID: BB9D2C24
> I disclaim, therefore I am.


—
Dipl.-Ing. Quirin Scheitle		    		Web: https://www.net.in.tum.de/~scheitle/
Technische Universität München		Room: 03.05.037
Department of Computer Science		Tel:  +49.89.289.18012 
Network Architectures and Services