Use the FQDN as the domain when processing '.' records

git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@351 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
Ben Klang
2006-07-10 17:42:42 +00:00
parent 930a669e2f
commit 203a463156

View File

@@ -204,7 +204,7 @@ LINE: while(<DATA>) {
if (!defined($timestamp)) { $timestamp = ""; } if (!defined($timestamp)) { $timestamp = ""; }
if (!defined($loc)) { $loc = ""; } if (!defined($loc)) { $loc = ""; }
my $id = "NSA-$fqdn-$ip-$x-$ttl-$timestamp-$loc"; my $id = "NSA-$fqdn-$ip-$x-$ttl-$timestamp-$loc";
my $domain = getdomain($fqdn); my $domain = $fqdn;
print $outfh "dn: cn=$id,cn=$domain,$basedn\n"; print $outfh "dn: cn=$id,cn=$domain,$basedn\n";
print $outfh "objectClass: top\n"; print $outfh "objectClass: top\n";