res_init man page on DigitalUNIX

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

res_init(3)							   res_init(3)

NAME
       res_init - Search for a default domain name and Internet address

SYNOPSIS
       #include	    <sys/types.h>     #include	   <netinet/in.h>     #include
       <arpa/nameser.h> #include <resolv.h>

       void res_init(
	       void );

LIBRARY
       Standard C Library (libc)

DESCRIPTION
       The res_init() function reads the /etc/resolv.conf file for the default
       domain  name  and the Internet address of the initial hosts running the
       name server, even if the name server is not functioning.

       The res_init() function is one of a set of subroutines  that  form  the
       resolver,  a  set of functions that resolve domain names.  All resolver
       functions use the /usr/include/resolv.h header file, which defines  the
       _res data structure.  The res_init() function stores domain name infor‐
       mation in the _res data structure.

NOTES
       If the /etc/resolv.conf file does not exist,  the  res_init()  function
       attempts name resolution using the local /etc/hostsfile.	 If the system
       is not using a domain name server, the /etc/resolv.conf file should not
       exist.	The /etc/host file should be present on the system even if the
       system is using a name server.  In this instance, the file should  con‐
       tain the host IDs that the system requires to function even if the name
       server is not functioning.

FILES
       Contains the name server and domain name.  Contains hostnames and their
       addresses  for hosts in a network. This file is used to resolve a host‐
       name into an Internet address.

SEE ALSO
       Functions: dn_comp(3), dn_expand(3), dn_find(3), dn_skipname(3),	 _get‐
       long(3),	  _getshort(3),	  putlong(3),	putshort(3),   res_mkquery(3),
       res_query(3), res_search(3), res_send(3).

								   res_init(3)
[top]

List of man pages available for DigitalUNIX

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]
Tweet
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