[Samba] DNS add - Python error when record exists

Rowland penny rpenny at samba.org
Mon Mar 2 13:37:47 UTC 2020


On 02/03/2020 12:06, Paul Littlefield via samba wrote:
> ...I get the following error...
>
>
> ERROR(runtime): uncaught exception - (9711, 
> 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
>   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", 
> line 176, in _run
>     return self.run(*args, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 
> 940, in run
>     raise e
>
>
> ...I could have sworn that used to output a nicer looking line 
> ('Record already exists') with no error.

You are correct, the code that checked if a record already existed was 
removed at the end of 2016, I have no idea why.

Rowland





More information about the samba mailing list