Commit 4d4e1b06 authored by Mike Hibler's avatar Mike Hibler

More whacks to get separate fs node correct.

parent 6f08c442
......@@ -23,6 +23,7 @@ sub usage {
my $OURDOMAIN = "@OURDOMAIN@";
my ($BOSSTOKEN) = ("@BOSSNODE@" =~ /^([-\w]+).*$/);
my ($USERTOKEN) = ("@USERNODE@" =~ /^([-\w]+).*$/);
my ($FSTOKEN) = ("@FSNODE@" =~ /^([-\w]+).*$/);
my $TESTBED_NETWORK = "@TESTBED_NETWORK@";
my $TESTBED_NETMASK = "@TESTBED_NETMASK@";
my $EXTERNAL_TESTBED_NETWORK = "@EXTERNAL_TESTBED_NETWORK@";
......@@ -126,10 +127,19 @@ while (<IF>) {
}
elsif ($2 eq "fsnode_ina") {
if ($USERNODE_IP ne $FSNODE_IP) {
$internal_strings .=
#
# If name is not "fs", we need an A record for that
#
if ($FSTOKEN ne "fs") {
$internal_strings .=
"fs\t\tIN\tA\t\t${FSNODE_IP}\n${MXSTR}";
$external_strings .=
$external_strings .=
"fs\t\tIN\tA\t\t${EXTERNAL_FSNODE_IP}\n${MXSTR}";
}
$internal_strings .=
"${FSTOKEN}\t\tIN\tA\t\t${FSNODE_IP}\n";
$external_strings .=
"${FSTOKEN}\t\tIN\tA\t\t${EXTERNAL_FSNODE_IP}\n";
} else {
$internal_strings .=
"fs\t\tIN\tCNAME\tops\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment