This file is indexed.

/usr/sbin/dtc-xen_domUconf_network_redhat is in dtc-xen 0.5.17-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
50
51
52
53
#!/bin/sh

set -e

. /usr/share/dtc-xen/dtc-xen-parse-param

ETC="${VPS_PATH}/etc"

if [ "${VIRT_TYPE}" = "vz" ] ; then
	ETHNAME_PREFIX=vnet
else
	ETHNAME_PREFIX=eth
fi

# Configure the eth0
if [ ! -z "${NICS}" ] ; then
	N=0
	for i in $NICS ; do
		N_IP=`echo ${i} | cut -s -d"," -f1`
		N_MASK=`echo ${i} | cut -s -d"," -f2`
		N_BCAST=`echo ${i} | cut -s -d"," -f3`
		N_NET=`ipcalc -n ${N_IP} ${N_MASK} | grep Network | awk '{print $2}' | cut -d"/" -f1`
		if [ -z "${N_NET}" ] ; then
			N_NET=`ipcalc -n ${N_IP} ${N_MASK} | cut -d"=" -f2`
		fi
		if [ ${N} = 0 ] ; then
			DEVICE="eth0"
		else
			DEVICE="eth0:${N}"
		fi
echo "DEVICE=${DEVICE}
BOOTPROTO=static
BROADCAST=${N_BCAST}
IPADDR=${N_IP}
NETMASK=${N_MASK}
NETWORK=${N_NET}
ONBOOT=yes
" >${ETC}/sysconfig/network-scripts/ifcfg-${DEVICE}
		N=$(( ${N} + 1 ))
	done
	# Set the gateway file
	echo "NETWORKING=yes
HOSTNAME=mx.xen${VPSNUM}.${NODE_FQDN}
GATEWAY=${GATEWAY}
" >${ETC}/sysconfig/network
fi

# Set the resolv.conf
echo "nameserver "`echo ${DNS} | cut -d"," -f1` > ${ETC}/resolv.conf

if [ -z ""`echo ${DNS} | cut -s -d"," -f2` ] ; then
	echo `echo ${DNS} | cut -s -d"," -f2` >>${ETC}/resolv.conf
fi