On Tue, 2002-04-02 at 10:08, Claudio Lapidus wrote:
> Hi all,
> 
> I've recently changed this line from nsswitch.conf from:
>     hosts:      files nisplus nis dns
> to:
>     hosts:      files dns
> 
> according to the fact that I don't run NIS at all.

If you don't use NIS, then having it in the config file won't do
anything.  Removing it shouldn't change the behavior of your
applications at all.

> The man page for this 
> file says: "Within  each  process that uses nsswitch.conf, the entire file 
> is read only once; if the file is later changed, the process will continue 
> using the old configuration." This is exactly what the system seems to de 
> doing, and I cannot figure out how to get it to start using the new config:

For clarity: the only thing that will continue to use the old
resolv.conf settings are applications that are already running.  For
instance, xinetd would continue to use the old config for reverse
lookups on connections.  Any command that you start at a prompt will be
using the new config.  xinetd will start using the new config as soon as
you restart it.

> [root@mendoza /root]# host -v www.redhat.com
...
> It seems to me that it's still trying the old config, isn't it? I know that 
> a radical way to accomplish this is to reboot the system, but this isn't 
> applicable in this case.

I don't think "host" uses resolv.conf at all.  It's part of the bind
package (bind-utils rpm), and uses its own library for DNS operations. 
"host" will not ever try to use files or NIS, because it isn't using the
common libc resolver library.




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to