[Samba] recreate/re-provision DNS db from scratch?

Rowland Penny rowlandpenny at googlemail.com
Wed Feb 25 13:34:39 MST 2015


On 25/02/15 20:17, Marc Muehlfeld wrote:
> Hello Bram,
>
> Am 24.02.2015 um 22:04 schrieb Bram Matthys:
>> # /usr/local/samba/bin/samba-tool dns zonelist 192.168.2.4
>> ..
>> Using binding ncacn_ip_tcp:192.168.2.4[,sign]
>> Mapped to DCERPC endpoint 135
>> added interface jnet ip=192.168.2.4 bcast=192.168.7.255 netmask=255.255.248.0
>> added interface wifi ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0
>> added interface jnet ip=192.168.2.4 bcast=192.168.7.255 netmask=255.255.248.0
>> added interface wifi ip=10.0.0.2 bcast=10.255.255.255 netmask=255.0.0.0
>> ERROR(runtime): uncaught exception - (-1073741801, 'Memory allocation error')
>>    File
>> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py",
>> line 175, in _run
>>      return self.run(*args, **kwargs)
>>    File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py",
>> line 809, in run
>>      dns_conn = dns_connect(server, self.lp, self.creds)
>>    File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py",
>> line 40, in dns_connect
>>      dns_conn = dnsserver.dnsserver(binding_str, lp, creds)
>
> Is 4.0.6 the last version, that works? Have you tried just the next (4.0.7)?
>
>
> What happens if you connect to the second IP (10.0.0.2) instead? Or
> 127.0.0.1?
>
>
> Please show the output of
> # netstat -tulpn | grep :53
>
>
>
> Regards,
> Marc
>

Hi Marc, I asked the OP a question that he hasn't answered yet, I asked 
it because he sent an email to Achim, and he replied on list, to which 
the OP took great umbridge. Amongst the post he sent to Achim was this:

# ldbmodify -H 
/root/DC\=DOMAINDNSZONES\,DC\=JNET\,DC\=HERMANJORDAN\,DC\=NL.ldb 
/root/killthese

Now this was only a test, but what if he did it for real, there is a 
good chance he has hosed his setup and will probably never be able to 
upgrade, I personally think his only chance now is to try and join 
another DC and hope it replicates ok, but I wouldn't hold my breath over 
it working.

Rowland


More information about the samba mailing list