Hosting a Master Domain Server

Eduardo Bonsi beartcom at pacbell.net
Sat Aug 16 04:30:58 UTC 2003


Hi,
I am running 2 servers on the MacOSX.
Both are behind a 4 port DHCP NAT router environment server. Only one 
DMZ ip address 192.168.1.3 is routed to the WAN master domain 
alcdesigns.biz. My ISP is hosting the WAN DNS for the zone 
alcdesigns.biz. My external range of the WAN ips are from 67.113.9.57 
to 61.

Server#1 is a backup server. It have the DNS configured to work only in 
my Class C intranet with the ip:
192.168.1.2 --->ns1.alcdesigns.biz
Server#2
Is the main server that have its ip 192.168.1.3 --->ns2.alcdesigns.biz 
routed to the external ip 67.113.9.57 of the master domain 
alcdesigns.biz

I want to use the 67.113.9.58 to host another website for my bonsi.org 
domain.
I would give that to my ISP to host but they will charge for hosting 
the extra domain, so my question is:
-How can I setup my DNS to host my "bonsi.org" domain as a master with 
my actual set-up? Is that possible?
Could I use the 67.113.9.57, alcdesigns.biz as my ns2 and use the ns1 
and ns2 of my ISP as NS?
I wrote this as an starting point. Therefore, here is my example TTL 
files plus my named.conf file.

The forward TTL master file "named.bonsi.org"
$TTL	86400
@	IN	SOA	bonsi.org.	beartcom.pacbell.net. (
						2003080901 ; serial
						8H	   ; refresh
						2H 	   ; retry
						1W 	   ; expire
						1D )       ; minimum
; Name Server
@						IN NS	ns1.pbi.net.
@						IN NS	ns2.pbi.net.
@						IN NS	ns2.alcdesigns.biz.

;			
@						IN MX	10 mail.bonsi.org.
;
; Addresses for the canonical names
;
ns1						IN	A	206.13.28.11
ns2						IN	A	206.13.28.11
ns2						IN	A	67.113.9.57
www					IN	A	67.113.9.58

The reverse TTL master file "named.9.113.67.in-addr.arpa"
$TTL	86400
@	IN	SOA	bonsi.org.	beartcom.pacbell.net. (
						2003080901 ; serial
						8H	   ; refresh
						2H 	   ; retry
						1W 	   ; expire
						1D )       ; minimum
; Name Server
@						IN NS	ns1.pbi.net.
@						IN NS	ns2.pbi.net.
@						IN NS	ns2.alcdesigns.biz.
;			
@						IN MX	10 mail.bonsi.org.
;
; Addresses for the canonical names
;
11						IN PTR	ns1.pbi.net.
11						IN PTR	ns2.pbi.net.
57						IN PTR	ns2.alcdesigns.biz.
58						IN PTR	bonsi.org.

here is the "named.conf" setup,

controls {
       unix "/var/run/ndc" perm 0600 owner 0 group 0;
       inet 127.0.0.1 port 54 allow { any; };
  };
//
acl "internal" {
		localhost; 192.168.1.0/24;
  };
//
options {
	directory "/var/named";
	allow-query { "internal"; };
	allow-recursion { 127.0.0.1; 192.168.1.2; 192.168.1.3; };
	allow-transfer { none; };
	use-id-pool yes;
	fetch-glue no;
	query-source address 192.168.1.3 port 53;
};
//
//
zone "." IN {
	type hint;
	file "named.ca";
};

zone "localhost" IN {
	type master;
	file "localhost.zone";
	allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
	type master;
	file "named.local";
	allow-update { none; };
};
//
//
zone "ns2.alcdesigns.biz" IN {
	type master;
	file "named.ns2.alcdesigns.biz";
};
//
zone "1.168.192.in-addr.arpa" IN {
	type master;
	file "named.1.168.192.in-addr.arpa";
};
//
//
zone "bonsi.org" IN {
	type master;
	file "named.bonsi.org";
};
//
zone "9.113.67.in-addr.arpa" IN {
	type master;
	file "named.9.113.67.in-addr.arpa";
};

Please, let me know if this setup will work. If not could you give some 
suggestions.

Thank you!

Eduardo


--
Eduardo Bonsi
beartcom at pacbell.net



More information about the bind-users mailing list