DNS lookup on SunOS?
#1
DNS lookup on SunOS?
So I've got a Sparcstation 2 running SunOS 4.1.4 (the "Solaris 1.1.2" release.) It's all in good working order, except for the networking. Which actually mostly works - it can talk to the router and other devices on the local network, so I can FTP stuff over from another computer, which is useful. However, just for the sake of it, I'd like to get it on the Internet and horrify the pearl-clutching security bluehairs, but it can't do DNS lookups. (It also can't ping outside IPs at the moment, but I'm prone to suspect that's more an issue of Comcast's garbage router being anal about something.) I was just reading on the Nekochan forums that this is an issue with Sun forcing lookups to use YP/NIS and that the solution is to set up a YP server on the machine and point ypbind to it, but, um, Nekochan has vanished for the moment. I did try appending ypserv -d and ypbind to /etc/rc.local, but this caused the machine to stare off into space waiting for a sign from God or something upon login, so I must have missed a step or something. The man pages for ypserv and ypbind cover most of the options, but don't actually explain the full process of getting this set up. Anybody know what the proper method for setting this up is?

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
PDP-X

Posts: 124
Threads: 6
Joined: May 2018
Find Reply
05-22-2018, 07:48 PM
#2
Re: DNS lookup on SunOS?
Been a long time since I messed with SUN, but do you not still have a resolve.conf of some description?

Hey Ho Pip And Dandy!!!!!

Onyx2 :O2K_d-1: Origin 200 :tezro: Octane2 O2 Indigo Indy :320:
uunix
Octane

Posts: 211
Threads: 27
Joined: Dec 2017
Find Reply
05-22-2018, 07:57 PM
#3
Re: DNS lookup on SunOS?
I did create it with the following contents:
Code:
nameserver 75.75.75.75
nameserver 8.8.8.8
Which, if I'm understanding the man page correctly, is how it should be, no?

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
PDP-X

Posts: 124
Threads: 6
Joined: May 2018
Find Reply
05-22-2018, 07:59 PM
#4
Re: DNS lookup on SunOS?
commodorejohn post_id=258 time=1527019170 user_id=106 Wrote:I did create it with the following contents:
Code:
nameserver 75.75.75.75
nameserver 8.8.8.8
Which, if I'm understanding the man page correctly, is how it should be, no?

What about setting it to the router?

Hey Ho Pip And Dandy!!!!!

Onyx2 :O2K_d-1: Origin 200 :tezro: Octane2 O2 Indigo Indy :320:
uunix
Octane

Posts: 211
Threads: 27
Joined: Dec 2017
Find Reply
05-22-2018, 08:05 PM
#5
Re: DNS lookup on SunOS?
Is that how you're supposed to do it? I thought it was supposed to point to name servers directly - 75.75.75.75 is one of the DNS servers the router provides, and 8.8.8.8 is of course Google's DNS service.

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
PDP-X

Posts: 124
Threads: 6
Joined: May 2018
Find Reply
05-22-2018, 08:10 PM
#6
Re: DNS lookup on SunOS?
commodorejohn post_id=260 time=1527019835 user_id=106 Wrote:Is that how you're supposed to do it? I thought it was supposed to point to name servers directly - 75.75.75.75 is one of the DNS servers the router provides, and 8.8.8.8 is of course Google's DNS service.

I run a bit of a different system here, but none of my machines point to any DNS outside the network. They all point to a windows server running DNS which then point to the 8.8.8.8 & 8.8.4.4 as forwarders. So saying that, and just in case there is some firewall type issue.. or as you say the router is pants, then I would forward to the router from internal machines.

Hey Ho Pip And Dandy!!!!!

Onyx2 :O2K_d-1: Origin 200 :tezro: Octane2 O2 Indigo Indy :320:
uunix
Octane

Posts: 211
Threads: 27
Joined: Dec 2017
Find Reply
05-22-2018, 08:15 PM
#7
Re: DNS lookup on SunOS?
I probably started the thread on Nekochan about DNS on SunOS back when I was struggling with the same thing. I vaguely recall some of the advice. Unfortunately, I don't have a working SunOS machine at the moment so all I can do is look at my backups of it (on another machine) and try to recall the advice I was given on Nekochan.

