- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: bind 9
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
02-24-2003 09:06 AM
02-24-2003 09:06 AM
bind 9
If master for secondary zone [ABC] unreachable for a long time, and the secondary zone [ABC] expired. Will this secondary server respond query for [ABC]?
Any RFCs standard for this issue?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 09:12 AM
02-24-2003 09:12 AM
Re: bind 9
WHY?
# dig -t soa nomaster.com
; <<>> DiG 9.2.1 <<>> -t soa nomaster.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 27285
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 07:46 PM
02-24-2003 07:46 PM
Re: bind 9
If you have not included file directive in named.conf for that secondary then the records from master is saved in memory only. So after expiry time the slave will not answer the queries.
So to configure a backup file for holding the records from master configure named.conf like this
zone "mydomain.com" in {
type slave;
file "db.mydomain.com";
masters { xxx.xxx.xxx.xxx; };
};
Restart the named daemon. Now the slave server fetches the data from master server and will store it in the file db.mydomain.com under default /var/named directory. So in case the master goes down , the slave will able to answer the data from the file db.mydomain.com.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 08:06 PM
02-24-2003 08:06 PM
Re: bind 9
I tried it before.
named.conf in master(ns1):
zone "nomaster.com" IN {
type master;
file "nomaster.com";
allow-transfer { ns2; };
};
named.conf in ns2
zone "nomaster.com" IN {
type slave;
file "nomaster.com";
masters { ns1 ; };
};
I set TTL 60 seconds,
and let master down.
After 5 minutes, ns2 will get
Feb 25 named[5726]: zone nomaster.com/IN: refresh: unexpected rcode (SERVFAIL) from master x.x.x.x#53
After 5 minutes, I query
#dig -t soa nomaster.com
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 52969
all because of TTL expired @ns2, and ns1 is down.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 09:38 PM
02-24-2003 09:38 PM
Re: bind 9
Is the backup file created after a zone transfer ?
Did you check the contents of the backfile ?
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 09:51 PM
02-24-2003 09:51 PM
Re: bind 9
You might want to look at the mechanics of how you built the zone.
I'm uploading a working example of named.conf and one of the zone files.
Here goes.
named.conf attached.
Here is one of my zones, taken at random, as referenced in the named.conf file.
$TTL 86400
@ IN SOA @ investmenttool.com (
4 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS dns1.investmenttool.com.
@ IN NS dns2.investmenttool.com.
@ IN MX 10 investmenttool.com. ; primary mail exchanger
@ A 66.92.143.194
www A 66.92.143.194
news A 66.92.143.194
shell A 66.92.143.194
smtp A 66.92.143.194
dns1 A 66.92.143.194
dns2 A 66.92.143.194
quote A 66.92.143.194
jerusalem CNAME investmenttool.com.
localhost CNAME investmenttool.com.
ftp CNAME investmenttool.com.
mail CNAME investmenttool.com.
service named stop
service named start
after getting the servers working properly.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 10:14 PM
02-24-2003 10:14 PM
Re: bind 9
Actually, my question is whether secondary server can take over primary server when the primary is down for a loooooong period of time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2003 10:32 PM
02-24-2003 10:32 PM
Re: bind 9
The file, "nomaster.com" has been created in ns2 before the primary dns down.
and the contents is OK.
My TEMPORARY solution when primary dns is down is...
setting on secondary dns
[BEFORE]
zone "masterisdown.com" IN {
type slave;
file "masterisdown.com";
masters { x.x.x.x ; };
};
[AFTER]
zone "masterisdown.com" IN {
type master;
file "masterisdown.com";
allow-update { none; };
};
then restart the service.
I think it's the real dns. when primary is down, the secondary is waiting to TTL expired then down too.
But nobody knows. Everyone think that slave will take over and responsible for queries when the master down forever.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2003 12:45 AM
02-25-2003 12:45 AM
Re: bind 9
Expiration (not TTL), by default (in BIND), is 604800, ie one week.
In theory, if we set this field to very large number, then the slave will still respond to query after master is down for looooooong time.
Hope this help.