This file is indexed.

/usr/sbin/dhis-register-q is in dhis-tools-dns 5.0-6.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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash

# Parameters
# 1 = hostname
# 2 = contact
# 3 = email
#
# Constants
#
if [ -e /etc/default/dhis-tools-dns ] ; then
	. /etc/default/dhis-tools-dns
else
	echo "Cannot read default definitions from /etc/default/dhis-tools-dns. Aborting" >&2
	exit 1
fi

temp_keys==`mktemp -p $TEMP keys.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1;  }

temp_id=`mktemp -p $TEMP id.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1;  }
temp_nsupdate=`mktemp -p $TEMP nsupdate.XXXXXX` || { echo "$0: Cannot create temporary file" >&2; exit 1;  }
# Remove Files on exit
trap "/bin/rm -f -- \"$temp_id\" \"$temp_nsupdate\" \"$temp_keys\"" 0 1 2 3 13 15

$GENKEYS > $temp_keys
$GENID > $temp_id

# DB File
#
echo "" >> $DBFILE
echo `cat $temp_id | awk '{ print $2 }'`" {" >> $DBFILE
echo "\thostname\t$1" >> $DBFILE
cat $temp_keys >> $DBFILE
echo "\tcontact\t\t$2" >> $DBFILE
echo "\temail\t\t$3" >> $DBFILE
echo "\tservice\t\tdns" >> $DBFILE
echo "}" >> $DBFILE
kill -HUP `cat $DHISD_PID` 

# Update DNS
#
echo "update add $1. 60 in a 192.168.255.0" > $temp_nsupdate
echo "update add $1. 86600 in mx 0  $1." >> $temp_nsupdate
if [ -n "$RELAY" ]; then
	echo "update add $1. 86600 in mx 10  $RELAY." >> $temp_nsupdate
fi
echo "" >> $temp_nsupdate
$NSUPDATE $temp_nsupdate

exit 0