hesiod man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

hesiod(3)							     hesiod(3)

       hes_init, hes_to_bind, hes_error, hes_resolve - routines for using Hes‐

       #include <hesiod.h>


       char *hes_to_bind(HesiodName, HesiodNameType)
       char *HesiodName, *HesiodNameType;


       har **hes_resolve(HesiodName, HesiodNameType)
       char *HesiodName, *HesiodNameType;

       The routine opens and reads the Hesiod configuration file,  to  extract
       the left hand side and right hand side of the Hesiod name.

       The routine takes as arguments a and and returns a fully qualified name
       to be handed to BIND.

       The two most useful routines to the applications programmer are and The
       routine	has no arguments and returns an integer which corresponds to a
       set of errors which can be found in file.
       #define HES_ER_UNINIT	       -1

       #define HES_ER_OK		0

       #define HES_ER_NOTFOUND		1

       #define HES_ER_CONFIG		2

       #define HES_ER_NET		3

       The routine resolves given names via the Hesiod name server.  It	 takes
       as arguments a name to be resolved, the and a type corresponding to the
       name, the and returns a pointer to an array of strings  which  contains
       all  data  that matched the query, one match per array slot.  The array
       is null terminated.

       If applications require the data to be maintained  throughout  multiple
       calls to the data should be copied since another call to will overwrite
       any previously-returned data.  A null is returned if the data cannot be

       The  following example shows the use of the Hesiod routines to obtain a
       Hesiod name from a Hesiod database:
       #include <hesiod.h>

       char *HesiodName, *HesiodNameType;
       char **hp;

       hp = hes_resolve(HesiodName, HesiodNameType);
       if (hp == NULL) {
	    error = hes_error();
	    switch(error) {

See Also
       hesiod.conf(5), bindsetup(8)
       Guide to the BIND/Hesiod Service


List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net