-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to bind to 0.0.0.0:53 when systemd-resolved is running #743
Comments
Related: #487 Would be nice to request socket options with this library. |
[ Quoting <[email protected]> in "[miekg/dns] Unable to bind to 0.0.0..." ]
This is the same issue as #680, just ran into it again on Ubuntu 18.04. Any example you have that tries to bind to port 53 while systemd-resolved should trigger this.
you bind to a port where something is running... that's WAI
|
systemd-resolved is bound to 127.0.0.53 port 53 with SO_REUSEADDR. If we have the option to enable SO_REUSEADDR when binding 0.0.0.0 port 53, these two can coexist just fine. |
@teran-mckinney It wouldn’t be a huge amount of work to add, but we would start to get a multitude of socket options hanging off |
Thanks for looking into this. I agree, maybe there's a cleaner way to implement the options but I don't know Go very well. |
you should make your own conn and use that; not something this lib should provide. |
Could you provide an example on how to do that? I've looked through the examples in exdns and can't see any cases where you made the socket and put a DNS server on that socket. |
@teran-mckinney Use the |
@tmthrgd thank you! I appreciate it. |
This is the same issue as #680, just ran into it again on Ubuntu 18.04. Any example you have that tries to bind to port 53 while systemd-resolved should trigger this.
The text was updated successfully, but these errors were encountered: