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

DNS Config

0 views
Skip to first unread message

Nash Computer Technology

unread,
Oct 25, 1999, 3:00:00 AM10/25/99
to
Hello

Following on from previous posts, I'm trying to configure a primary - slave
DNS. I've discovered that the SCO documentation doesn't cover OpenServer
5.0.5 which uses /etc/named.conf. However, even after looking through the
new sample files in /etc/named.d, I haven't a clue what to do. Is there
somewhere that describes what to do? I want my server to provide local DNS
services, then to use my ISP's DNS for external Names.

Thanks again

David Nash


John Dankha

unread,
Oct 25, 1999, 3:00:00 AM10/25/99
to

You can follow the instruction in many books out there, two come to mind:
DNS and BIND, TCP/IP both by O'Reilly (excellent books)

Then you can run the shell script provided with SCO 5.0.5 in the
/etc/named.d directory, it will generate the named.conf file for you

Hope this helps

----------------------------------------------------------------
John Dankha mailto:j...@hdtech.com
H&D Technologies http://www.hdtech.com
(562)431-0098 (562)431-9958 (Fax)

Mike Kenyon

unread,
Oct 26, 1999, 3:00:00 AM10/26/99
to
Nash Computer Technology wrote:
> I want my server to provide local DNS
> services, then to use my ISP's DNS for external Names.

Such a simple thing to want, yet such a pain to set up...

I will post my DNS files, and which you can then bastardise them as you see
fit. You might also want to get a copy of nslint, which is a DNS file checker,
and is quite handy for picking up typos!

; /etc/resolv.conf
hostresorder local bind
domain yourdomain.com
nameserver 127.0.0.1

;
; /etc/named.boot
;
directory /etc/named.d
cache . root.cache
primary yourdomain.com named.hosts
; replace the following with whatever local IP network address you're using
primary 1.168.192.in-addr.arpa named.rev
primary 0.0.127.in-addr.arpa named.local
; replace the following with each and very DNS server your ISP has
forwarders 0.0.0.0 0.0.0.0

Don't do anything with the root.cache file. That's happy.

; /etc/named.d/named.soa
@ IN SOA yourdomain.com. root.yourdomain.com. (
19991005; Serial
10800 ; Refresh
1800 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS dns-server.yourdomain.com.

Obviously replace root.yourdomain.com with the mail address of whoever is
maintaining the DNS (I think, but don't quote me), and dns-server with
whatever the DNS is. This may be a "real" machine name, or an alias which is
what I have done. Nslint does whinge about too many aliases. You'll need to
change serial everytime you make a change to any of the files in /etc/named.d.

; /etc/named.d/named.local

$INCLUDE named.soa
1 IN PTR localhost.

; /etc/named.d/named.hosts

$INCLUDE named.soa

localhost. IN A 127.0.0.1
yourserver IN A 192.168.1.3
alias IN CNAME yourserver
yourserver IN MX 0 mailrelay
yourdoamin.com. IN MX 0 mailrelay

Obviously mailrelay should be a machine!

; /etc/named.d/named.rev

$INCLUDE named.soa

3 IN PTR yourserver.yourdomain.com.

Add other machines into named.hosts and named.rev as you see fit! Enjoy!
--
Mike Kenyon <mke...@promtek.com> Software Engineer for Promtek Ltd

0 new messages