[systemd-devel] UseDNS

Lennart Poettering lennart at poettering.net
Mon Jul 25 17:52:39 UTC 2016


On Wed, 13.07.16 13:33, Zack Baron (zbaron11 at gmail.com) wrote:

> I am currently modifying some of the systemd source (specifically
> the resolved section) and was wondering if you could point me in the
> right direction. I need access to the UseDNS= setting provided in
> the .network config files preferably without parsing through them
> again. Is this data stored anywhere that is available working from
> the file resolved-resolv-conf.c?

This is currently not really accessible. The plan is to expose this as
part of libsystemd one day, but this is not implemented yet.

You can hack this for now by parsing
/run/systemd/netif/links/<ifindex>, but that's not officialy supported
and might break eventually.

Sorry if that's disappointing.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list