RE: [expert] Mandrake 7.2 and DNS Server

2001-01-23 Thread Stephen Carville

On Tue, 23 Jan 2001, Martin, Debi (REO) wrote:

- Thanks for the reply. 
- 
- I've checked out the files and as far as I can see its fine. But, saying
- that, I could 
- be missing something obvious. If your offer of posting some working files
- still stands,
- I would really appreciate it. I can at least do a compare to see if
- something is amiss..
- 
- My goal for the DNS server is to allow the other hosts on the same lan to be
- able 
- to get to other hosts by the 'friendly' name. It makes life alot easier than
- maintaining
- individual host files on each machine. 

Here are some basic config files.

# named.conf
options {
directory "/var/named";
};

zone "." {
type hint;
file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};

# private network resolution
zone "private.prv" {
type master;
file "private.prv.db";

zone "1.168.192.in-addr.arpa" {
type master;
file "192.168.1.db";
};

# named.local
@   IN  SOA localhost. root.localhost.  (
  1997022700 ; Serial
  28800  ; Refresh
  14400  ; Retry
  360; Expire
  86400 ); Minimum
IN  NS  localhost.

1   IN  PTR localhost.

# private.prv.db
@   IN  SOA warlock. dnsadmin.private.prv  (
  1 ;Serial
  28800 ; Refresh
  14400 ; Retry
  360   ; Expire
  86400 )   ; Min

IN  NS  warlock.private.prv.
IN  MX  10 mail.private.prv

warlock IN  A   192.168.1.10
mailIN  A   192.168.1.10
princessIN  A   192.168.1.12

# 1.168.192.db
@   IN  SOA warlock. dnsadmin.private.prv  (
  1 ;Serial
  28800 ; Refresh
  14400 ; Retry
  360   ; Expire
  86400 )   ; Min
IN  NS  warlock.private.prv.

10  IN  PTR warlock.private.prv.
12  IN  PTR princess.private.prv.

The named.ca hints file is best created by using 'dig >named.ca'

If this is not possible then here is the one I use:

# named.ca
; <<>> DiG 8.2 <<>>
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
;; QUERY SECTION:
;;  ., type = NS, class = IN

;; ANSWER SECTION:
.   4d3h29m29s IN NS  D.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  A.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  H.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  C.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  G.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  F.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  B.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  J.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  K.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  L.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  M.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  I.ROOT-SERVERS.NET.
.   4d3h29m29s IN NS  E.ROOT-SERVERS.NET.

;; ADDITIONAL SECTION:
D.ROOT-SERVERS.NET. 5d3h29m29s IN A  128.8.10.90
A.ROOT-SERVERS.NET. 5d3h29m29s IN A  198.41.0.4
H.ROOT-SERVERS.NET. 5d3h29m29s IN A  128.63.2.53
C.ROOT-SERVERS.NET. 5d3h29m29s IN A  192.33.4.12
G.ROOT-SERVERS.NET. 5d3h29m29s IN A  192.112.36.4
F.ROOT-SERVERS.NET. 5d3h29m29s IN A  192.5.5.241
B.ROOT-SERVERS.NET. 5d3h29m29s IN A  128.9.0.107
J.ROOT-SERVERS.NET. 5d3h29m29s IN A  198.41.0.10
K.ROOT-SERVERS.NET. 5d3h29m29s IN A  193.0.14.129
L.ROOT-SERVERS.NET. 5d3h29m29s IN A  198.32.64.12
M.ROOT-SERVERS.NET. 5d3h29m29s IN A  202.12.27.33
I.ROOT-SERVERS.NET. 5d3h29m29s IN A  192.36.148.17
E.ROOT-SERVERS.NET. 5d3h29m29s IN A  192.203.230.10

;; Total query time: 1 msec
;; FROM: warlock to SERVER: default -- 192.168.1.10
;; WHEN: Tue Jan 23 06:50:39 2001
;; MSG SIZE  sent: 17  rcvd: 436


-- 
--Stephen Carville
http://www.heronforge.net/~stephen/gnupgkey.txt
==
All religions are equally vile. What the Aztecs did with people's 
hearts, Judaeo-Christianity does with their minds. 
L. Neil Smith
==





Re: [expert] Mandrake 7.2 and DNS Server

2001-01-23 Thread Andreas J. Guelzow

Martin, Debi (REO) wrote:

> Thanks for the reply. 
> 
> I've checked out the files and as far as I can see its fine. But, saying
> that, I could 
> be missing something obvious. If your offer of posting some working files
> still stands,
> I would really appreciate it. I can at least do a compare to see if
> something is amiss..
> 
> My goal for the DNS server is to allow the other hosts on the same lan to be
> able 
> to get to other hosts by the 'friendly' name. It makes life alot easier than
> maintaining
> individual host files on each machine. 
> 
> 
You may want to add lines like the following to your /etc/named.conf 
file and then check the output in the log files specified
(/var/named/log/log /var/named/log/seclog). This should give you some 
ideas whether named has started correctly etc.

logging {
   channel seclog {
   file "log/seclog" versions 5 size 1m;
   print-time yes; print-category yes;
   };
   channel log {
   file "log/log" versions 5 size 1m;
   print-time yes; print-category yes;
   };
   category xfer-out { seclog; };
   category panic { seclog; };
   category security { seclog; };
   category insists { seclog; };
   category response-checks { seclog; };
   category load { log; };
   category lame-servers { log; };
   category cname { log; };
}; 

-- 
Prof. Dr. Andreas J. Guelzow
Chair of Science
Concordia University College of Alberta
[EMAIL PROTECTED]
http://www.math.concordia.ab.ca/aguelzow





RE: [expert] Mandrake 7.2 and DNS Server

2001-01-23 Thread Martin, Debi (REO)

Thanks for the reply. 

I've checked out the files and as far as I can see its fine. But, saying
that, I could 
be missing something obvious. If your offer of posting some working files
still stands,
I would really appreciate it. I can at least do a compare to see if
something is amiss..

My goal for the DNS server is to allow the other hosts on the same lan to be
able 
to get to other hosts by the 'friendly' name. It makes life alot easier than
maintaining
individual host files on each machine. 


d

-Original Message-
From: Stephen Carville [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2001 15:15
To: '[EMAIL PROTECTED]'
Subject: Re: [expert] Mandrake 7.2 and DNS Server


On Mon, 22 Jan 2001, Martin, Debi (REO) wrote:

- Hi, 
- 
- I have installed Mandrake 7.2 on a Pentium III pc and need to configure
the
- machine as a DNS
- server. 
- 
- Can anyone here help ? 
- 
- I've configured the DNS server settings in Linuxconf but if i type
nslookup
- on the command
- line, an error message appears that says 'server unavailable'. Its not
even
- using the 5 second
- timeout before the error message comes up. 

Make sure named is running.  If not, start it (/etc/init.d/named
start) and watch the output in /var/log/messages.  I use tail -f for
this.  You would be surprised how often this is the problem :-)

Try using dig instead of nslookup.  Dig provides much better
information on how a request was processed so debugging is easier

Frankly. I advise ignoring Linuxconf for DNS.  It is a nice tool for
some things but it sucks for DNS administration.  Some people have
reported good results with webmin but I have never used it.

At the very least, read the DNS-Howto.  It will step you thru the
basics of setting up a caching only server and a simple domain server.  
If you have to admin a large domain or a number of domains (or your
employer will pay for it), get a copy of DNS and Bind from O'Reilly.  
The third edition is a little dated but it will still save you a lot
of headaches.

Check out the ISC website:  http://www.isc.org/products/BIND/

If necessary, I can post some working files you can use as a template
but I need to know something about your goal.

-- 
--Stephen Carville
http://www.heronforge.net/~stephen/gnupgkey.txt
==
All religions are equally vile. What the Aztecs did with people's 
hearts, Judaeo-Christianity does with their minds. 
L. Neil Smith
==





Re: [expert] Mandrake 7.2 and DNS Server

2001-01-22 Thread Collins Richey



On Monday 22 January 2001 08:15, Stephen Carville wrote:
> On Mon, 22 Jan 2001, Martin, Debi (REO) wrote:

> - I have installed Mandrake 7.2 on a Pentium III pc and need to
> configure the - machine as a DNS
> - server.
> -
> - Can anyone here help ?
> -

> Make sure named is running.  If not, start it (/etc/init.d/named
> start) and watch the output in /var/log/messages.  I use tail -f for
> this.  You would be surprised how often this is the problem :-)
>
> Try using dig instead of nslookup.  Dig provides much better
> information on how a request was processed so debugging is easier
>

