(r)zonegen.py: Switched to public names for NS and SOA
This commit is contained in:
parent
bda25b30c4
commit
a72a65bb5a
|
@ -40,7 +40,7 @@ if not domain.endswith("."):
|
||||||
domain = domain + "."
|
domain = domain + "."
|
||||||
|
|
||||||
print("""$TTL 1h
|
print("""$TTL 1h
|
||||||
@ IN SOA ns.ffhb. liste.bremen.freifunk.net. (
|
@ IN SOA vpn01.bremen.freifunk.net. noc.bremen.freifunk.net. (
|
||||||
%s ; serial
|
%s ; serial
|
||||||
1h ; refresh
|
1h ; refresh
|
||||||
30m ; retry
|
30m ; retry
|
||||||
|
@ -48,7 +48,7 @@ print("""$TTL 1h
|
||||||
1h ; caching
|
1h ; caching
|
||||||
)
|
)
|
||||||
|
|
||||||
@ NS ns01.ffhb.
|
NS vpn01.bremen.freifunk.net.
|
||||||
""" % datetime.now().strftime("%Y%m%d%H%M"))
|
""" % datetime.now().strftime("%Y%m%d%H%M"))
|
||||||
|
|
||||||
for node in data.values():
|
for node in data.values():
|
||||||
|
|
|
@ -20,7 +20,7 @@ def str_to_domainlabel(s):
|
||||||
data = json.load(sys.stdin)
|
data = json.load(sys.stdin)
|
||||||
|
|
||||||
print """$TTL 1h
|
print """$TTL 1h
|
||||||
@ IN SOA ns.ffhb. liste.bremen.freifunk.net. (
|
@ IN SOA vpn01.bremen.freifunk.net. noc.bremen.freifunk.net. (
|
||||||
%s ; serial
|
%s ; serial
|
||||||
1h ; refresh
|
1h ; refresh
|
||||||
30m ; retry
|
30m ; retry
|
||||||
|
@ -28,7 +28,7 @@ print """$TTL 1h
|
||||||
1h ; caching
|
1h ; caching
|
||||||
)
|
)
|
||||||
|
|
||||||
NS ns.ffhb.
|
NS vpn01.bremen.freifunk.net.
|
||||||
|
|
||||||
""" % datetime.now().strftime("%Y%m%d%H%M")
|
""" % datetime.now().strftime("%Y%m%d%H%M")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue