From: Brian W. <bwe...@xb...> - 2009-05-06 21:21:19
|
On Wed, 6 May 2009, Eman wrote: > So I have dnsjava working just fine but I can't seem to replace a host with a > dynamic address.. here is my code > > [snip] > > This is the output I get (assuming blah works..) > > > www.blah.com. 176400 IN A X.X.X.X > 2009-05-06 13:39:28,192 [main] INFO - BEFORE X.X.X.X > java.net.ConnectException: Connection refused Your problem is that you're sending the update to the wrong place, hence the Connection Refused. > I guess I don't understand what Message response = res.send(update); is > doing and how that updates the resolving of the hostname? Can someone > enlighten me? It's sending the update to the DNS server, so that the DNS server can return the new data next time it's asked. You're not sending it to the DNS server, so it's not working. Brian |