Email List: Xaustin-review-lX
[All Lists]

Defect in XSH - missing res_init()

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH - missing res_init()
From: Petter Reinholdtsen <yyyy@xxxxxxxxxx>
Date: Fri, 23 Jul 2004 12:23:40 +0200
  Defect report from : Petter Reinholdtsen, The Hungry Programmers

(Please direct followup comments direct to The Austin Group)

@ page 0 line 0 section 0 comment {1}

Problem:

Defect code :  2. Omission

There is currently no documented way to get the DNS resolver to reload
its configuration.  This is when a the old DNS server is unavailable,
and the programs should start using a new DNS server.

This operation is normally done using the res_init() function, but
this function is not mentioned on
<URL:http://www.opengroup.org/onlinepubs/009695399/>, and seem to be
missing in the specification.

Action:

Please document res_init() and its behaviour.  This is the prototype
from the manual page on Solaris:

  #include <sys/types.h>
  #include <netinet/in.h>
  #include <arpa/nameser.h>
  #include <resolv.h>
  int res_init(void);

The function rereads the resolver configuration file /etc/resolv.conf.
I'm not sure if it reread /etc/host.conf as well.

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XSH - missing res_init(), Petter Reinholdtsen <=