Import openresolv 3.8.1
Obtained from: http://roy.marples.name/projects/openresolv
This commit is contained in:
parent
e4bff59612
commit
2a4f382499
@ -22,7 +22,7 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd February 23, 2016
|
||||
.Dd May 7, 2016
|
||||
.Dt RESOLVCONF 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -64,7 +64,7 @@ solves this by letting the daemon send their
|
||||
file to
|
||||
.Nm
|
||||
via
|
||||
.Xr stdin 3
|
||||
.Xr stdin 4
|
||||
with the argument
|
||||
.Fl a Ar interface Ns Op Ar .protocol
|
||||
instead of the filesystem.
|
||||
@ -101,7 +101,7 @@ as private.
|
||||
This means that the name servers listed in that
|
||||
.Pa resolv.conf
|
||||
are only used for queries against the domain/search listed in the same file.
|
||||
This only works when a local resolver other than libc is installed.
|
||||
This only works when a local resolver other than libc is installed.
|
||||
See
|
||||
.Xr resolvconf.conf 5
|
||||
for how to configure
|
||||
@ -290,16 +290,16 @@ Directory of subscribers which are run after the libc subscriber is run.
|
||||
State directory for
|
||||
.Nm .
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr resolver 3 ,
|
||||
.Xr stdin 4 ,
|
||||
.Xr resolv.conf 5 ,
|
||||
.Xr resolvconf.conf 5
|
||||
.Sh HISTORY
|
||||
This implementation of
|
||||
.Nm
|
||||
is called openresolv and is fully command line compatible with Debian's
|
||||
resolvconf, as written by Thomas Hood.
|
||||
.Sh SEE ALSO
|
||||
.Xr resolv.conf 5 ,
|
||||
.Xr resolvconf.conf 5 ,
|
||||
.Xr resolver 3 ,
|
||||
.Xr stdin 3
|
||||
.Sh AUTHORS
|
||||
.An Roy Marples Aq Mt roy@marples.name
|
||||
.Sh BUGS
|
||||
|
@ -22,7 +22,7 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd February 23, 2016
|
||||
.Dd April 28, 2016
|
||||
.Dt RESOLVCONF.CONF 5
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -103,7 +103,8 @@ This is equivalent to the
|
||||
.Nm resolvconf -p
|
||||
option.
|
||||
.It Sy replace
|
||||
Is a space separated list of replacement keywords. The syntax is this:
|
||||
Is a space separated list of replacement keywords.
|
||||
The syntax is this:
|
||||
.Va $keyword Ns / Ns Va $match Ns / Ns Va $replacement
|
||||
.Pp
|
||||
Example, given this resolv.conf:
|
||||
@ -307,10 +308,9 @@ Command to restart the unbound service.
|
||||
Location of the unbound pidfile.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr sh 1 ,
|
||||
.Xr resolv.conf 5 ,
|
||||
.Xr resolvconf 8
|
||||
and
|
||||
.Xr sh 1 .
|
||||
.Sh AUTHORS
|
||||
.An Roy Marples Aq Mt roy@marples.name
|
||||
.Sh BUGS
|
||||
|
@ -25,7 +25,7 @@
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
RESOLVCONF="$0"
|
||||
OPENRESOLV_VERSION="3.8.0"
|
||||
OPENRESOLV_VERSION="3.8.1"
|
||||
SYSCONFDIR=@SYSCONFDIR@
|
||||
LIBEXECDIR=@LIBEXECDIR@
|
||||
VARDIR=@VARDIR@
|
||||
@ -152,7 +152,10 @@ parse_resolv()
|
||||
private=false
|
||||
for p in $private_interfaces; do
|
||||
case "$iface" in
|
||||
"$p"|"$p":*) private=true; break;;
|
||||
"$p"|"$p":*)
|
||||
private=true
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
@ -270,11 +273,11 @@ detect_init()
|
||||
local status="@STATUSARG@"
|
||||
: ${status:=status}
|
||||
if [ -x /bin/systemctl -a -S /run/systemd/private ]; then
|
||||
RESTARTCMD="if /bin/systemctl --quiet is-active; then
|
||||
RESTARTCMD="if /bin/systemctl --quiet is-active \$1.service; then
|
||||
/bin/systemctl restart \$1.service;
|
||||
fi"
|
||||
elif [ -x /usr/bin/systemctl -a -S /run/systemd/private ]; then
|
||||
RESTARTCMD="if /usr/bin/systemctl --quiet is-active; then
|
||||
RESTARTCMD="if /usr/bin/systemctl --quiet is-active \$1.service; then
|
||||
/usr/bin/systemctl restart \$1.service;
|
||||
fi"
|
||||
elif [ -x /sbin/rc-service -a \
|
||||
|
Loading…
x
Reference in New Issue
Block a user