From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ccef4a701ed25586,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-12-09 13:02:04 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!udel!news.mathworks.com!usenet.eel.ufl.edu!usenet.cis.ufl.edu!caen!news.tc.cornell.edu!newsserver.sdsc.edu!nic-nac.CSU.net!charnel.ecst.csuchico.edu!xmission!maddog From: maddog@news.xmission.com (Christian Worley) Newsgroups: comp.unix.osf.osf1 Subject: DNS resolving without NIS or named Date: 9 Dec 1994 20:46:12 GMT Organization: XMission Public Access Internet (801 539 0900) Message-ID: <3cafmk$a4p@xmission.xmission.com> Reply-To: maddog@altatech.com NNTP-Posting-Host: altatech.com Summary: Need name resolution when not running DNS nor named X-Newsreader: TIN [version 1.2 PL2] I'm having a very hard time configuring an Alpha running OSF/1 v2 to use only DNS for a name server. I've been living w/ this problem for months, and can't figure it out. I'm at my wits end. It really feels like pilot error, but I haven't found out what I'm doing wrong. Any help would be appreciated. Inet Gateway -------- ----------- | DNS |~~~modem~~~~| Sol 2.3 |___ -------- ----------- | Local net | -------- |--| PC's | | -------- | ----------- |--| Sol 1.x | | ----------- | ----------- |--| OSF/1v2 | | ----------- . . . I have a remote domain name server that sits on the other side of a modem from my sparc running Sol 2.3 acting as a gateway. The 2.3 machine uses the nsswitch file to say "consult DNS first". That works fine. PC's on my local side of the network have no trouble using this gateway to consult the remote name server (that's on the other side of the modem from the machine running 2.3). They work fine too. My Sol 1.x Sparc had a problem resolving names, but I found out about resolv+, and that solved the problem there (it also has a mechanism to say: "consult hosts, then DNS"). The problem is my Alpha's running OSF/1 v2 on my local side. The routing information is fine. I can do any remote accesses across the net and thru the gateway from these OSF/1 machines, as long as I use IP addresses and not names. The Sys Admin manual says that all I need to do is setup /etc/resolv.conf. So I set it up as: domain altatech.com nameserver 198.60.22.2 where my domain is altatech.com, and the name server is 198.60.22.2. When I do this, nslookup works on the OSF/1 machines, but ping, rlogin, telnet, ... all consult /etc/hosts then immediately give up w/o consulting the remote host. Prior to getting resolv+, my Sol 1.x machine acted the same way (nslookup worked, but nothing else). I did configure and start BIND on one of the OSF/1 machines, setting the authoratative DNS server to the remote machine, and that OSF1 machine started resolving names just fine. But... I can't use a local named server since this frequently needs to talk to an authoratative host, which is across the modem, which might be hung up, which (using Sol 2.3's PPP) causes it to dial up, causing more charges, only to reload the named database that hasn't changed anyway. So I can't use a local named server or NIS; I've got to use DNS and /etc/hosts. Resolv+ was initally developed using ultrix as a model. I tried building it for OSF/1, there were a few, easily fixed, compiler bugs. But, making the shared objects was futile. I didn't find any documentation for making shared objects that lead me to a way to de-archive libc.so, replace the necessary functions, and rebuild it. Anybody know how to do this? It should all be so simple...what am I doing wrong? Thanks in advance, Chris -- When I die, please throw my ashes upon Bill Gates --for once, let him clean up after me!