Subject: | Origin isn't appended to rdata |
Hi,
I noticed that Parse-DNS-Zone handles $ORIGIN statements for the name
parts, using the following statement in _parse_zone():
$name.=".$origin" if(($name ne $origin) && !($name=~/\.$/));
It doesn't do the same for the rdata, though. I fixed that for our
purposes by adding this block:
if ($type =~ /cname|afsdb|mx|ns/i) {
$rdata.=".$origin" if(($rdata ne $origin) && !($rdata=~/\.$/));
}
I'm not sure what other RRs might use unqualified records as rdata, but
those are definitely among them.