On Wed, 13.07.16 13:33, Zack Baron (zbaro...@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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to