--- a/samba-4.10.0~rc4+dfsg/source4/dns_server/dlz_bind9.c 2019-01-15 11:07:00.000000000 +0100 +++ b/source4/dns_server/dlz_bind9.c 2019-03-19 09:01:32.919423861 +0100 @@ -1276,6 +1276,17 @@ return false; } + /* + * The SOA record is alwas stored under DC=@,DC=zonename + * This can probably be removed when dns_common_lookup makes a fallback + * lookup on @ pseudo record + */ + + if (!ldb_dn_add_child_fmt(dn,"DC=@")) { + talloc_free(tmp_ctx); + return false; + } + werr = dns_common_lookup(state->samdb, tmp_ctx, dn, &records, &num_records, NULL); if (!W_ERROR_IS_OK(werr)) {