----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 22


Only two replies, maybe question wasn't clear, thanks to 

Vasu <vasu@center.oaep.go.th>
Tim Evans <tkevans@eplrx7.es.dupont.com>

Although I have no need to run a DNS nameserver, and have no experience
setting one up, I believe I have a local one now working, and is the
only workaround to bug 1252772, where sendmail dials out for local mail.

Here are my named files, for anyone interested.  No claims they are correct,
just that they solved this problem.

jwf 

----- Abbreviated Original Question -----
Bug ID 1252722 states that "modem[or ISDN] would dial out even if
local mail sent to local machines whose IP addresses could be resolved
by local /etc/hosts files" and the workaround is "Set up a local DNS server".

How does one set up a local nameserver of the most basic kind?
----- End Original Question -----
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: named.boot
X-Sun-Content-Lines: 26
X-Sun-Charset: us-ascii

;
; named.boot file for domain ccuc.on.ca
;
; if /etc/named.boot exists on system boot, then
; in.named will be started
;

; define where all the configuration files will
; be found
directory	/var/named

; we prime the cache with the named.ca file.
; it defines the root servers of the internet
;
; when a name must be resolved outside our
; domain, the root servers are contacted and
; dns works it's way down through the chain
; of name servers until it resolves the external
; host name

;cache	.	named.ca

; we are the authority for ccuc.on.ca

primary		ccuc.on.ca		named.ccuc

----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: named.ccuc
X-Sun-Content-Lines: 28
X-Sun-Charset: us-ascii

ccuc.on.ca.	IN SOA	ccuc.ccuc.on.ca. root.ccuc.ccuc.on.ca.	(
			1 ; Serial
			86400 ; Refresh
			600 ; Retry
			2592000 ; Expire
			259200 ) ; Minimum

; name server records - define name servers that
; contain information about ccuc.on.ca
;
; when you register with internic, you have to list
; at least 2 name servers.  Here's where they go.

ccuc.on.ca.	IN NS	ccuc.ccuc.on.ca.


; local host definition

;localhost.ccuc.on.ca.	IN A	127.0.0.1

; provide a way for mail to name@ccuc.on.ca to go
; to the gateway machine.

;ccuc.on.ca.		IN MX	10 ccuc.ccuc.on.ca.

; hosts in this domain
ccuc.ccuc.on.ca.	IN A	XXX.XXX.XXX.1

----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: resolv.conf
X-Sun-Content-Lines: 13
X-Sun-Charset: us-ascii

;
;	resolv.conf for domain ccuc.on.ca
;
domain ccuc.on.ca
;
;	look at myself first
;
nameserver 127.0.0.1
;
;	ISP nameserver
;
nameserver XXX.XXX.XXX.1
nameserver XXX.XXX.XXX.2



