APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > h2n for DNS ––>Re: DNS
Printer Friendly Version




News Group Posts

h2n for DNS



From: Brent Bolin <brent@dspi.com>
Newsgroups: comp.unix.sco.misc
Subject: Re: SCO DNS
Date: Wed, 10 Nov 1999 14:14:46 -0600
Message-ID: <3829D236.210E2739@dspi.com> 
References: <80cdct$7og$1@spk-news1.nwnexus.com> 

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.

Tom Fuchs wrote:

> 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.


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

4 comments



Click here to add your comments





Tue May 10 00:11:11 2005:   dwm


It would be really helpful if the download site for the variant of h2n you reference were documented. I have found many different programs sharing the same name. This is the only description I've found which implies that multiple domains can be generated from the same /etc/hosts file. Since that is the core of what I need ....



Tue May 10 09:48:22 2005:   TonyLawrence

gravatar
A google for "h2n perl" turns it up in numerous places.





Wed May 11 16:25:45 2005:   dwm


The problem is that different variants turn up in many places. There is also documentation which seems to have features which don't match the h2n variations I've located.

In any case, I've written the code to do exactly what I need so I don't care except to point out the importance of complete documents if they are to be helpful.



Wed May 11 18:45:57 2005:   TonyLawrence

gravatar
... there are different versions, so you choose what you want..

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

g_face.jpg

This post tagged:

       - DNS
       - Networking




Unix/Linux Consultants

Skills Tests

Guest Post Here