diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2017-08-03 15:12:02 +1200 |
---|---|---|
committer | Garming Sam <garming@samba.org> | 2017-08-15 08:07:10 +0200 |
commit | edcbc991253f4d6f59ef9a43a691c66cbbdc2b6d (patch) | |
tree | a3641f0fa6cc0aa2183b1cff9c0da49a6a0e355d /source4/dns_server/dns_server.h | |
parent | 34acf5a99214639e5e7792a9e85d24c9fd7640ac (diff) | |
download | samba-edcbc991253f4d6f59ef9a43a691c66cbbdc2b6d.tar.gz |
dnsserver: Add support for dns wildcards
Add support for dns wildcard records. i.e. if the following records
exist
exact.samba.example.com 3600 A 1.1.1.1
*.samba.example.com 3600 A 1.1.1.2
look up on exact.samba.example.com will return 1.1.1.1
look up on *.samba.example.com will return 1.1.1.2
look up on other.samba.example.com will return 1.1.1.2
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12952
Diffstat (limited to 'source4/dns_server/dns_server.h')
-rw-r--r-- | source4/dns_server/dns_server.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dns_server/dns_server.h b/source4/dns_server/dns_server.h index 5395ff95161..382b6bdf95b 100644 --- a/source4/dns_server/dns_server.h +++ b/source4/dns_server/dns_server.h @@ -95,6 +95,11 @@ WERROR dns_lookup_records(struct dns_server *dns, struct ldb_dn *dn, struct dnsp_DnssrvRpcRecord **records, uint16_t *rec_count); +WERROR dns_lookup_records_wildcard(struct dns_server *dns, + TALLOC_CTX *mem_ctx, + struct ldb_dn *dn, + struct dnsp_DnssrvRpcRecord **records, + uint16_t *rec_count); WERROR dns_replace_records(struct dns_server *dns, TALLOC_CTX *mem_ctx, struct ldb_dn *dn, |