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

Request: DNS information to network block #2053

Open
heitorPB opened this issue May 10, 2024 · 7 comments · Fixed by #2058
Open

Request: DNS information to network block #2053

heitorPB opened this issue May 10, 2024 · 7 comments · Fixed by #2058

Comments

@heitorPB
Copy link
Contributor

I'd like to have DNS information available in the net block. Is this feasible?

@bim9262
Copy link
Collaborator

bim9262 commented May 12, 2024

There are several ways that dns can be setup, but starting off with reading /etc/resolv.conf is a good start. Some dns resolves like systemd-resolved will put an entry like nameserver 127.0.0.53 and then do the resolution itself, although you can query to see which nameservers systemd-resolved is using.

@MaxVerevkin
Copy link
Collaborator

Some dns resolves like systemd-resolved will put an entry like nameserver 127.0.0.53

NetworkManager also does that.

@jkauerl
Copy link
Contributor

jkauerl commented May 13, 2024

Hi, is this a good first issue to start? Because if it is I would love to start working on it with only Rust!!

@bim9262
Copy link
Collaborator

bim9262 commented May 13, 2024

Sure, we can start of just reading /etc/resolv.conf looking for nameserver entries. Later we can add in an option to pick if another resolver should be queried.

@jkauerl
Copy link
Contributor

jkauerl commented May 29, 2024

Added a PR #2058 looking at nameserver entries in /etc/resolv.conf.

@bim9262 bim9262 linked a pull request Jun 4, 2024 that will close this issue
@heitorPB
Copy link
Contributor Author

@bim9262 should this issue continue open to support other cases than resolved.conf? Like systemd-resolved and NetworkManager?

@bim9262
Copy link
Collaborator

bim9262 commented Jun 19, 2024

Yes, good catch. It was just partially completed by #2058

@bim9262 bim9262 reopened this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants