-
Notifications
You must be signed in to change notification settings - Fork 428
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
Listen on all addresses #56
Comments
Thanks for submitting this. I'll try and apply the patch you submitted and put up a PR as soon as I can. This might not be for a few days though. |
That sounds fine - next time I'll be less lazy and get github to do a proper fork for me. |
See the commit I just pushed. That incorporates your fix (mostly verbatum, though I made it fail a little nicer). I wrote a new test harness for the edit: travis still has a bad ipv6 config, so I had to ignore the ipv6 test, you can test that with |
fix for #56 and named startup tests
I believe that the patch I submitted fixes this. If not please reopen. |
…ling resolver: add CD bit handling tests
Currently, named doesn't actually listen on all specified addresses. It takes the first address (both v4 and v6), or a default of
0.0.0.0
and::0
. In addition, there's no way to disable IPv4 or IPv6 as even if an IPv4 address is specified the system still will use the default IPv6 address - even if no IPv6 address is set or even if it is explicitly set to the empty list.This breaks some dual-stack systems as well where
IPV6_V6ONLY
is by default false, because the v6 socket cannot bind as it conflicts with the v4 socket.The attached patch is my attempt to fix the issue - I haven't tested every edge case, but it works on my system (debian) with the default configuration (example.toml) under simple tests, and seems sane to me.
0001-Listen-on-all-available-IP-addresses.txt
The text was updated successfully, but these errors were encountered: