#
# Copyright (C) 2004 VA Linux Systems Japan, K.K.
#
# LICENSE NOTICE
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#

# $Id: 00dnsbalance,v 1.3 2004/10/07 09:53:40 taru Exp $

case "x$MODULECATEGORY" in

  xserver|x)

# Defining Variables
if test "x$cache" = "x"; then

DNSBALANCEDBDIR=$(ultrapossum_getconf DNSBALANCEDBDIR "$SYSCONFDIR/bind")
DNSBALANCEDB=$(ultrapossum_getconf DNSBALANCEDB "$DNSBALANCEDBDIR/db")

NAMEDCONF=$(ultrapossum_getconf NAMEDCONF "/etc/bind/named.conf")

# Slave IP
VIRTUALSLAVE=$(ultrapossum_getconf VIRTUALSLAVE `getent hosts $LDAPSLAVE | cut -d' ' -f1 | head -1`)

fi

# Parsing configuration file
eval "`ultrapossum_parse_config dnsbalance`"

# Calculating Logical Variables

if test "x$ULTRAPOSSUM_MODULE_DNSBALANCE" = "xinstalled"; then
  :
fi

  ;;

esac
