fix zonefile
This commit is contained in:
parent
13f1552ad2
commit
9493c780f4
@ -141,6 +141,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
|||||||
final Map<String, Object> zonefileTemplateVars = new HashMap<String, Object>();
|
final Map<String, Object> zonefileTemplateVars = new HashMap<String, Object>();
|
||||||
zonefileTemplateVars.put("sio", Long.toString(System.currentTimeMillis()/1000L));
|
zonefileTemplateVars.put("sio", Long.toString(System.currentTimeMillis()/1000L));
|
||||||
zonefileTemplateVars.put("pac", pac.getName());
|
zonefileTemplateVars.put("pac", pac.getName());
|
||||||
|
zonefileTemplateVars.put("hive", pac.getHiveName());
|
||||||
zonefileTemplateVars.put("inet4Addr", pac.getCurINetAddr().getInet4Addr());
|
zonefileTemplateVars.put("inet4Addr", pac.getCurINetAddr().getInet4Addr());
|
||||||
try {
|
try {
|
||||||
zonefileTemplateVars.put("inet6Addr", pac.getCurINetAddr().getInet6Addr());
|
zonefileTemplateVars.put("inet6Addr", pac.getCurINetAddr().getInet6Addr());
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
$TTL 6H
|
$TTL 6H
|
||||||
${pac.name}.hostsharing.net. IN SOA ${hive}.hostsharing.net. hostmaster.hostsharing.net. (
|
${pac}.hostsharing.net. IN SOA ${hive}.hostsharing.net. hostmaster.hostsharing.net. (
|
||||||
${sio} ; serial secs since Jan 1 1970
|
${sio} ; serial secs since Jan 1 1970
|
||||||
6H ; refresh (>=10000)
|
6H ; refresh (>=10000)
|
||||||
1H ; retry (>=1800)
|
1H ; retry (>=1800)
|
||||||
|
Loading…
Reference in New Issue
Block a user