1dns_name6(3) Library Functions Manual dns_name6(3)
2
3
4
6 dns_name6 - look up host name
7
9 #include <dns.h>
10
11 int dns_name6(stralloc* out,const char* ip[16]);
12
14 dns_name6 looks up the domain name for the 16-byte IPv6 address in ip.
15 It puts the (first) domain name into out and returns 0. If the relevant
16 ip6.arpa domain does not exist in DNS, or has no PTR records, out will
17 be empty.
18
19 If dns_name6 has trouble with the DNS lookup or runs out of memory, it
20 returns -1, setting errno appropriately. It may or may not change out.
21
23 dns_name_packet(3), dns_name6_domain(3), dns_name4(3), dns_ip6(3)
24
25
26
27 dns_name6(3)