[KLUG Members] Samba wins-to-dns

Adam Williams members@kalamazoolinux.org
16 Aug 2002 23:42:35 -0400


>>Ew! "wins hook" + dns_update calling nsupdate (a part of BIND itself)
>>is far more `live` and elegant than the batch method described (IMHO).
>Well, I'm stumped. The stupid thing not only won't work, it won't write
>a single damn message to the logs indicating it even tried.
>This line:
>echo "update add arlandus.caresswm.org. 2000 A 192.168.1.30" | nsupdate -d
>does nothing, even on the command line where one might expect to see
>some error messages. nsupdate even exits successfully.

Yep.  All sequences to nsupdate must end in a blank line,  the blank
line means "nsupdate, now process everything I've sent you so far."  A
nice undocumented requirement that kept me stumped for hours.

>What does your "wins hook" line look like, Adam?

I'll post my script tomorrow,  or else it is in the KLUG list archives
somewhere I think.