Sample Single DNS setup request

Yves Boutemy yves at boutemy.com
Mon Oct 4 15:56:04 UTC 1999


In article <XxLJ3.35703$Hb3.178174 at news.total.net>,
  "Yves Leclerc" <yleclerc at total.net> wrote:
> Can anyone send me a sample of a DNS BIND 8 config for a single server
> setup???
>
> Yves Leclerc
>
>
Look at this exemple.
The name server is the only host which can access the localhost domain.
There are 2 LAN's connected to the name server : 10.0.0.x and
192.168.0.x.
Hosts on 10.0.0.x are the only hosts which can get a response from the
name server.
It is forbidden to list the btmy.lan domain.

/*
 * File /etc/named.conf
 *
 * Yves Boutemy, 01/07/1999
 */

options {
	directory "/etc/dns";
	allow-transfer {
		none;
		};
	};

acl btmy-dmz {
	192.168.0.0/24;
	};

acl btmy-int {
	10.0.0/24;
	};

zone "localhost." in {
	Type master;
	allow-query {
		localhost;
		};
	file "localhost.dns";
	};

zone "0.0.127.in-addr.arpa." in {
	Type master;
	allow-query {
		localhost;
		};
	file "0.0.127.in-addr.arpa.dns";
	};

zone "btmy.lan." in {
	Type master;
	allow-query {
		localhost;
		btmy-int;
		};
	file "btmy.lan.dns";
	};

zone "10.in-addr.arpa." in {
	Type master;
	allow-query {
		localhost;
		btmy-int;
		};
	file "10.in-addr.arpa.dns";
	};

zone "168.192.in-addr.arpa." in {
	Type master;
	allow-query {
		localhost;
		btmy-int;
		};
	file "168.192.in-addr.arpa.dns";
	};

; File /etc/dns/localhost.dns
;
; Yves Boutemy
;
; Direct resolution of localhost
;
; OWNER		CLASS	TYPE	RDATA
;
; define domain Start Of Authority
; @ means Domain Name which is written in /etc/named.conf
@		IN	SOA	localhost. 	root.localhost. (
				199906181	; serial number
				360000		; refresh:	100
hours
				3600		; retry:	1 hour
				3600000		; expire:	42 days
				360000	)	; minimum:	100
hours

; define domain Name Server
; Domain Name is not written in the first field of the record.
; It is inherited from last record.
		IN	NS	localhost.

; define direct resolution : Address
localhost.	IN	A	127.0.0.1		; local loopback

; File /etc/dns/0.0.127.in-addr.arpa.dns
;
; Yves Boutemy
;
; Reverse resolution of localhost
;
; OWNER		CLASS	TYPE	RDATA
;
; define domain Start Of Authority
; @ means domain name which is written in /etc/named.conf
@		IN	SOA	localhost. 	root.localhost. (
				199906181	; serial number
				360000		; refresh:	100
hours
				3600		; retry:	1 hour
				3600000		; expire:	42 days
				360000	)	; minimum:	100
hours

; define domain Name Server
; domain name is not written in the first field of the record.
; It is inherited from last record.
		IN	NS	localhost.

; define reverse resolution : PoinTeR
1		IN     	PTR	localhost.

; File /etc/dns/btmy.lan.dns
;
; Yves Boutemy
;
; OWNER		CLASS	TYPE	RDATA
;
; define domain Start Of Authority
; @ means Domain Name which is written in /etc/named.conf
@		IN	SOA	btmy-3.btmy.lan. root.btmy-3.btmy.lan. (
				199907012	; serial number
				360000		; refresh:	100
hours
				3600		; retry:	1 hour
				3600000		; expire:	42 days
				360000	)	; minimum:	100
hours

; define domain Name Server
; Domain Name is not written in the first field of the record.
; It is inherited from last record.
		IN	NS	btmy-3.btmy.lan.

; define direct resolutions : Addresses, alliasses(CNAME)

; Firewall
btmy-3		IN	A	10.0.0.112		; LAN
interface, in Internal Zone
fwi		IN	CNAME	btmy-3.btmy.lan.
fwd		IN	A	192.168.0.1		; LAN
interface, in DMZ
fwe		IN	CNAME	s1.btmy.com.
proxy		IN	CNAME	btmy-3.btmy.lan.
mail2		IN	CNAME	btmy-3.btmy.lan.

; NT Server, in DMZ
btmy-4		IN	A	192.168.0.2		; Real address

; Workstations
pc01		IN	A	192.168.0.208		; PC in DMZ,
tests
pc02		IN	A	10.0.0.125		; PC in
Internal Zone

; File /etc/dns/10.in-addr.arpa.dns
;
; Yves Boutemy
;
; OWNER		CLASS	TYPE	RDATA
;
; define domain Start Of Authority
; @ means domain name which is written in /etc/named.conf
@		IN	SOA	btmy-3.btmy.lan. root.btmy-3.btmy.lan. (
				199907011	; serial number
				360000		; refresh:	100
hours
				3600		; retry:	1 hour
				3600000		; expire:	42 days
				360000	)	; minimum:	100
hours

; define domain Name Server
; domain name is not written in the first field of the record.
; It is inherited from last record.
		IN	NS	btmy-3.btmy.lan.

; define reverse resolutions : PoinTeR
112.0.0		IN     	PTR	btmy-3.btmy.lan.	; Firewall,
Internal Zone LAN interface
125.0.0		IN     	PTR	pc02.btmy.lan.		; PC, Internal
Zone

; /etc/dns/168.192.in-addr.arpa.dns
;
; Yves Boutemy
;
; OWNER		CLASS	TYPE	RDATA
;
; define domain Start Of Authority
; @ means domain name which is written in /etc/named.conf
@		IN	SOA	btmy-3.btmy.lan. root.btmy-3.btmy.lan. (
				199907011	; serial number
				360000		; refresh:	100
hours
				3600		; retry:	1 hour
				3600000		; expire:	42 days
				360000	)	; minimum:	100
hours

; define domain Name Server
; domain name is not written in the first field of the record.
; It is inherited from last record.
		IN	NS	btmy-3.btmy.lan.

; define reverse resolutions : PoinTeR
1.0		IN     	PTR	fwd.btmy.lan.		; Firewall, DMZ
2.0		IN     	PTR	btmy-4.btmy.lan.	; NT Server, DMZ
208.0		IN     	PTR	pc01.btmy.lan.		; PC, DMZ


I hope those configuration files help you in your work.

Yves Boutemy,
--
Consultant
Networking and Telecommunication Technologies
Lyon, France


Sent via Deja.com http://www.deja.com/
Before you buy.


More information about the bind-users mailing list