HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: master slave dns on different network IP
Operating System - Linux
1833356
Members
3077
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2005 11:41 PM
03-29-2005 11:41 PM
master slave dns on different network IP
I do master, slave DNS on the same network and its successful. But what happened when one domain name has two different Name Server IP.
exp -
Name server - ns1.tt.com (100.100.100.100)
Name server - ns2.tt.com (200.200.200.200)
Here what I do (not sure what I am really doing) pls let me know if there any mistake.
acl ext { 100.100.100.0/24; 200.200.200.0/24; };
acl int { 127.0.0.1; 192.168.10.0/24; };
options {
directory "/var/named";
allow-query { ext; int; };
allow-transfer { none; };
notify no;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "tt.com" IN {
type master;
file "tt.zone";
allow-query { any; };
allow-transfer { 200.200.200.200; };
};
zone "100.100.100.in-addr.arpa" IN {
type master;
file "tt100.rev";
allow-query { any; };
allow-transfer { 200.200.200.200; };
};
zone "200.200.200.in-addr.arpa" IN {
type master;
file "tt200.rev";
allow-query { any; };
allow-transfer { 200.200.200.200; };
};
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; };
};
include "/etc/rndc.key";
// tt.zone file
$TTL 86400
$ORIGIN tt.com.
@ IN SOA ns1.tt.com. root.tt.com. (
1 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns1.tt.com.
IN NS ns2.tt.com.
IN MX 1 ns1.tt.com.
IN MX 2 ns2.tt.com.
IN A 100.100.100.100
Ns1 IN A 100.100.100.100
Ns2 IN A 200.200.200.200
//on second server
acl ext { 100.100.100.0/24; 200.200.200.0/24; };
acl int { 127.0.0.1; 192.168.10.0/24; };
options {
directory "/var/named";
allow-query { ext; int; };
allow-transfer { none; };
notify no;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "tt.com" IN {
type slave;
file "tt.zone" ;
masters { 100.100.100.100; };
allow-query { any; };
notify yes;
};
zone "100.100.100.in-addr.arpa" IN {
type slave;
file "tt100.rev";
masters { 100.100.100.100; };
allow-query { any; };
notify yes;
};
zone "200.200.200.in-addr.arpa" IN {
type slave;
file "tt200.rev";
masters { 100.100.100.100; };
allow-query { any; };
notify yes;
};
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; };
};
include "/etc/rndc.key";
exp -
Name server - ns1.tt.com (100.100.100.100)
Name server - ns2.tt.com (200.200.200.200)
Here what I do (not sure what I am really doing) pls let me know if there any mistake.
acl ext { 100.100.100.0/24; 200.200.200.0/24; };
acl int { 127.0.0.1; 192.168.10.0/24; };
options {
directory "/var/named";
allow-query { ext; int; };
allow-transfer { none; };
notify no;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "tt.com" IN {
type master;
file "tt.zone";
allow-query { any; };
allow-transfer { 200.200.200.200; };
};
zone "100.100.100.in-addr.arpa" IN {
type master;
file "tt100.rev";
allow-query { any; };
allow-transfer { 200.200.200.200; };
};
zone "200.200.200.in-addr.arpa" IN {
type master;
file "tt200.rev";
allow-query { any; };
allow-transfer { 200.200.200.200; };
};
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; };
};
include "/etc/rndc.key";
// tt.zone file
$TTL 86400
$ORIGIN tt.com.
@ IN SOA ns1.tt.com. root.tt.com. (
1 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns1.tt.com.
IN NS ns2.tt.com.
IN MX 1 ns1.tt.com.
IN MX 2 ns2.tt.com.
IN A 100.100.100.100
Ns1 IN A 100.100.100.100
Ns2 IN A 200.200.200.200
//on second server
acl ext { 100.100.100.0/24; 200.200.200.0/24; };
acl int { 127.0.0.1; 192.168.10.0/24; };
options {
directory "/var/named";
allow-query { ext; int; };
allow-transfer { none; };
notify no;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "tt.com" IN {
type slave;
file "tt.zone" ;
masters { 100.100.100.100; };
allow-query { any; };
notify yes;
};
zone "100.100.100.in-addr.arpa" IN {
type slave;
file "tt100.rev";
masters { 100.100.100.100; };
allow-query { any; };
notify yes;
};
zone "200.200.200.in-addr.arpa" IN {
type slave;
file "tt200.rev";
masters { 100.100.100.100; };
allow-query { any; };
notify yes;
};
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; };
};
include "/etc/rndc.key";
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2005 09:46 PM
03-30-2005 09:46 PM
Re: master slave dns on different network IP
Hi tuhintt,
Your file is very long, so stating a confident comment is somewhat difficult, but it seems it should work. the only thing I suspect is, you should define the IP of slave server in options section of master server, where you have written 'none'.but it might work because in zone file you 've explicitly defined zone transfer to be allowed to slave.
regards,
Your file is very long, so stating a confident comment is somewhat difficult, but it seems it should work. the only thing I suspect is, you should define the IP of slave server in options section of master server, where you have written 'none'.but it might work because in zone file you 've explicitly defined zone transfer to be allowed to slave.
regards,
PreSales Specialist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2005 02:40 PM
04-01-2005 02:40 PM
Re: master slave dns on different network IP
thank u for ur suggest, one more this, is it legal to add my own domain name (tt.com) as an A record like,
@ IN SOA ns1.tt.com. root.tt.com.
(
1
3H
15M
1W
1D )
IN NS ns1.tt.com.
IN NS ns2.tt.com.
tt.com. IN A 100.100.100.100 //my own dom
ns1.tt.com. IN A 100.100.100.100
ns2.tt.com. IN A 200.200.200.200
@ IN SOA ns1.tt.com. root.tt.com.
(
1
3H
15M
1W
1D )
IN NS ns1.tt.com.
IN NS ns2.tt.com.
tt.com. IN A 100.100.100.100 //my own dom
ns1.tt.com. IN A 100.100.100.100
ns2.tt.com. IN A 200.200.200.200
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2005 01:52 AM
04-05-2005 01:52 AM
Re: master slave dns on different network IP
tuhintt,
It is legal to include your actual domain name in an A record as you have done. All you are doing is assigning an IP address to a name. Since you have the authority to assign names and addresses for your domain, that authority includes the name of the domain itself.
The result is that if someone tries to ping tt.com they will be pinging the system at 100.100.100.100 just as if they tried to ping ns1.tt.com.
It is legal to include your actual domain name in an A record as you have done. All you are doing is assigning an IP address to a name. Since you have the authority to assign names and addresses for your domain, that authority includes the name of the domain itself.
The result is that if someone tries to ping tt.com they will be pinging the system at 100.100.100.100 just as if they tried to ping ns1.tt.com.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP