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

NAME

6       dns_ip4_qualify - qualify name and look up IPv4 addresses
7

SYNTAX

9       #include <dns.h>
10
11       int dns_ip4_qualify(stralloc* out,stralloc* fqdn,
12                           const stralloc* udn);
13

DESCRIPTION

15       dns_ip4_qualify  feeds  the name udn through qualification and looks up
16       4-byte IP addresses for the result. It puts the fully qualified  domain
17       name  into  fqdn,  puts the concatenation of the IP addresses into out,
18       and returns 0. If the domain does not  exist  in  DNS,  or  has  no  IP
19       addresses, out will be empty.
20
21       If dns_ip4_qualify has trouble with the qualification, has trouble with
22       DNS, or runs out of memory, it returns -1, setting errno appropriately.
23       It may or may not change out and fqdn.
24

QUALIFICATION

26       See http://cr.yp.to/djbdns/qualification.html
27

SEE ALSO

29       dns_ip4(3), dns_ip4_packet(3), dns_ip6_qualify(3)
30
31
32
33                                                            dns_ip4_qualify(3)
Impressum