On Fri, 23 Sep 2016 17:38:35 +0100 Jonathan Hunter via samba <samba at lists.samba.org> wrote:> OK, the code from samba_dnsupdate : > nsupdate_cmd = lp.get('nsupdate command') > [....] > cmd = nsupdate_cmd[:] > cmd.append(tmpfile) > ret = subprocess.call(cmd, shell=False, env=env) > > And > $ sudo /usr/local/samba/bin/samba-tool testparm > --parameter-name=nsupdate\ command > /usr/bin/nsupdate -g > > But, I don't have anything called nsupdate anywhere on my machine, > which I guess is the problem. > $ find / -name nsupdate 2>/dev/null > $ > > I thought that nsupdate was something for using BIND, not internal > DNS; maybe I'm wrong there. >Well, wrong and right ;-) Wrong, in that you need it for the updates and right that it comes from Bind. You need to install it, it is called bind9utils on debian. Rowland
Jonathan Hunter
2016-Sep-23 17:12 UTC
[Samba] dnsupdate_nameupdate_done - Failed DNS update
(I just realised I was top-posting because I'm using gmail here.. apologies :) ) On 23 September 2016 at 17:49, Rowland Penny via samba < samba at lists.samba.org> wrote:> On Fri, 23 Sep 2016 17:38:35 +0100 > Jonathan Hunter via samba <samba at lists.samba.org> wrote: > > $ sudo /usr/local/samba/bin/samba-tool testparm > > --parameter-name=nsupdate\ command > > /usr/bin/nsupdate -g > > > > But, I don't have anything called nsupdate anywhere on my machine, > > which I guess is the problem. > > $ find / -name nsupdate 2>/dev/null > > $ > > Well, wrong and right ;-) > Wrong, in that you need it for the updates and right that it comes from > Bind. > > You need to install it, it is called bind9utils on debian. >Hmm. I just installed bind9utils but it doesn't come with /usr/bin/nsupdate.. However I then found the 'dnsutils' package, which does! :) (debian jessie) I can now successfully run "/usr/local/samba/sbin/samba_dnsupdate --verbose"! Well, I say successfully - I am now getting many "tsig verify failure" errors - but I'm further forward at least :) I'm sure I have seen much on the list and on the wiki regarding these errors, so when I get back later on I will try to figure those out.. The first error has been found, at least - and I will add the 'dnsutils' package to my other DCs also, as well as my build notes :) Many thanks Jonathan -- "If we knew what it was we were doing, it would not be called research, would it?" - Albert Einstein
On Fri, 23 Sep 2016 18:12:32 +0100 Jonathan Hunter via samba <samba at lists.samba.org> wrote:> (I just realised I was top-posting because I'm using gmail here.. > apologies :) ) > On 23 September 2016 at 17:49, Rowland Penny via samba < > samba at lists.samba.org> wrote: > > > On Fri, 23 Sep 2016 17:38:35 +0100 > > Jonathan Hunter via samba <samba at lists.samba.org> wrote: > > > $ sudo /usr/local/samba/bin/samba-tool testparm > > > --parameter-name=nsupdate\ command > > > /usr/bin/nsupdate -g > > > > > > But, I don't have anything called nsupdate anywhere on my machine, > > > which I guess is the problem. > > > $ find / -name nsupdate 2>/dev/null > > > $ > > > > Well, wrong and right ;-) > > Wrong, in that you need it for the updates and right that it comes > > from Bind. > > > > You need to install it, it is called bind9utils on debian. > > > > Hmm. I just installed bind9utils but it doesn't come with > /usr/bin/nsupdate.. However I then found the 'dnsutils' package, which > does! :) (debian jessie) > > I can now successfully run "/usr/local/samba/sbin/samba_dnsupdate > --verbose"! > > Well, I say successfully - I am now getting many "tsig verify failure" > errors - but I'm further forward at least :) I'm sure I have seen > much on the list and on the wiki regarding these errors, so when I > get back later on I will try to figure those out.. > > The first error has been found, at least - and I will add the > 'dnsutils' package to my other DCs also, as well as my build notes :) > > Many thanks > > Jonathan >OOPS, I knew it ended in 'utils', I just got it mixed up with dnsutils, sorry. Rowland