openresolv-discuss

openresolv enabled status

Petr Menšík

Tue Feb 02 13:09:17 2021

Hi,

I am maintainer of several DNS related packages in Fedora and RHEL. I
have opened again openresolv package review in Fedora [1].

I were looking for some generic interface able to support split-view on
local cache implementation. Openresolv seems to be a good candidate, it
has minimal dependencies and generic interface. But still has some
support for multiple DNS cache implementations.

I am looking for simple way, how to check whether it is enabled. In
Fedora, resolvconf is provided now only by systemd(-resolved). It is
almost always present. But it might be deactivated.

Openresolv can be inactive as well. How should I test, whether
resolvconf is enabled in implementation independent manner? How should I
update /usr/sbin/dhclient-script to use resolvconf, only when it is both
installed AND enabled? I haven't found good candidate in man page.

Is there any parameter, how could resolvconf report, when it is enabled?
Something to test, like:
test -x /usr/sbin/resolvconf && /usr/sbin/resolvconf --is-enabled

I think dhclient or any VPN implementation should not try to parse
resolvconf.conf file. Is there good way I haven't spotted yet?
How is it used by existing software?

I need backward compatibility to just rewrite resolv.conf the old way,
if resolvconf is disabled. Do you have any advice?

1. https://bugzilla.redhat.com/show_bug.cgi?id=1923678
-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik@xxxxxxxxxx
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Follow-Ups:
Re: openresolv enabled statusRoy Marples
Archive administrator: postmaster@marples.name