diff options
author | Gerald Carter <jerry@samba.org> | 2006-12-14 17:00:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:29 -0500 |
commit | 3486acd3c3ebefae8f98dcc72d1c3d6b06fffcc7 (patch) | |
tree | bf43f865d2e26029404b34bc33169dfb10997b21 /source/libaddns | |
parent | a1378979be4fe5ac5148b0a7830859aebb97838c (diff) | |
download | samba-3486acd3c3ebefae8f98dcc72d1c3d6b06fffcc7.tar.gz samba-3486acd3c3ebefae8f98dcc72d1c3d6b06fffcc7.tar.xz samba-3486acd3c3ebefae8f98dcc72d1c3d6b06fffcc7.zip |
r20173: DNS update fixes:
* Fix DNS updates for multi-homed hosts
* Child domains often don't have an NS record in
DNS so we have to fall back to looking up the the NS
records for the forest root.
* Fix compile warning caused by mismatched 'struct in_addr'
and 'in_addr_t' parameters called to DoDNSUpdate()
Diffstat (limited to 'source/libaddns')
-rw-r--r-- | source/libaddns/dns.h | 2 | ||||
-rw-r--r-- | source/libaddns/dnsrecord.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/libaddns/dns.h b/source/libaddns/dns.h index e8fa12c492d..12401740761 100644 --- a/source/libaddns/dns.h +++ b/source/libaddns/dns.h @@ -493,7 +493,7 @@ DNS_ERROR dns_sign_update(struct dns_update_request *req, DNS_ERROR dns_create_update_request(TALLOC_CTX *mem_ctx, const char *domainname, const char *hostname, - const in_addr_t *ip_addr, + const struct in_addr *ip_addr, size_t num_adds, struct dns_update_request **preq); diff --git a/source/libaddns/dnsrecord.c b/source/libaddns/dnsrecord.c index 0cf4793935d..11c6884d9d5 100644 --- a/source/libaddns/dnsrecord.c +++ b/source/libaddns/dnsrecord.c @@ -356,7 +356,7 @@ DNS_ERROR dns_create_probe(TALLOC_CTX *mem_ctx, const char *zone, DNS_ERROR dns_create_update_request(TALLOC_CTX *mem_ctx, const char *domainname, const char *hostname, - const in_addr_t *ip_addr, + const struct in_addr *ip_addrs, size_t num_addrs, struct dns_update_request **preq) { @@ -395,7 +395,7 @@ DNS_ERROR dns_create_update_request(TALLOC_CTX *mem_ctx, */ for ( i=0; i<num_addrs; i++ ) { - err = dns_create_a_record(req, hostname, 3600, ip_addr[i], &rec); + err = dns_create_a_record(req, hostname, 3600, ip_addrs[i].s_addr, &rec); if (!ERR_DNS_IS_OK(err)) goto error; |