This file is indexed.

/etc/network/if-up.d/000resolvconf is in openresolv 3.7.2-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# ifup hook script for resolvconf
# Written by Roy Marples <roy@marples.name> under the BSD-2 license

[ -x /sbin/resolvconf ] || exit 0
case "$ADDRFAM" in
	inet|inet6) : ;;
	*) exit 0;;
esac

conf=
[ -n "$IF_DNS_DOMAIN" ] && conf="${conf}domain $IF_DNS_DOMAIN\n"
[ -n "$IF_DNS_SEARCH" ] && conf="${conf}search $IF_DNS_SEARCH\n"
[ -n "$IF_DNS_SORTLIST" ] && conf="${conf}sortlist $IF_DNS_SORTLIST\n"
[ -n "$IF_DNS_OPTIONS" ] && conf="${conf}options $IF_DNS_OPTIONS\n"
for nameserver in $IF_DNS_NAMESERVERS; do
	conf="${conf}nameserver $nameserver\n"
done
if [ -n "$conf" ]; then
	conf="# Generated by ifup for $IFACE.$ADDRFAM\n$conf"
	printf "$conf" | /sbin/resolvconf -a "$IFACE.$ADDRFAM"
fi