Subject: | Net::DNS uses incorrect domain name in update request |
perl-Net-DNS-0.63-4.fc9.i386
perl v5.10.0
Fedora 9
When I craft an update request using the command line nsupdate tool for
wsftest.example.com, the update packet has in it's "zone" section
"wsftest.example.com SOA."
When I attempt the same update using Net::DNS, the "zone section
contains: "example.com SOA"
The prerequisite and update sections of the update packet are the same
no matter which tool I use. If wfstest.example.com is a domain/zone that
is dynamically updateable but example.com is not, the Net::DNS crafted
update will fail. The nsupdate crafted packet will succeed. Bind is
rejecting the update created by Net::DNS because example.com is not
dynamically updateable.
This only matters if wsftest.example.com is a seperate zone. If I
update say, test.wsftest.example.com with Net::DNS, the SOA record in
the "zone" section of the update is wsftest.example.com which means bind
accepts it.
I will attach a pcap file showing the successful update using nsupdate,
and the failed update using Net::DNS.
Here are the nsupdate commands I used:
Show quoted text
> update delete wsftest.example.com A
> update add wsftest.example.com 300 A 1.1.1.1
> update add wsftest.example.com 300 A 1.1.1.2
> send