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

Implement support for DNS resolution via org.freedesktop.resolve1 #194

Open
Geod24 opened this issue Sep 3, 2021 · 0 comments
Open

Implement support for DNS resolution via org.freedesktop.resolve1 #194

Geod24 opened this issue Sep 3, 2021 · 0 comments

Comments

@Geod24
Copy link
Contributor

Geod24 commented Sep 3, 2021

Local applications may submit network name resolution requests via three interfaces:

The native, fully-featured API systemd-resolved exposes on the bus, see org.freedesktop.resolve1(5) and (org.freedesktop.LogControl1(5))[https://www.freedesktop.org/software/systemd/man/org.freedesktop.LogControl1.html] for details. Usage of this API is generally recommended to clients as it is asynchronous and fully featured (for example, properly returns DNSSEC validation status and interface scope for addresses as necessary for supporting link-local networking).

The glibc getaddrinfo(3) API [...]. This API is widely supported, including beyond the Linux platform. In its current form it does not expose DNSSEC validation status information however, and is synchronous only.

Source

Currently we use getaddrinfo and threads, which is a sane default, however having the ability to access the D-Bus interface could simplify things quite a bit, especially given how widespread systemd is. One of the main drawbacks of DNS resolution at the moment is that it keeps on spawning threads (and having expensive module ctors, we're seeing the hit).

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

No branches or pull requests

1 participant