Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DNS lookup on SunOS?
#11
Re: DNS lookup on SunOS?
Well, it's definitely getting closer, one step at a time. Setting up /etc/defaultrouter did indeed resolve the issue with pinging to outside IP addresses, and setting up forwarders looks to have nslookup trying to do the sane thing, but it still isn't quite succeeding. Here's what happens now:
Code:
# nslookup google.com
*** Can't find server name for address 75.75.75.75: Not implemented
*** Can't find server name for address 8.8.8.8: Timed out
*** Can't find initialize address for server : Server failed
Server:  localhost
Bus error (core dumped)
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/SH-09/MT-32/D-50, Yamaha DX7-II/V50/TX7/TG33/FB-01, Korg MS-20 Mini/ARP Odyssey/DW-8000/X5DR, Ensoniq SQ-80, E-mu Proteus/2, Nord Lead 2, Behringer Model D
commodorejohn Offline
Octane

Posts: 104
Threads: 6
Joined: May 2018
Find Reply
05-24-2018, 11:51 PM
#12
Re: DNS lookup on SunOS?
You can get DNS lookups working on SunOS without needing NIS:
Its hard to find these days: Sun SRDB #3886 explains how to modify your libc to remove any NIS dependencies.

Here is a copy of SRDB #3886
I havent tried this in ages.. will give it a go in a day or so to see.

>SRDB ID: 3886
>
>SYNOPSIS: Using DNS without NIS
>
>DETAIL DESCRIPTION:
>
>Want to use DNS, but not NIS
>
>SOLUTION SUMMARY:
>
>MAKING A LIBC.SO for DNS without NIS
>
> This is a procedure that can be used to add name resolver
> routines into shared libc library in SunOS_4.1.
>
> First load "SHLIB CUSTOM" either from SunInstall or from
> add_services.
>
> Besure to have the file /etc/resolv.conf configured
> properly. Test this with /usr/etc/nslookup.
>
>1. Become super user:
>
> % su (if necessary)
>
>2. Make a temporary directory:
>
> % cd /usr/lib/shlib.etc
> % mkdir tmp
>
>3. Change to the "tmp" directory just made, extract the pic .o from
> libc_pic.a and rm the file __.SYMDEF. The reason you need to do
> the 2 "mv" commands is because "ar" truncated filenames over
> 16 characters.
>
> % cd tmp
> % ar x ../libc_pic.a
> % rm __.SYMDEF
> % mv rpc_dtablesize. rpc_dtablesize.o
> % mv rpc_commondata. rpc_commondata.o
> % ar x /usr/lib/libresolv.a
>
> The libresolv.a (apparently) contains object modules position independant,
> so they can be added to the libc_pic modules without fear.
>
>4. Remove the old routine to do the hostname/addr resolution:
>
> % rm gethostent.o
>
>5. Remove the libresolv module that contains `strncasecmp' (which is now
> in the main C library, so it is redundant):
>
> % rm strcasecmp.o
>
>6. % cd ..
>
>7. Copy lorder-sparc to lorder-sparc.orig. Edit the file lorder-sparc and
> remove the reference to `gethostent.o' and add the references to the
> resolver library routines by applying this patch:
>
> remove : gethostent.o
>
> add : gethostnamadr.o
> sethostent.o
> res_query.o
> res_mkquery.o
> res_send.o
> res_debug.o
> res_comp.o
> res_init.o
>
>
> % diff -rc2 lorder-sparc.orig lorder-sparc
> *** lorder-sparc.orig Thu Feb 8 05:27:46 1990
> --- lorder-sparc Mon Apr 9 12:58:59 1990
> ***************
> *** 150,154 ****
> getwd.o
> getnetgrent.o
> ! gethostent.o
> ypxdr.o
> ttyname.o
> --- 150,161 ----
> getwd.o
> getnetgrent.o
> ! gethostnamadr.o
> ! sethostent.o
> ! res_query.o
> ! res_mkquery.o
> ! res_send.o
> ! res_debug.o
> ! res_comp.o
> ! res_init.o
> ypxdr.o
> ttyname.o
>
>
>8. % make libc.so
>
>9. Now some libc.so.x.y.z built in the current directory. It is recommended
> that you test out this library at this point before installing it. Can do
> so by setting the environment LD_LIBRARY_PATH to the current directory, for
> example:
>
> % setenv LD_LIBRARY_PATH `pwd`
> % your_favorite_test_cmd (ie. ping, ftp, telnet)
>
> Once satisfied that the new library worked, proceed to install it with the
> following commands:
>
> % cp libc.so.x.y.z /usr/lib
> % ldconfig
> % unsetenv LD_LIBRARY_PATH
>
>10. Now running with the new library. Verify this by doing a trace command
> of let's say "date".
>
> % trace date
>
> The output should inform you that the new library is being used.
>
>
>
>BUG REPORT ID: n/a
>PATCH ID: n/a
>PRODUCT AREA: n/a
>PRODUCT: DNS
>SUNOS RELEASE: SunOS 4.1
>UNBUNDLED RELEASE: n/a
>HARDWARE: n/a
necron2600 Offline
O2

Posts: 21
Threads: 1
Joined: May 2018
Find Reply
05-25-2018, 02:07 AM
#13
Re: DNS lookup on SunOS?
Yeah, I did read about that, but I'd rather not go screwing around with the system software if at all possible. Anyway, the error I'm getting now doesn't look offhand like NIS is getting in the way, so I think setting it up to serve to itself and refer requests to DNS worked.
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/SH-09/MT-32/D-50, Yamaha DX7-II/V50/TX7/TG33/FB-01, Korg MS-20 Mini/ARP Odyssey/DW-8000/X5DR, Ensoniq SQ-80, E-mu Proteus/2, Nord Lead 2, Behringer Model D
commodorejohn Offline
Octane

Posts: 104
Threads: 6
Joined: May 2018
Find Reply
05-25-2018, 02:51 AM


Forum Jump:


Users browsing this thread: 3 Guest(s)