1dns_name4(3)               Library Functions Manual               dns_name4(3)
2
3
4

NAME

6       dns_name4 - look up host name
7

SYNTAX

9       #include <dns.h>
10
11       int dns_name4(stralloc* out,const char* ip[4]);
12

DESCRIPTION

14       dns_name4  looks up the domain name for the 4-byte IP address in ip. It
15       puts the (first) domain name into out and returns 0.  If  the  relevant
16       in-addr.arpa  domain  does not exist in DNS, or has no PTR records, out
17       will be empty.
18
19       If dns_name4 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

SEE ALSO

23       dns_name_packet(3), dns_name4_domain(3), dns_name6(3), dns_ip4(3)
24
25
26
27                                                                  dns_name4(3)
Impressum