1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4-dns: Ignore zones that shouldn't be returned currently

RootDNSServers should never be returned (Windows DNS server don't)
..TrustAnchors should never be returned as is, (Windows returns
TrustAnchors) and for the moment we don't support DNSSEC so we'd better
not return this zone.
This commit is contained in:
Matthieu Patou
2012-10-01 21:36:34 -07:00
parent 95ea6d765b
commit ffab1d7cb2

View File

@ -833,7 +833,13 @@ static void dns_task_init(struct task_server *task)
z->name = ldb_msg_find_attr_as_string(res->msgs[i], "name", NULL);
z->dn = talloc_move(z, &res->msgs[i]->dn);
/* Ignore the RootDNSServers zone and zones that we don't support yet */
if ((strcmp(z->name, "RootDNSServers") == 0) ||
(strcmp(z->name, "..TrustAnchors") == 0)) {
DEBUG(10, ("Ignoring zone %s\n", z->name));
talloc_free(z);
continue;
}
DLIST_ADD_END(dns->zones, z, NULL);
}