On 28/03/2023 10:37, Philip Offermans via samba wrote:> [2023/03/28 11:32:15.524325, 0] ../../lib/util/util_runcmd.c:352(samba_runcmd_io_handler) > > /usr/sbin/samba_dnsupdate: ERROR: Record already exist; record could not be added. zone[starmans.lan] name[nobel] >> dnsupdate_nameupdate_done: Failed DNS update with exit code 29 > > My /var/log/samba/log.samba is filled with these messages. It says that samba_dnsupdate tries to add records that already excist in dns. But how can I tell samba_dnsupdate to stop trying to add these records? Or is there another solutions to fix these errors > > Philip Offermans >This is happening because every 10 minutes the samba_dnsupdate script is being run, which uses a file called dns_update_list to try and add a list of records, these records need to exist. However, you are getting an error that isn't an error, how can trying to add something that must exist be an error because it already exists ? I 'think' the update command needs to be wrapped in a 'try' that fails silently if the error is that the record already exists. Rowland
Thanks Rowland! I don't have the expertice to wrap it in a 'try'. Should I just ignore these errors in the logs? And am I the only one who gets these errors? I found this https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871655 They found a solution. But I don't get what the exactly did Philip ________________________________ Van: samba <samba-bounces at lists.samba.org> namens Rowland Penny via samba <samba at lists.samba.org> Verzonden: dinsdag 28 maart 2023 13:08 Aan: samba at lists.samba.org <samba at lists.samba.org> CC: Rowland Penny <rpenny at samba.org> Onderwerp: Re: [Samba] Error message dns On 28/03/2023 10:37, Philip Offermans via samba wrote:> [2023/03/28 11:32:15.524325, 0] ../../lib/util/util_runcmd.c:352(samba_runcmd_io_handler) > > /usr/sbin/samba_dnsupdate: ERROR: Record already exist; record could not be added. zone[starmans.lan] name[nobel] >> dnsupdate_nameupdate_done: Failed DNS update with exit code 29 > > My /var/log/samba/log.samba is filled with these messages. It says that samba_dnsupdate tries to add records that already excist in dns. But how can I tell samba_dnsupdate to stop trying to add these records? Or is there another solutions to fix these errors > > Philip Offermans >This is happening because every 10 minutes the samba_dnsupdate script is being run, which uses a file called dns_update_list to try and add a list of records, these records need to exist. However, you are getting an error that isn't an error, how can trying to add something that must exist be an error because it already exists ? I 'think' the update command needs to be wrapped in a 'try' that fails silently if the error is that the record already exists. Rowland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba