bind9 nsupdate does wrong SOA query?

John Hascall john at iastate.edu
Wed Jul 14 04:24:34 UTC 2004


[see examples below]
Ok, so

  1) why is it asking for the "IN SOA" instead of the "HS SOA"?
  2) shouldn't it find the "IN SOA" for iastate.edu even so?
     (there is no ns.iastate.edu in the IN class)
  3) it seems that adding both a "server" and a "zone" statement
     is a work around (but on one of my machines the server
     line causes a coredump).

John

<8>bind-9.2.3/bin/nsupdate > ./nsupdate -d
> update add pribir.passwd.ns.iastate.edu. 600 hs txt pribir:*:...
> show
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:      0
;; flags: ; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; UPDATE SECTION:
pribir.passwd.ns.iastate.edu. 600 HS   TXT     "pribir:*:..."

>
Reply from SOA query:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id:   7232
;; flags: qr rd ra ; QUESTION: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;pribir.passwd.ns.iastate.edu. IN      SOA


response to SOA query was unsuccessful
----------------------- (on machine #2, OSF/1 4.0f) -------------------------
./nsupdate -d
> server vs-2.iastate.edu.
before gethostbyname()
Stack overflow: pid 32748, proc nsupdate, addr 0x1400d9ff8, pc 0x3ff80596de8
Segmentation fault (core dumped)

(dbx) where
>  0 (unknown)() [0x3ff80596de8]
   1 __pthread_mutex_lock(0x140072f80, 0x0, 0x3ff800d98ac, 0x1400a896b, 0x3ffc0080380) [0x3ff80594400]
   2 fgets(0x1400a896b, 0x140077ab8, 0x3ffc0089460, 0x3ffc0094c10, 0x1400a896b) [0x3ff800d98a8]
   3 (unknown)() [0x3ff8013d334]
         :
         :
 730 (unknown)() [0x3ff8013d82c]
 731 __gethostbyname_r(0x1400e2a37, 0x1400778e0, 0x1400e5880, 0x0, 0x0) [0x3ff8013cccc]
 732 __gethostbyname(0x0, 0x0, 0x12001a8a4, 0x35, 0x1400e2a37) [0x3ff800e957c]
 733 get_address(host = 0x1400e2a37 = "vs-2.iastate.edu.", port = 53, sockaddr = 0x140072b40) ["nsupdate.c":631, 0x12001a8a0]
 734 evaluate_server(cmdline = (nil)) ["nsupdate.c":973, 0x12001ba60]
 735 get_next_command() ["nsupdate.c":1367, 0x12001cdbc]
 736 user_interaction() ["nsupdate.c":1390, 0x12001cf0c]
 737 getinput(task = 0x140077640, event = 0x1400778e0) ["nsupdate.c":1856, 0x12001e474]
 738 dispatch(manager = 0x140072900) ["task.c":855, 0x12011c390]
 739 run(uap = 0x140072900) ["task.c":998, 0x12011c6a0]
 740 __thdBase(0x0, 0x0, 0x0, 0x0, 0x0) [0x3ff805a5b9c]


More information about the bind-users mailing list