summaryrefslogtreecommitdiff
path: root/source4/dns_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-12-21 20:53:58 +1100
committerAndrew Tridgell <tridge@samba.org>2010-12-21 12:05:51 +0100
commit901f34840b0cd3dc197828d642b7b5e882e8fc00 (patch)
tree050adff84187cf30dc76cc45747849029826ed5d /source4/dns_server
parentf2dea305f4bd263325076c8ec21e31fa40d37168 (diff)
downloadsamba-901f34840b0cd3dc197828d642b7b5e882e8fc00.tar.gz
samba-901f34840b0cd3dc197828d642b7b5e882e8fc00.tar.bz2
samba-901f34840b0cd3dc197828d642b7b5e882e8fc00.zip
s4-dns: set dwSerial and dwFlags
we are waiting on full docs on these, but this is better than zero Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Dec 21 12:05:51 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/dns_server')
-rw-r--r--source4/dns_server/dlz_bind9.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c
index 1b522632aa..83790c8da0 100644
--- a/source4/dns_server/dlz_bind9.c
+++ b/source4/dns_server/dlz_bind9.c
@@ -38,6 +38,7 @@ struct dlz_bind9_data {
struct tevent_context *ev_ctx;
struct loadparm_context *lp;
int *transaction_token;
+ uint32_t soa_serial;
/* helper functions from the dlz_dlopen driver */
void (*log)(int level, const char *fmt, ...);
@@ -162,6 +163,8 @@ static bool b9_format(struct dlz_bind9_data *state,
return false;
}
+ state->soa_serial = rec->data.soa.serial;
+
*data = talloc_asprintf(mem_ctx, "%s %s %u %u %u %u %u",
mname,
rec->data.soa.rname,
@@ -1187,6 +1190,10 @@ _PUBLIC_ isc_result_t dlz_addrdataset(const char *name, const char *rdatastr, vo
return ISC_R_NOMEMORY;
}
+ /* we're waiting on docs for this field */
+ rec->dwFlags = 0x0000f005;
+ rec->dwSerial = state->soa_serial;
+
if (!b9_parse(state, rdatastr, rec)) {
state->log(ISC_LOG_INFO, "samba_dlz: failed to parse rdataset '%s'", rdatastr);
talloc_free(rec);