Question : linux nsupdate fails with NOTAUTH registering with Windows DNS

This has become much more complicated than I had hoped.  I am trying to register A and PTR records from my linux phone switch to my windows-based DNS.  DNS is set to accept insecure requests and I can see the transactions in the DNS debug logs.  When I lookup my domain name (from inside the LAN) with set type=SOA the authoritative server shows to be my inside DNS.  However, trying to execute nsupdate -d with the following lines fails with NOTAUTH and even  though it is sending the update to my inside server, it seems to show root hints servers as authoritative (unless I am looking at this incorrectly).  Here is the nsupdate file:

server mydnsserver
update delete ext203 A
update add ext203.mydomain.com 86400 A 10.10.1.20
send

 - and here is the debug output from nsupdate -d:

Reply from SOA query:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:  64307
;; flags: qr ra ; QUESTION: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 10
;; QUESTION SECTION:
;ext203.                                IN      SOA

;; AUTHORITY SECTION:
.                       16058   IN      NS      a.root-servers.net.
.                                                (others)
.                       16058   IN      NS      f.root-servers.net.

;; ADDITIONAL SECTION:
a.root-servers.net.     16058   IN      A       198.41.0.4
                                                (others)
f.root-servers.net.     16058   IN      A       192.5.5.241


Reply from SOA query:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:  54555
;; flags: qr ra ; QUESTION: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;.                              IN      SOA

;; ANSWER SECTION:
.                       79898   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2009090800 1800 900 604800 86400

;; ADDITIONAL SECTION:
a.root-servers.net.     16058   IN      A       198.41.0.4

Found zone name: .
The master is: a.root-servers.net
Sending update to 10.10.1.34#53

Reply from update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOTAUTH, id:  19220
;; flags: qr ; ZONE: 1, PREREQ: 0, UPDATE: 2, ADDITIONAL: 0
;; ZONE SECTION:
;.                              IN      SOA

;; UPDATE SECTION:
ext203.                 0       ANY     A
ext203.mydomain.com.    86400   IN      A       10.10.1.20


I also want to add a PTR record but I'm taking it a step at a time.  Can some of you linux/windows/dns wizards get me moving on this?  Thanks

Answer : linux nsupdate fails with NOTAUTH registering with Windows DNS


Update will change any existing record provided it has permission (at least in MS DNS).

Still, you may find it works if you change it to...

update delete ext203.mydomain.com  A

It looks like it's simply reading the entries there as Fully Qualified rather than appending any DNS suffix.

Chris
Random Solutions  
 
programming4us programming4us