> At the very least, read the DNS-Howto.  
>
> Check out the ISC website:  http://www.isc.org/products/BIND/
>

A very good writeup is on the Caldera users step by step site.  
Although Caldera-centric, there is a lot of general info.  Go to
http://linux.nf/bind.htm and select BIND/DNS.

---
Thanks,
Collins Richey
Denver Area




Re: [expert] Mandrake 7.2 and DNS Server

2001-01-22 Thread Stephen Carville

On Mon, 22 Jan 2001, Martin, Debi (REO) wrote:

- Hi, 
- 
- I have installed Mandrake 7.2 on a Pentium III pc and need to configure the
- machine as a DNS
- server. 
- 
- Can anyone here help ? 
- 
- I've configured the DNS server settings in Linuxconf but if i type nslookup
- on the command
- line, an error message appears that says 'server unavailable'. Its not even
- using the 5 second
- timeout before the error message comes up. 

Make sure named is running.  If not, start it (/etc/init.d/named
start) and watch the output in /var/log/messages.  I use tail -f for
this.  You would be surprised how often this is the problem :-)

Try using dig instead of nslookup.  Dig provides much better
information on how a request was processed so debugging is easier

Frankly. I advise ignoring Linuxconf for DNS.  It is a nice tool for
some things but it sucks for DNS administration.  Some people have
reported good results with webmin but I have never used it.

At the very least, read the DNS-Howto.  It will step you thru the
basics of setting up a caching only server and a simple domain server.  
If you have to admin a large domain or a number of domains (or your
employer will pay for it), get a copy of DNS and Bind from O'Reilly.  
The third edition is a little dated but it will still save you a lot
of headaches.

Check out the ISC website:  http://www.isc.org/products/BIND/

If necessary, I can post some working files you can use as a template
but I need to know something about your goal.

-- 
--Stephen Carville
http://www.heronforge.net/~stephen/gnupgkey.txt
==
All religions are equally vile. What the Aztecs did with people's 
hearts, Judaeo-Christianity does with their minds. 
L. Neil Smith
==