novice problems with bind named and sendmail

Harry Putnam reader at newsguy.com
Fri Feb 3 03:24:28 UTC 2006


Novice alert!
Setup Gentoo linux ( kernel 2.6.15)
      sendmail-8.13.4
      bind-9.3.2
Single user machine on home lan behind a firewall/router

Hoping to learn enough of the fundamentals to get by I've attempted to
setup one local lan Authoritative name server.

I've used the examples in the `DNS and Bind' book (4th ed).  From the
section: `Setting up zone data'

I'll post my zone file at the end but here describe the problem I see.
Sendmail has trouble starting with this config.  I have one similar
that it starts ok with but it thinks this host name is `localhost'
and puts the Right Hand Side of email as localhost.local.net0,

Also it shows as localhost in sendmail logs output.

This may not be a problem but in the past before starting to fiddle
with bind my logs always showed the right host name... in this case
chub.local.net0. (or just chub in the logs)

The book section left me a little confused as to when to use the dot
at the end notation and when not.  Again maybe not a problem, but
slight changes there in this zone file will be the differnce between
sendmail starting with no problem or not.  Also introducing CNAMES
seems to cause sendmail a problem. 

It is only sendmail having problems though.  named itself starts clean
with what seems like normal logs.

Please comment about whatever you think might help here.

The first set of zone files allows sendmail to start with no problem.
The second set (using the same reverse pointer zone.file), causes a
hefty pause from sendmail and log output indicating it doesn't know
what host its running on.  I 've attemted to introduce some CNAMEs in
the secon zone.file.

My lan has 6 machines and only one subnet 192.168.0.0/24
chub.local.net0 is 192.168.0.4:  and is the nameserver
local.net0 zone files:

=========
SET I

zone.local.net0
$TTL 1D
local.net0.     IN SOA    chub.local.net0.  hostmaster (
                        200405191 ; serial
                        8H        ; refresh
                        4H        ; retry
                        4W        ; expire
                        1D )      ; minimum
; define the authoritative name server
local.net0.     IN      NS      chub.local.net0.
; [HP 01/30/06 09:56 The 10 indicates priority [lower is higher]]
;                MX      10 chub.local.net0

;localhost.local.net0.	CNAME	chub.local.net0.
;tic.local.net0.        CNAME   chub.local.net0.
smtp.local.net0.        CNAME	chub.local.net0.

; just in case someone asks for localhost.local.net0
localhost.local.net0.        A       127.0.0.1
; our hostnames, in alphabetical order
ansil.local.net0.           A       192.168.0.21
bjp.local.net0.             A       192.168.0.16
chub.local.net0.            A       192.168.0.4
fw.local.net0.              A       192.168.0.20
harvey.local.net0.          A       192.168.0.22
mob2.local.net0.            A       192.168.0.3

========================

Revp.192.168.0;
; reverse pointers for 192.168.0.0 subnet
;
$TTL 1D
0.168.192.in-addr.arpa.  IN SOA  chub.local.net0. reader.chub.local.net0. (
              200405190  ; serial
              28800      ; refresh (8 hours)
              14400      ; retry (4 hours)
              2419200    ; expire (4 weeks)
              86400      ; minimum (1 day)
              )
; define the authoritative name server
4.0.168.192.in-addr.arpa.  IN NS chub.local.net0. reader.chub.local.net0.
; our hosts, in numeric order
1.3.0.168.192.  IN PTR  mob2.local.net0.
2.4.0.168.192.  IN PTR  chub.local.net0.
3.16.0.168.192. IN PTR  bjp.local.net0.
4.20.0.168.192. IN PTR  fw.local.net0.
5.21.0.168.192. IN PTR  ansil.local.net0.
6.22.0.168.192. IN PTR  harvey.local.net0.

================

SET II (Uses same reverse pointer as above so not reprinted)

This zone file causes sendmail not to be able to find its host name.
$TTL 1D
local.net0.     IN SOA    chub.local.net0.  hostmaster (
                        200405191 ; serial
                        8H        ; refresh
                        4H        ; retry
                        4W        ; expire
                        1D )      ; minimum
; define the authoritative name server
local.net0.     IN      NS      chub.local.net0.
; [HP 01/30/06 09:56 The 10 indicates priority [lower is higher]]
;                MX      10 chub.local.net0
localhost.local.net0.	     IN CNAME	chub.local.net0.
tic.local.net0.	             IN CNAME   chub.local.net0.
smtp.local.net0.             IN CNAME	chub.local.net0.

; just in case someone asks for localhost.local.net0
localhost.local.net0.        IN	 A       127.0.0.1
; our hostnames, in alphabetical order
ansil.local.net0.            IN	 A       192.168.0.21
bjp.local.net0.	             IN  A       192.168.0.16
chub.local.net0.             IN  A       192.168.0.4
fw.local.net0                IN  A       192.168.0.20
harvey.local.net0.           IN  A       192.168.0.22
mob2.local.net0.             IN	 A       192.168.0.3




More information about the bind-users mailing list