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/dnsserver_common.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/dnsserver_common.h')
-rw-r--r-- | source4/dns_server/dnsserver_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dns_server/dnsserver_common.h b/source4/dns_server/dnsserver_common.h index b615e2dcfae..f2be44ff0d6 100644 --- a/source4/dns_server/dnsserver_common.h +++ b/source4/dns_server/dnsserver_common.h @@ -47,6 +47,11 @@ WERROR dns_common_lookup(struct ldb_context *samdb, struct dnsp_DnssrvRpcRecord **records, uint16_t *num_records, bool *tombstoned); +WERROR dns_common_wildcard_lookup(struct ldb_context *samdb, + TALLOC_CTX *mem_ctx, + struct ldb_dn *dn, + struct dnsp_DnssrvRpcRecord **records, + uint16_t *num_records); WERROR dns_name_check(TALLOC_CTX *mem_ctx, size_t len, const char *name); |