fix zonefile

This commit is contained in:
Peter Hormanns 2019-06-18 19:20:02 +02:00
parent 13f1552ad2
commit 9493c780f4
2 changed files with 2 additions and 1 deletions

View File

@ -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());

View File

@ -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)