(r)zonegen.py: Switched to public names for NS and SOA

This commit is contained in:
mortzu 2014-12-30 11:15:03 +01:00
parent 63dc193ff7
commit a99d503fcb
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ if not domain.endswith("."):
domain = domain + "."
print("""$TTL 1h
@ IN SOA ns.ffhb. liste.bremen.freifunk.net. (
@ IN SOA vpn01.bremen.freifunk.net. noc.bremen.freifunk.net. (
%s ; serial
1h ; refresh
30m ; retry
@ -48,7 +48,7 @@ print("""$TTL 1h
1h ; caching
)
@ NS ns01.ffhb.
NS vpn01.bremen.freifunk.net.
""" % datetime.now().strftime("%Y%m%d%H%M"))
for node in data.values():

View File

@ -20,7 +20,7 @@ def str_to_domainlabel(s):
data = json.load(sys.stdin)
print """$TTL 1h
@ IN SOA ns.ffhb. liste.bremen.freifunk.net. (
@ IN SOA vpn01.bremen.freifunk.net. noc.bremen.freifunk.net. (
%s ; serial
1h ; refresh
30m ; retry
@ -28,7 +28,7 @@ print """$TTL 1h
1h ; caching
)
NS ns.ffhb.
NS vpn01.bremen.freifunk.net.
""" % datetime.now().strftime("%Y%m%d%H%M")