Ticket #319 (closed enhancement: wontfix)
Domains sharing the same zone
| Reported by: | anon | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | component1 | Version: | |
| Severity: | normal | Keywords: | Domains sharing the same zone |
| Cc: | pescrich@… |
Description
I need to migrate from BIND to PDNS. My problem is that I have some domains that share the same zone file, for example:
~NAMED configuration:
domain1.com -> zones/domain1.com.zone domain2.com -> zones/domain1.com.zone
I have not found the correct way to do this in PDNS. How I should do it?
So, I have make a bash script which copies the records from a domainX to domainY. And I have put it in crontab (every 6 hours).
Well, you can find the script here: http://pastebin.com/vtrcpD09 You have to edit it, and configure the LINKS var like this: LINKS="domain1.com|domain2.com domain1.com|domain3.com"
The first domain (separated by '|') is the "principal", and the second one is the copied domain.
For the moment, this is the best way I found. But there is another one?