Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 1995 21:32:34 +0100
From:      se@zpr.uni-koeln.de (Stefan Esser)
To:        hackers@freebsd.org
Subject:   Re: Xing's xnetview
Message-ID:  <199511092032.AA11157@Sysiphos>
In-Reply-To: faulkner@mpd.tandem.com (Boyd Faulkner) "Re: Xing's xnetview" (Nov  9, 13:44)

next in thread | raw e-mail | index | archive | help
On Nov 9, 13:44, Boyd Faulkner wrote:
} Subject: Re: Xing's xnetview

} Thanks to the new ext2fs in current, I can tell you that the linux host.conf
} says
} 
} order hosts, bind
} multi on

Doesn't look unreasonable ...

Hmmm ...

Guess this is the format introduced 
in the resolv+ library for SunOS
(at a time, when Sun still officially 
believed into NIS as the only way to 
find an IP address ... :)

If this is in fact has been the base 
for the Linux resolver code, then the
following environment variable may 
allow mapping the name of the host.conf
file into the /compat/linux tree:

     RESOLV_HOST_CONF
          If  set,  it  will  override   the   default   filename
          ("/etc/host.conf") for the resolv+ configuration file.

(Tested this, and, well: It does work!!!)

BTW:

Any chance to get this into FreeBSD,
as a valid alternate syntax ?

Didn't check this, but AFAIK the 
resolv+ package had been released 
under a non-restrictive copyright.

This is an excerpt from the man page
of that enhanced resolver library:

---- 8< ---- cut here ---- 8< ---- cut here ---- 8< ---- cut here ---- 8< ----

     The host.conf file should contain one configuration  keyword
     per line, followed by appropriate configuration information.
     The keywords recognized are order , trim , multi , and  nos-
     poof . Each keyword is described seperately below.

     order
          This keyword specifies how host lookups are to be  per-
          formed.   It  should  be followed by one or more lookup
          methods, seperated by commas.  Valid methods are bind ,
          hosts and nis .

     trim This keyword may be listed more than once.   Each  time
          it should be followed by a single domain name, with the
          leading  dot.   When  set,  the  resolv+  library  will
          automatically  trim  the given domain name from the end
          of any hostname resolved via DNS.  This is intended for
          use with local hosts and domains.

     multi
          Valid values are on and off  .  If  set  to  "on,"  the
          resolv+  library  will return all valid addresses for a
          host that appears in the /etc/hosts  file,  instead  of
          only  the  first.   This  is  off by default, as it may
          cause a substantial  performance  loss  at  sites  with
          large hosts files.

     nospoof
          Valid values are on and off  .  If  set  to  "on,"  the
          resolv+ library will attempt to prevent hostname spoof-
          ing to enhance the security  of  rlogin  and  rsh.   It
          works  as  follows:  after  performing  a  host address
          lookup, resolv+ will perform a hostname lookup for that
          address.   If the two hostnames do not match, the query
          will fail.

     alert
          If this option is set to "on" and the nospoof option is
          also  set,  resolv+ will log a warning of the error via
          the syslog facility.

[ ... ]

AUTHOR
     The original BIND resolver library comes from the University
     of California at Berkeley's Computer Science Research Group.
     The resolv+ modifications were made (in roughly  chronologi-
     cal  order)  by Bill Wisner, Patrick Gosling, Chris Metcalf,
     John DiMarco and J. Porter Clark.

---- 8< ---- cut here ---- 8< ---- cut here ---- 8< ---- cut here ---- 8< ----

Regards, STefan

-- 
 Stefan Esser, Zentrum fuer Paralleles Rechnen		Tel:	+49 221 4706021
 Universitaet zu Koeln, Weyertal 80, 50931 Koeln	FAX:	+49 221 4705160
 ==============================================================================
 http://www.zpr.uni-koeln.de/~se			  <se@ZPR.Uni-Koeln.DE>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511092032.AA11157>