Opened 13 years ago

#11 new defect

maradns configuratie fout bij ip alias op internal interface van proxy

Reported by: huub Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

Proxy7 heeft twee ip adressen op de interne interface. Daardoor gaat automatische configuratie van maradns fout:
Jun 9 12:18:19 Proxy7 root: /etc/rc: WARNING: failed precmd routine for maradns
Jun 9 12:18:23 Proxy7 ntpd[1293]: ntpd 4.2.4p5-a (1)
Jun 9 12:18:32 Proxy7 nrpe[1472]: Starting up daemon
Jun 9 12:18:34 Proxy7 root: /usr/local/etc/rc.d/maradns: WARNING: failed precmd routine for maradns

Proxy7# /usr/local/etc/rc.d/maradns start
sed: 1: "s/\(ipv4_bind_addresse ...": unterminated substitute in regular expression
/usr/local/etc/rc.d/maradns: WARNING: failed precmd routine for maradns

Tijdelijk oplossing door:
in /usr/local/etc/mararc de bind addressen toe te voegen en de maradns file aan te passen (zie ###):

# Nastly hack to allow the MaraDNS bind to the proper variable IP address
#mara_pre() {
# IP=ifconfig ${internalif} | awk '/inet/ { print $2 }'
# sed -i .orig 's/\(ipv4_bind_addresses[\ \t=]*"\).*$/\1'${IP}',127.0.0.1"/g' ${maradns_conf}
#}

name="maradns"
rcvar=set_rcvar
command="/usr/local/bin/duende"
#command_args="/usr/local/sbin/maradns -f ${maradns_conf}"
command_args="/usr/local/sbin/maradns -f /usr/local/etc/mararc"
pidfile="/var/run/${name}.pid"

Change History (0)

Note: See TracTickets for help on using tickets.