Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SCO DNS

0 views
Skip to first unread message

Tom Fuchs

unread,
Nov 10, 1999, 3:00:00 AM11/10/99
to
I have a SCO 5.0.0 Unix Server on an NT network. I am trying to configure
DNS on the SCO box. All addresses on my internal network have the same
subnetmask. I have one router that acts as the gateway between my internal
network and the internet. I would like to configure DNS on the SCO box to:
1) Resolve names on the local network via the /etc/hosts file.
2) Direct names that cannot be resolved out through my gateway.
Can someone tell me what I need to do? I have tried configuring DNS several
times and each time I have 1) either not been able to ping hosts on my local
network or 2) I have not been able to resolve names that are not on my local
network. I get 1 when I don't use resolv.conf, and I get 2) when I do use
it.


Brent Bolin

unread,
Nov 10, 1999, 3:00:00 AM11/10/99
to
There are a number of DNS utilities to make life easy. I like to use a perl
script named "h2n". It builds the whole deal including multiple name spaces if
you like. Also secoundary setups.

It works on a single configuration file. I call it h2n.conf.

Syntax of the file:

-s server_name (DNS server name)
-d domain_name (Domain name)
-n network (Network 1)
-n network (Network 2)
-n network (Network 3)
-y (Create serial number)
-M (Don't create MX record, there a better ways to deal
with this)

I would suggest NOT using the /etc/hosts file for DNS. It is not cached nor do
I think "nslookup" works with it.

Don't use it.

SCO has an option used in /etc/resolv.conf that allows search sequences i.e.
/etc/hosts bind nis. Similiar to Solaris nsswitch or BSD /etc/hosts.conf

The h2n perl scipt uses the /etc/hosts file for data by default.
Don't forget to setup /etc/resolv.conf

The h2n script creates all its data in the directory it was executed. I would
suggest A symbolic link of the named.boot file

ln -s /etc/named.d/named.boot /etc/named.boot

This h2n scripts works fine for OSR5.0.5 also(bind 8).

Search the net for the script. I won't post to the newsgroup but if you can't
find it I will forward it.

kewl one

unread,
Nov 10, 1999, 3:00:00 AM11/10/99
to
seems to me if you a)
put your local hosts in your host file, and b)
put your default gateway as the router or machine that gives you your
net access, and c)
have a dns server defined out on the net somewhere, then
you would get everything you wanted....am I wrong?

kewl

Mike Kenyon

unread,
Nov 11, 1999, 3:00:00 AM11/11/99
to
Tom Fuchs wrote:
> I would like to configure DNS on the SCO box to:
> 1) Resolve names on the local network via the /etc/hosts file.
> 2) Direct names that cannot be resolved out through my gateway.

1) Do the NT boxes need to be able use DNS to identify other machines on the
local network? If not then you can set their DNS settings up to point to your
ISP's DNS servers directly, although this may give you some rogue dial-ups.
What I've done here is to set up a DNS serveice but not bother to the put the
PC's in. The PC's seems to know each other's names via WINS/NetBIOS, and the
SCO box relies on /etc/hosts locally. All that is in the local DNS is the unix
box and the gateway, plus a couple of non-windows machines.

2) Easy!

I would have a search through deja.com and look for previous articles posted
on DNS on this newsgroup. One of them was a posting by me that includes my DNS
setup, which you could base yours on. One other thing, get a cope of nslint
which is a utility to check DNS configuration sanity. Very useful!

Good luck!
--
Mike Kenyon <mke...@promtek.com> Software Engineer for Promtek Ltd

Kevin Lentle

unread,
Nov 11, 1999, 3:00:00 AM11/11/99
to
Tom,

If the DNS works OK when you use the resolv.conf file, except for external
look-ups, then it sounds like you've left out the root.cache file... In the
named.boot file you need a line like

cache root.cache

and then in the named directory have a copy of the default root.cache file.
If you have a look on the SCO web-site there is a pretty good technical
artical, but I can't remember the TA number... Just search for nameserver.

Regards,

Kev.

Tom Fuchs <to...@edmo.com> wrote in message
news:80cdct$7og$1...@spk-news1.nwnexus.com...


> I have a SCO 5.0.0 Unix Server on an NT network. I am trying to configure
> DNS on the SCO box. All addresses on my internal network have the same
> subnetmask. I have one router that acts as the gateway between my
internal

> network and the internet. I would like to configure DNS on the SCO box


to:
> 1) Resolve names on the local network via the /etc/hosts file.
> 2) Direct names that cannot be resolved out through my gateway.

0 new messages