summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>2018-04-11 16:31:13 +0200
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>2018-04-11 16:31:13 +0200
commitc78008b454ab10687dfb4aa1cb49d360e181ceb5 (patch)
tree1a5598822aa1d686a612ae0e083dacc19f0b07e5
parent794ee34c6d064ae4ec6a5aab9445ba156735eefe (diff)
downloadldns-c78008b454ab10687dfb4aa1cb49d360e181ceb5.tar.gz
ldns-notify with IPv6 address
-rw-r--r--Changelog1
-rw-r--r--examples/ldns-notify.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/Changelog b/Changelog
index 3a8faaae..67afe939 100644
--- a/Changelog
+++ b/Changelog
@@ -27,6 +27,7 @@
* bugfix #1399: ldns_pkt2wire() Python binding is broken.
Thanks James Raftery
* ED25519 and ED448 support.
+ * ldns-notify: can have IPv6 address as argument.
1.7.0 2016-12-20
* Fix lookup of relative names in ldns_resolver_search.
diff --git a/examples/ldns-notify.c b/examples/ldns-notify.c
index 7d348de7..8e95e0cd 100644
--- a/examples/ldns-notify.c
+++ b/examples/ldns-notify.c
@@ -351,6 +351,7 @@ main(int argc, char **argv)
printf("# sending to %s\n", argv[i]);
memset(&hints, 0, sizeof(hints));
hints.ai_family = default_family;
+ if(strchr(argv[i], ':')) hints.ai_family = AF_INET6;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_protocol = IPPROTO_UDP;
error = getaddrinfo(argv[i], port, &hints, &res0);