Hey #golang folks, I have a service listening on some port (say 4321) and the #s...
Eashwar @e_nomem@hachyderm.io
Hey #golang folks, I have a service listening on some port (say 4321) and the #systemd service file has
```
SocketBindAllow=tcp:4321
SocketBindDeny=any
```
When my service makes an _outgoing_ connection by calling
```
var dialer net.Dialer
dialer.DialContext(ctx, "tcp", "somehost.example.com:5678")
```
the service gets a permission error for violating the SocketBind* systemd restrictions.
But only when using the cgo resolver. Setting `GODEBUG=netdns=go` fixes the error. So what is the cgo resolver doing that requires binding a socket?