-
Notifications
You must be signed in to change notification settings - Fork 123
dnsmasq: Add locahost addresses to lo #2863
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
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The default listener.conf of cifmw-dnsmasq looks like this: except-interface=lo bind-dynamic listen-address=127.0.0.2 interface=cifmw-osp_trunk interface=ocpbm Once the cifmw-dnsmasq service is restarted A race/loop between dnsmasq's static binding (listen-address =127.0.0.2) and dynamic behavior (bind-dynamic). The service constantly throws an error: "failed to create listening socket for 127.0.0.2: Address already in use" and keeps creating Unnconnected sockets until It reaches the file descriptors limit and then stops working properly. There is no 127.0.0.2 IP assigned to lo interface so I suspect It may cause some race condition in the way a new IP address/interface is dynamically detected (bind-dynamic option) and the statis binding (local-address option).
I don't think that it is a right way to do that and the error message is correct Edit: |
This PR is stale because it has been for over 15 days with no activity. |
@krcmarik please address @danpawlik comments. Thank you! |
The default listener.conf of
cifmw-dnsmasq looks like this:
except-interface=lo
bind-dynamic
listen-address=127.0.0.2
interface=cifmw-osp_trunk
interface=ocpbm
Once the cifmw-dnsmasq service is
restarted A race/loop between dnsmasq's
static binding (listen-address
=127.0.0.2) and dynamic behavior
(bind-dynamic). The service constantly
throws an error: "failed to create
listening socket for 127.0.0.2: Address
already in use" and keeps creating
Unnconnected sockets until It reaches
the file descriptors limit and then
stops working properly.
There is no 127.0.0.2 IP assigned to lo
interface so I suspect It may cause
some race condition in the way a new IP
address/interface is dynamically
detected (bind-dynamic option) and the
statis binding (local-address option).