![]() |
![]()
| ![]() |
![]()
NAME
LIBRARYPDEL Library (libpdel, -lpdel) SYNOPSIS
extern const struct structs_type structs_type_dnsname; DESCRIPTIONstructs_type_dnsname is a
structs(3)
types for DNS resolvable hostnames. The represented data structure is a
DEFINE_STRUCTS_ARRAY(structs_dnsname_ips, struct in_addr); struct structs_dnsname { const char *name; /* dns name to look up */ struct structs_dnsname_ips ips; /* array of >= 1 ip addrs */ }; The ASCII representation of this type is just the hostname. When this ASCII form is converted to native binary form, a DNS lookup is performed and the ips array is filled in with the result. If the DNS lookup fails, so too does the ASCII conversion. SEE ALSOlibpdel(3), structs(3), structs_type(3), structs_type_array(3) HISTORYThe PDEL library was developed at Packet Design, LLC.
AUTHORSArchie Cobbs ⟨archie@freebsd.org⟩ BUGSThis type could be made more general, for example supporting MX records or IPv6 addresses.
|