[Sunhelp] dns problem

Jarrett m Carver AFcarjm at dia.osis.gov
Mon May 24 12:34:07 CDT 1999


Not sure if this one was replied to yet....

    you need to edit the /etc/nsswitch.conf file.  If there is a line that
says:

hosts:      nisplus dns [NOTFOUND=return] files

change it to read:

hosts:     dns [NOTFOUND=return] files

This will cause the workstation to search DNS first for a hostname and then
search it's local /etc/hosts file.

Tan Jian wrote:

> Hi, Ken:
>
> Thanks for your reply. and I think your assumption is near the
> the solution. but excuse my poor sun acknowledge. I need your
> further solution for the problem.
>
> regards
> kevin
>
> Hall, Ken (ECCS) wrote:
> >
> > I had a similar problem and it turned out to be that nsswitch.conf was set
> > up to look for nisplus before DNS, so it had to wait for a response from a
> > nonexistent nis+ server before looking to DNS.
> >
> > > -----Original Message-----
> > > From: Tan Jian [SMTP:kevin at gb.com.cn]
> > > Sent: Thursday, May 20, 1999 8:17 PM
> > > To:   sunhelp at sunhelp.org
> > > Subject:      [Sunhelp] dns problem
> > >
> > > hi,all:
> > >
> > > Recently, my Sun workstation works unproperly.
> > >
> > > it always takes a long time to obtain the destination IP
> > >
> > > from the domain name by my WS. for example:
> > >
> > > when I ping www.yahoo.com, after a long period, the system
> > >
> > > get response "xxx is alive",  but when I ping IP address directly
> > >
> > > I can get the result in no time.
> > >
> > > I am sure our dns server is no problem,
> > >
> > > cause other Workstation in the same segment has no such problem.
> > >
> > > I think it is a software problem.
> > >
> > > Can you all give me some directions?
> > >
> > > any quick reply will be appreciated.
> > >
> > >
> > > regards
> > > kevin
> > >
> > >
> > > _______________________________________________
> > > SunHELP maillist  -  SunHELP at sunhelp.org
> > > http://www.sunhelp.org/mailman/listinfo/sunhelp
> >
> > _______________________________________________
> > SunHELP maillist  -  SunHELP at sunhelp.org
> > http://www.sunhelp.org/mailman/listinfo/sunhelp
>
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Jarrett Carver                            DIA OSIS System Administrator
Re:AFcarjm at dia.osis.gov                   CC:admin at dia.osis.gov

"The opinions expressed herein are not necessarily those of my employer,
 not necessarily mine, and probably not necessary."

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-








More information about the SunHELP mailing list