Skip to content
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

Remove duplicate resolv.conf entries #204

Merged
merged 2 commits into from
Feb 15, 2020
Merged

Remove duplicate resolv.conf entries #204

merged 2 commits into from
Feb 15, 2020

Conversation

fhunleth
Copy link
Member

@fhunleth fhunleth commented Feb 15, 2020

This fixes a case where multi-homed devices would get the same name servers
and search domains on more than one interface.

[To be merged after #202]

This pulls the pure part of creating resolv.conf contents into its own
module. This allows for easier testing of future additions that will
involve more complicated manipulations of the file.

A side effect of this was to fix some sloppiness around IP address
handling. This isn't a big deal now, but it should make IPv6 support
easier to handle later.
This fixes a case where multi-homed devices would get the same
name servers and search domains on more than one interface.
@fhunleth fhunleth merged commit 2fc6f25 into master Feb 15, 2020
@fhunleth fhunleth deleted the redundant-entries branch February 15, 2020 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants