(partial)SUMMARY:Help! Can't get DNS entry

From: Systems Administrator (sysadmin@astrosun.tn.cornell.edu)
Date: Tue Jan 30 1996 - 11:51:47 CST


First, an appology!

In my mad rush to get a system up and running I made the mistake of
rushing to the Sun Managers list without first consulting the FAQ! I am
sorry.

I haven't resolved the problem yet but I am on my way to trying. I am
attempting to install the bind and resolv+ packages so that I can use
DNS without NIS.

I also did not include some important info in my last post. I am
running SunOS 4.1.3 on a Sparc10. I currently moved this machine from a
building that has NIS services to one that is connected only to a
gateway to the internet (granted there is a DNS server to connect to).

I disabled the NIS services mainly by removing the /etc/defaultdomain
file (which worked fine and is the subject of another summary soon to
come). I do not have nor want NIS running on this machine.

>From what I read (in the FAQ and from responses) SunOS 4x and below does
not support DNS without NIS thus I need to install the packages I
mentioned before (I guess this is only a workaround for SunOS 4x and
above). I will finalize the Summary after I have accomplished this
task.

SOLARIS allows DNS without NIS and that info is also contained in the
following replies.

Again, I appologize for wasting the bandwith withouth consulting the FAQ
and also thanks for still being there!

Special thanks to:
------------------------------------------------------------------------
From:
      maris@dogs.sun.swh.lv
   To:
      sysadmin@astrosun.tn.cornell.edu

check
/etc/nsswitch.conf
line
hosts: files dns [NOTFOUND=return]

&
/etc/hosts

Best Regards
maris@sun.swh.lv
96.01.30
------------------------------------------------------------------------
From:
      amy.hollander@amp.com (Amy Hollander)
   To:
      sysadmin@astrosun.tn.cornell.edu

/etc/resolv.conf format is

simba# cat resolv.conf
domain amp.com
nameserver 163.241.101.100
nameserver 163.241.201.100
nameserver 163.241.101.100

------------------------------------------------------------------------
Hello,
If you are running Solaris 2.x -
        Then there is a file /etc/nsswitch.conf which can be
        edited to make your system find hosts via DNS.

If you are running SUNOS 4.1.x -
        Then it is not so easy.
        The default system will not use DNS at all unless nis is active.
        There are ways to modify the system to use DNS without nis.
        I think it is all described in the sun-managers FAQ

------------------------------------------------------------------------
From:
      carlosm@eng.eccs.com (Carlos Morillo)
   To:
      sysadmin@astrosun.tn.cornell.edu

I think that the problem is that your system is set up in such a way
that it goes first to NIS
and then to DNS. There are some linraries involved in the name
resolution.

What you should do is to reconfigure your system so it won't go through
NIS
and instead it will go directly to DNS.

Look at the FAQ.

   o__ ---- Carlos A. Morillo
    ,>/_ ------ Software Engineer
     (_)`(_) ------- ECCS, Inc.
                        1 Sheila Drive . Building 6A
                        Tinton Falls, New Jersey 07724
                        908-747-6995 extension 295
                        Fax 908-747-6542
                        e-mail: carlosm@eccs.com

------------------------------------------------------------------------
From:
      mark@ccifl.com (Mark Sherman)
   To:
      sysadmin@astrosun.tn.cornell.edu

A silly question, but is DNS configured/installed ?
        if yes
                Look at /etc/nsswitch.conf, on the line that starts with
        <hosts:>, is the entry <dns> included on the this line ? Or is
        an entry similar to nis {notfound=return} on this line -- if yes
        then nis is tried and then the search is given up. If you are
not
        going to use nis try making the line
                        hosts: files dns

                                        mark sherman
                                        mark@ccifl.com
>
------------------------------------------------------------------------
From:
        "Jasti Babu" <jbabu@ford.com>
     To:
        Systems Administrator <sysadmin@astrosun.tn.cornell.edu>
References:
        1

modify your /etc/nsswitch.conf to go for DNS for hosts
Jasti Kalyan Babu

------------------------------------------------------------------------
From:
      Venkata Ramakrishna R <ramu@cxi.stph.net>
   To:
      sysadmin@astrosun.tn.cornell.edu

Hi,

 I also have a same problem. The problem is, the machine is consulting
 only hosts file and not DNS. To my knowledge this all depends up on
 the version of library file libc.sa.1.x

 I have libc.sa.1.9 and it does not support. I think libc.so.1.9.1
consluts
 DNS directly instead of consulting hosts/NIS first.

 Hope this helps and do not forget to post the summary.

-Ramu.
------------------------------------------------------------------------
From:
      Justin Young <justiny@cluster.engr.subr.edu>
   To:
      Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

Solaris or SunOS.

If Solaris modify your hosts entry in /etc/nsswitch.conf.

Justin Young Student/Systems Asst
2212 Heck Young Rd. Mechanical Engineering
Baker, LA 70714 Southern University
(504)-771-4070 justiny@engr.subr.edu

------------------------------------------------------------------------
From:
      Zhiyi Huang <zh@cc.bellcore.com>
   To:
      Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

If you are using SunOS4.x, you got to have NIS running before you can
use
DNS.

-Judy

HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
        Judy Z. Huang http://www-ec.njit.edu/~zxh2341
email:zh@cc.bellcore.com Tel:(908)699-3551 Beeper:(908)633-3181
Bellcore, 6 Corporate Place, Piscatway, NJ 08854-4199
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

------------------------------------------------------------------------
From:
      Bill Reed <reedwv@stp.xfi.bp.com>
   To:
      Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

-------------
 Assuming SunOs 4.1.x here, then the resolv routines are not built into
the libraries as shipped. Unless some bright spark has replaced the
libraries.
Therefore the DNS hostnames cannot be reolved except through YP ( NIS ).
This is documented in the Sun "System and Network Admininstration"
Manual.

Look at the comment in /var/yp/Makefile :-
....
# Set the following variable to "-b" to have NIS servers use the domain
name
# resolver for hosts not in the current domain.
#B=-b
....

--
B.P. Exploration       email: reedwv@stp.xfi.bp.com
Uxbridge One                  reedwv@txpcap.hou.xwh.bp.com
Harefield Road          tel: +44 1895 877429
Uxbridge UB8 1PD  U.K.  fax: +44 1895 877345

------------------------------------------------------------------------ From: rauthenberg@HHI.DE (Stefan Rauthenberg) To: sysadmin@astrosun.tn.cornell.edu

don't know what release you are running but if it's Solaris 2.X , you have probably forgotten to change /etc/nsswitch.conf [hosts: files dns].

If you have SunOS 4.1.X, it's much more complicated as it requires a patch of libc.so.*. The FAQS may give you an idea what you are up to.

Stefan

________________________________________________________________________ Stefan Rauthenberg Heinrich-Hertz-Institut fuer Nachrichtentechnik Berlin GmbH Phone: +49 30 31002-615 Einsteinufer 37 Fax: +49 30 3927200 D-10587 Berlin - Germany Email: rauthenberg@HHI.DE ________________________________________________________________________

------------------------------------------------------------------------ From: Chris Eastman <chris@cwi.net> To: Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

If you are using a sun 4.x box, then you have to install a third party resolver (like resolv+), because the stock 4.1.x resolver is broken.

--chris

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Christopher Eastman %% Cable & Wireless, Inc %% %% MDS Network Engineer %% 1919 Gallows Road %% %% chris@cwi.net %% Vienna, VA 22182 %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

------------------------------------------------------------------------ From: sedat_doganalp@mail.armada.com.tr To: Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

Hello Sun SysAdmin, Standard Sun Kernel couldn't resolve DNS without NIS. But I heard about somebody did. But I Can't remember.

-------------------------------------------------------------- Sedat Doganalp /\ |> /\/\ /\ |\ /\ Pre-Sales Support Engineer /--\ |\ / \ /--\ |/ /--\ sedat_doganalp@mail.armada.com.tr Bilgisayar Sistemleri Tel:90-212-280 3930 Sanayi ve Tic. Ltd. Sti. Fax:90-212-232 2355 --------------------------------------------------------------- ------------------------------------------------------------------------ From: Jeff Fisher <jeff@kcrg.com> To: Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

>From what I understand of it, SUN's use hosts, NIS, and rely on NIS to resolve the hostname. If NIS is off, it won't resolv the hostname. There is a package called resolv+ (taken from part of the named package) that will let you configure how to look names up correctly, including bypassing nis entirely. It is at ftp:ftp.ece.uc.edu/pub/sun-faq/SOURCE, I believe.

Hope this helps.....

------ Jeff Fisher Gazette MIS jeff@kcrg.com Cedar Rapids, IA, US

------------------------------------------------------------------------ From: Claus Assmann <ca@informatik.uni-kiel.de> To: sysadmin@astrosun.tn.cornell.edu

> Any ideas?

Yes. This is the most frequently asked question... >From the FAQ:

[FAQ info Deleted] ------------------------------------------------------------------------ From: Daniel.Blander@ACSacs.com To: sysadmin@astrosun.tn.cornell.edu

If this is under 4.1.x, did you uncomment out the -b option in your Makefile under /var/yp? This is necessary for NIS to use (failover as it were) to DNS. Read the file and uncomment the -b option, redo your make in /var/yp, and it should work. "nslookup" relies purely upon named and DNS so NIS is not involved (why it works), however ping uses /etc/hosts and NIS.

If this is 2.x, check that the /etc/nsswitch.conf file has the entry for hosts as such:

hosts: nis dns [NOTFOUND=return] files

Again, the rollover from NIS to DNS to files needs to be specified.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Daniel Blander =8^) Sr. Systems Engineer Applied Computer Solutions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Phone: (714) 842.7800 Fax: (714) 842.8299 Email: Daniel.Blander@acsacs.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Official Applied Computer Solutions Home Page and Tech Tip of the Week: http://www.acsacs.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------ From: "Scott L. Sherrill" <slsherri@mtu.edu> To: Systems Administrator <sysadmin@astrosun.tn.cornell.edu>

My guess would be that you are running Solaris 2.X, and that you didn't update your /etc/nsswitch.conf file. You need to specify in there to use dns too.

So take a look at your hosts line it should look something like this (after you make modifications).

hosts: dns files

Good luck.

__^__ __^__ ( ___ )-----------------------------------------------------------( ___ ) | / | Scott L. Sherrill | \ | | / | System Administrator Walker Building | \ | | / | Michigan Technological University, Houghton, MI 49931 | \ | | / | Phone: (906)487-3434 Fax: (906)487-3559 | \ | |___| |___| (_____)------------------Email:slsherri@mtu.edu-------------------(_____)

------------------------------------------------------------------------ From: dflax@mvision.com (Daniel M Flax) Reply-To: dflax@mvision.com To: sysadmin@astrosun.tn.cornell.edu

check your /etc/nsswitch.conf file, and look for the dns/nis/nisplus entries.

good luck.

/df

Daniel Marc Flax Market Vision 208 South LaSalle Street, Suite 660 Chicago, IL 60604 312-782-8300, Ext 122 312-782-8303 FAX dflax@mvision.com

------------------------------------------------------------------------ and anyone else who responds before seeing this.

Vic

-- *************************************************************** Systems Administrator --------------------- Space Sciences Building CRSR Mail all system related problems to one of the following: sysadmin@astrosun.tn.cornell.edu root@astrosun.tn.cornell.edu sysadmin@spacenet.tn.cornell.edu root@spacenet.tn.cornell.edu or see Vic Germani in room 402 germani@astrosun.tn.cornell.edu ***************************************************************



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:52 CDT