linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Paillard <spaillard-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
To: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] host.conf(5): order option deprecated, replaced by nsswitch.conf(5)
Date: Wed, 2 Jan 2013 22:43:13 +0100	[thread overview]
Message-ID: <20130102214313.GB32025@glenfiddich.mraw.org> (raw)
In-Reply-To: <1355073222-13020-1-git-send-email-spaillard-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>

Hi,

Do you think this patch can be applied ?

The "order" keyword in /etc/host.conf is not supported anymore for quite
some time.

I cannot find which glibc versions uses order line in host.conf before
nsswitch.conf is used.

Together with the fact this change happened ~7 years ago, here is a patch
*removing* the 'order line', and adding nsswitch.conf(5) in references.

On Sun, Dec 09, 2012 at 06:13:42PM +0100, Simon Paillard wrote:
> http://www.sourceware.org/bugzilla/show_bug.cgi?id=2389
> http://repo.or.cz/w/glibc.git/commit/b9c65d0902e5890c4f025b574725154032f8120a
> 
> Reported at http://bugs.debian.org/270368 http://bugs.debian.org/396633
> ---
>  man3/resolver.3    |    2 +-
>  man5/host.conf.5   |   14 ++------------
>  man5/resolv.conf.5 |    4 +++-
>  3 files changed, 6 insertions(+), 14 deletions(-)
> 
> diff --git a/man3/resolver.3 b/man3/resolver.3
> index 991b263..2cd4ec7 100644
> --- a/man3/resolver.3
> +++ b/man3/resolver.3
> @@ -87,7 +87,7 @@ domain name servers.
>  The
>  .BR res_init ()
>  function reads the configuration files (see
> -resolv.conf(5)) to get the default domain name, search order and name
> +resolv.conf(5)) to get the default domain name and name
>  server address(es).
>  If no server is given, the local host is tried.
>  If no domain is given, that associated with the local host is used.
> diff --git a/man5/host.conf.5 b/man5/host.conf.5
> index 189e2e9..ed1403d 100644
> --- a/man5/host.conf.5
> +++ b/man5/host.conf.5
> @@ -33,15 +33,9 @@ contains configuration information specific to the resolver library.
>  It should contain one configuration keyword per line, followed by
>  appropriate configuration information.
>  The keywords recognized are
> -.IR order ", " trim ", " multi ", " nospoof ", " spoof ", and " reorder .
> +.IR trim ", " multi ", " nospoof ", " spoof ", and " reorder .
>  These keywords are described below.
>  .TP
> -.I order
> -This keyword specifies how host lookups are to be performed.
> -It should be followed by one or more lookup methods, separated by commas.
> -Valid methods are
> -.IR bind ", " hosts ", and " nis .
> -.TP
>  .I trim
>  This keyword may be listed more than once.
>  Each time it should be
> @@ -141,11 +135,6 @@ override the behavior which is configured in
>  If set this variable points to a file that should be read instead of
>  .IR /etc/host.conf .
>  .TP
> -.B RESOLV_SERV_ORDER
> -Overrides the
> -.I order
> -command.
> -.TP
>  .B RESOLV_SPOOF_CHECK
>  Overrides the
>  .IR nospoof ", " spoofalert " and " spoof
> @@ -200,4 +189,5 @@ Line comments can appear anywhere and not only at the beginning of a line.
>  .BR gethostbyname (3),
>  .BR hostname (7),
>  .BR named (8),
> +.BR nsswitch.conf (5),
>  .BR resolv+ (8)
> diff --git a/man5/resolv.conf.5 b/man5/resolv.conf.5
> index 9a3ca54..282f748 100644
> --- a/man5/resolv.conf.5
> +++ b/man5/resolv.conf.5
> @@ -134,6 +134,7 @@ sets
>  .BR RES_DEBUG
>  in
>  .IR _res.options .
> +This option needs glibc to be build with debugging enabled.
>  .TP
>  .BI ndots: n
>  .\" Since glibc 2.2
> @@ -275,6 +276,7 @@ in the first column are treated as comments.
>  .BR gethostbyname (3),
>  .BR resolver (3),
>  .BR hostname (7),
> -.BR named (8)
> +.BR named (8),
> +.BR nsswitch.conf (5)
>  .br
>  Name Server Operations Guide for BIND
> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-man" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Simon Paillard
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2013-01-02 21:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-09 17:13 [PATCH] host.conf(5): order option deprecated, replaced by nsswitch.conf(5) Simon Paillard
     [not found] ` <1355073222-13020-1-git-send-email-spaillard-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
2013-01-02 21:43   ` Simon Paillard [this message]
     [not found]     ` <20130102214313.GB32025-8MNqHwMchPhGJ/Ie3qa20WD2FQJk+8+b@public.gmane.org>
2013-08-05 21:06       ` Simon Paillard
2013-08-09  8:40   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkixQ7=9EQdbM_1EQJsDq=3gWV6eYwuk0DDc3UUL8YmtYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-05-12  7:38       ` Michael Kerrisk (man-pages)
2014-05-29 10:41       ` RES_DEBUG needs DEBUG (was: [PATCH] host.conf(5): order option deprecated) Simon Paillard
2014-05-17 15:15   ` [PATCH] host.conf(5): order option deprecated, replaced by nsswitch.conf(5) Michael Kerrisk (man-pages)
     [not found]     ` <53777D0A.3010601-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-05-27  5:53       ` Michael Kerrisk (man-pages)
2015-02-10 12:39       ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130102214313.GB32025@glenfiddich.mraw.org \
    --to=spaillard-8fiuurrzop0dnm+yrofe0a@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).