From: Ian K. <spi...@gm...> - 2005-11-29 09:44:30
|
I've been trying to use org.xbill.DNS.Update (using various permutations, with/without TSIG, TCP, etc) with 2.0.0 and I just get silent failure (I got NullPointerExceptions with 1.6.6, so maybe that's a a step up :). The BIND installation is the one that comes with Mac OS 10.4 (Tiger), I have a zone "rbl" that is configured to accept updates from localhost (also tried with a TSIG key). My test does a query (expecting there to be no record), does an update and then runs the query again. Running BIND with logging set to "dynamic", I get the following: Nov 28 23:50:24.733 zone_timer: zone authors.bind/CH: enter Nov 28 23:50:24.733 zone_maintenance: zone authors.bind/CH: enter Nov 28 23:50:37.926 client 127.0.0.1#61651: UDP request Nov 28 23:50:37.926 client 127.0.0.1#61651: request is not signed Nov 28 23:50:37.926 client 127.0.0.1#61651: recursion available: approved Nov 28 23:50:37.926 client 127.0.0.1#61651: query Nov 28 23:50:37.926 client 127.0.0.1#61651: query '172.16.1.100.deny.rbl/IN' approved Nov 28 23:50:37.927 client 127.0.0.1#61651: send Nov 28 23:50:37.927 client 127.0.0.1#61651: sendto Nov 28 23:50:37.927 client 127.0.0.1#61651: senddone Nov 28 23:50:37.927 client 127.0.0.1#61651: next Nov 28 23:50:37.927 client 127.0.0.1#61651: endrequest Nov 28 23:50:37.927 client @0x1811600: udprecv Nov 28 23:50:38.256 client 127.0.0.1#63706: new TCP connection Nov 28 23:50:38.257 client 127.0.0.1#63706: replace Nov 28 23:50:38.257 clientmgr @0x401760: createclients Nov 28 23:50:38.257 clientmgr @0x401760: create new Nov 28 23:50:38.257 client @0x1810c00: create Nov 28 23:50:38.257 client 127.0.0.1#63706: read Nov 28 23:50:38.257 client @0x1810c00: accept Nov 28 23:50:38.273 client 127.0.0.1#63706: TCP request Nov 28 23:50:38.273 client 127.0.0.1#63706: error Nov 28 23:50:38.273 client 127.0.0.1#63706: send Nov 28 23:50:38.273 client 127.0.0.1#63706: sendto Nov 28 23:50:38.273 client 127.0.0.1#63706: senddone Nov 28 23:50:38.274 client 127.0.0.1#63706: next Nov 28 23:50:38.274 client 127.0.0.1#63706: endrequest Nov 28 23:50:38.274 client 127.0.0.1#63706: read Nov 28 23:50:38.282 client 127.0.0.1#63706: next Nov 28 23:50:38.282 client 127.0.0.1#63706: request failed: end of file Nov 28 23:50:38.282 client 127.0.0.1#63706: endrequest Nov 28 23:50:38.282 client 127.0.0.1#63706: closetcp Nov 28 23:50:38.288 client 127.0.0.1#61653: UDP request Nov 28 23:50:38.288 client 127.0.0.1#61653: request is not signed Nov 28 23:50:38.288 client 127.0.0.1#61653: recursion available: approved Nov 28 23:50:38.288 client 127.0.0.1#61653: query Nov 28 23:50:38.288 client 127.0.0.1#61653: query '172.16.1.100.deny.rbl/IN' approved Nov 28 23:50:38.288 client 127.0.0.1#61653: send Nov 28 23:50:38.288 client 127.0.0.1#61653: sendto Nov 28 23:50:38.288 client 127.0.0.1#61653: senddone Any idea what the "request failed: end of file" means and how to deal with this? The dynamic update example at http://www.xbill.org/dnsjava/examples.html didn't work. The update.java in the distribution... it's not clear how to use it and anyway, it's pretty complicated; I just need to send single short TTL updates to a BIND server. Any pointers to working code that uses org.xbill.DNS.Update would be appreciated. thx, -Ian |