nsupdate on a Windows ec2 instance to update dynamic DNS isn't working

kallen at groknaut.net kallen at groknaut.net
Mon Oct 10 16:46:27 UTC 2011


On Sat, 08 Oct 2011, Mark Andrews wrote:

> Make sure that the "send" line has a end of line.  Many windows editors
> don't add a end of line unlike unix editors that do.
 

that was it. thank you!



> In message <20111007221843.GQ28923 at dradis.groknaut.net>, kallen at groknaut.net wr
> ites:
> > 
> > 
> > hello,
> > 
> > 
> > i'm trying to update dynamic DNS for my windows ec2 instance by running
> > BIND's nsupdate from the instance. it's not working. i'll show details
> > below.
> > 
> > anyone have any idea what's going on? what else i should look at or try?
> > 
> > * nsupdate command reports no error
> > * my BIND nameserver never sees the packets
> > * running wireshark on the windows instance itself shows me it's not
> >   sending any packets to the nameserver
> > * the Windows Firewall Service is not running
> > * the windows instance runs Windows Server 2003, Datacenter Edition, R2
> > 
> > i do know the nameserver is set up correctly in that my linux instances
> > are able to update dynamic dns using nsupdate against this nameserver.
> > 
> > 
> > contents of update.txt:
> > server 10.x.x.x
> > zone dev.sushimysavior.com
> > update delete SOUS-CHEF-WIN.dev.sushimysavior.com. A 
> > update add SOUS-CHEF-WIN.dev.sushimysavior.com. 86400 IN A 10.y.y.y
> > show
> > debug
> > send
> > 
> > in case it is necessary, i have a resolv.conf in place at
> > C:\WINDOWS\system32\drivers\etc\resolv.conf that contains:
> > 
> >     nameserver 10.x.x.x
> > 
> > 
> > and here's the nsupdate command run:
> > 
> > C:\work\bin>C:\WINDOWS\system32\dns\bin\nsupdate.exe -k C:\WINDOWS\system32\d
> > ns\etc\Kuser-ddns-ec2.sushimysavior.com.+157+14445.key -v -d -D -L 2 C:\WINDO
> > WS\system32\dns\etc\update.txt
> > setup_system()
> > Creating key...
> > reset_system()
> > user_interaction()
> > get_next_command()
> > get_next_command()
> > get_next_command()
> > evaluate_update()
> > update_addordelete()
> > get_next_command()
> > evaluate_update()
> > update_addordelete()
> > get_next_command()
> > show_message()
> > Outgoing update query:
> > ;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:      0
> > ;; flags:; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
> > ;; ZONE SECTION:
> > ;dev.sushimysavior.com.              IN      SOA
> > 
> > ;; UPDATE SECTION:
> > SOUS-CHEF-WIN.dev.sushimysavior.com. 0 ANY   A
> > SOUS-CHEF-WIN.dev.sushimysavior.com. 86400 IN A      10.y.y.y
> > 
> > get_next_command()
> > get_next_command()
> > cleanup()
> > Shutting down task manager
> > shutdown_program()
> > Shutting down request manager
> > Freeing TSIG key
> > Destroy DST lib
> > Destroying request manager
> > Freeing the dispatchers
> > Shutting down dispatch manager
> > Destroying event
> > Shutting down socket manager
> > Shutting down timer manager
> > Destroying hash context
> > Destroying name state
> > Removing log context
> > Destroying memory context
> > 
> > C:\work\bin>



More information about the bind-users mailing list