GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  STRUCTS_TYPE_DNSNAME (3)

NAME

structs_type_dnsname - structs type for DNS resolvable hostnames

CONTENTS

Library
Synopsis
Description
See Also
History
Authors
Bugs

LIBRARY

PDEL Library (libpdel, -lpdel)

SYNOPSIS


.In sys/types.h
.In pdel/structs/structs.h
.In pdel/structs/type/array.h
.In pdel/structs/type/dnsname.h
.Vt extern const struct structs_type structs_type_dnsname ;

DESCRIPTION

structs_type_dnsname is a structs(3) types for DNS resolvable hostnames. The represented data structure is a struct structs_dnsname, which contains both the ASCII hostname and an array of one or more IP addresses that resulted from a DNS lookup:

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 ALSO

libpdel(3), structs(3), structs_type(3), structs_type_array(3)

HISTORY

The PDEL library was developed at Packet Design, LLC. http://www.packetdesign.com/

AUTHORS


.An Archie Cobbs Aq archie@freebsd.org

BUGS

This type could be made more general, for example supporting MX records or IPv6 addresses.
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.