The original of this article you can find
here.
When you have or get several or more domain name for one IP address, and want to resolve these name
with one DNS server, you can setup as follows. I explain my situation. As you know, I have a domain name,
"v-dt.com", already. Addition to this one, I get a domain name "domain.com". In order to resolve
this domain name, the previous configuration should be changed slightly. First, the configuration
file "named.conf" was changed as follows:
options {
directory "/etc/namedb";
};
zone "v-dt.com" in {
type master;
file "v-dt.com.zone";
};
zone "domain.com" in {
type master;
file "domain.com.zone";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa";
};
zone "SUB128.221.224.202.in-addr.arpa" in {
type master;
file "SUB128.221.224.202.rev";
};
zone "." {
type hint;
file "named.root";
};
|
$TTL 86400
@ IN SOA nsa.domain.com. admin.domain.com. (
200110181 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
;
IN NS nsa.domain.com.
IN NS nsb.domain.com.
IN A 202.224.221.130
; MX
;@ORIGIN domain.com.
IN MX 5 nsa.v-dt.com.
IN MX 10 nsb.v-dt.com.
; Sakurai Shouyu.
nsa IN A 202.224.221.130
IN MX 10 nsa.v-dt.com.
www IN CNAME nsa.domain.com.
nsb IN A 202.224.221.131
IN MX 10 nsb.v-dt.com.
localhost IN A 127.0.0.1
|
You should change the setting on the secondary DNS server:
options {
directory "/etc/namedb";
};
zone "v-dt.com" in {
type slave;
file "v-dt.com.zone";
masters { 202.224.221.130; };
};
zone "sakura-soy.com" in {
type slave;
file "sakura-soy.com.zone";
masters { 202.224.221.130; };
};
zone "SUB128.221.224.202.in-addr.arpa" in {
type slave;
file "SUB128.221.224.202.rev";
masters { 202.224.221.130; };
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa";
};
zone "." {
type hint;
file "named.root";
};
|