* Add new TXT record handling

* Change struct resourcerecord SRV member names to be consistent with other members


git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@457 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
Ben Klang
2008-07-24 18:16:47 +00:00
parent 579a57d3ad
commit 293e832003
6 changed files with 42 additions and 28 deletions

View File

@@ -215,7 +215,11 @@ sub read_zone
$attr{'DNSttl'} = $2;
$attr{'DNSclass'} = $3;
$attr{'DNStype'} = $4;
$attr{'DNScname'} = $5;
if ($rr->type eq "CNAME") {
$attr{'DNScname'} = $5;
} elsif ($rr->type eq "TXT") {
$attr{'DNStxt'} = $5;
}
add_attrs(\%attr, $zonename);
} elsif ($rr->type eq "PTR") {
die "Invalid PTR record for ", $rr->name, " " unless ($rr->string =~ /^([0-9.]+\.in-addr\.arpa)\.\s+(\d+)\s+(\w+)\s+(\w+)\s+([0-9a-zA-Z_.+-]+)/);