Man Linux: Main Page and Category List

NAME

       dns_ip4_qualify - Qualification

SYNOPSIS

       #include <dns.h>

       dns_ip4_qualify(&out, &fqdn, &udn);
         stralloc out = {0};
         stralloc fqdn = {0};
         stralloc udn = {0};

DESCRIPTION

       dns_ip4_qualify  feeds  the name udn through qualification(5) and looks
       up 4-byte IP addresses for the result.  It  puts  the  fully  qualified
       domain  name into fqdn, puts the concatenation of the IP addresses into
       out, and returns 0. If the domain does not exist in DNS, or has  no  IP
       addresses, out will be empty.

       If  dns_ip4_qualify  has trouble with the qualification(5), has trouble
       with DNS,  or  runs  out  of  memory,  it  returns  -1,  setting  errno
       appropriately. It may or may not change out and fqdn.

SEE ALSO

       dns_domain(3),   dns_ip4(3),  dns_mx(3),  dns_name4(3),  dns_packet(3),
       dns_random(3), dns_transmit(3), dns_txt(3)

       http://cr.yp.to/djbdns/blurb/library.html

                                                            dns_ip4_qualify(3)