First off, forget resolv.conf. SunOS won't use it. That didn't come along until Solaris 2.x. You can delete the file if you've created one.

Secondly, I seem to recall that running 'ypserv -d' to forward NIS lookups to DNS only forwards to the DNS server on the local SunOS machine. So you'll have to run in.named on the SunOS box in addition to ypserv. You can read the manpage for in.named to learn more, but on my machine /etc/rc.local checks for both /usr/etc/in.named (the daemon) and /etc/named.boot (the config file) and starts the DNS server if both exist. (And I'm fairly sure that's how rc.local was "out of the box" on SunOS.) My /etc/named.boot has two lines:
Code:
primary        <my domain name>    /etc/named.db
cache        .            /etc/named.root

Then in /etc/named.db I have the zone file for my domain, just like I do on my in-house DNS server. In /etc/named.root, I have the list of root servers for the Internet.

I think that one could probably get away with just the "cache" line and then in /etc/named.root point it to your own (or Google's, or whatever) DNS server. But I'm not 100% sure of that. I'm also not sure whether I had to create /etc/named.root or if it came with SunOS.

SGI:  Indigo, Indigo2, Octane, Origin 300
Sun:  SPARCstation 20, Ultra 2, Blade 2500, T5240
HP:  9000/380, 425e, C8000
Digital: DECstation 5000/125
jpstewart
Octane

Posts: 54
Threads: 0
Joined: May 2018
Find Reply
05-23-2018, 05:49 PM
#8
Re: DNS lookup on SunOS?
Gotcha. I'll have a poke around with that.

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
PDP-X

Posts: 124
Threads: 6
Joined: May 2018
Find Reply
05-23-2018, 06:12 PM
#9
Re: DNS lookup on SunOS?
Okay, it took some experimentation and checking of man pages, but I did get it to the point where named is running and ypserv should be looking to it. (For the record, from the stock SunOS 4.1.4 version of /etc/rc.local, I only had to modify the ypserv invocation and make sure that /var/yp/(domain name) was a directory that existed.) /etc/named.boot contains the following:
Code:
secondary       .       75.75.75.75 8.8.8.8 /etc/named.cache
cache           .       /etc/named.cache
The error that I'm getting now is "zoneref: Masters for secondary zone unreachable." This occurs twice, I assume once for each nameserver I specified in the secondary entry. Which brings me back to the part where it can't ping outside IPs - it spits back with "sendto: Network is unreachable." This despite being perfectly happy to talk to the router and other machines on the local network. I double-checked the configuration page on the router and there don't appear to be any security rules in place that should be blocking it - furthermore, other devices of similar vintage are able to use the Ethernet ports without issue. So I'm assuming this is probably something to do with routing in SunOS itself, which means I need to probably need to poke around with in.routed or something, joy of joys...

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
PDP-X

Posts: 124
Threads: 6
Joined: May 2018
Find Reply
05-24-2018, 01:18 AM
#10
Re: DNS lookup on SunOS?
Hmm...I think the "secondary" line will cause it to try to do zone transfers from the specified servers -- which will obviously fail. I think what you want is just:
Code:
forwarders    75.75.75.75 8.8.8.8
Try that instead of your "secondary" line. (Note the slightly different syntax without the domain name or a even a dot on the line. Just the "forwarders" keyword and destination IPs.)

Edit: Forgot to mention that you don't need to worry about in.routed. That's for exchanging (dynamic) routing information between hosts. To configure a static route to the outside world, just put your router's local IP address in /etc/defaultrouter.

SGI:  Indigo, Indigo2, Octane, Origin 300
Sun:  SPARCstation 20, Ultra 2, Blade 2500, T5240
HP:  9000/380, 425e, C8000
Digital: DECstation 5000/125
jpstewart
Octane

Posts: 54
Threads: 0
Joined: May 2018
Find Reply
05-24-2018, 02:52 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)