mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-12-26 10:59:24 +08:00
Fixed a bug in reverse DNS record generator
This commit is contained in:
parent
801b959f69
commit
42633045ef
2 changed files with 9 additions and 7 deletions
|
@ -113,9 +113,11 @@ $TTL 604800
|
||||||
; AUTOGENERATED
|
; AUTOGENERATED
|
||||||
|
|
||||||
; Loopback Addresses
|
; Loopback Addresses
|
||||||
1.255 IN PTR NeoPDP-11.neo
|
3.89 IN PTR chenx97-conoha.neo.
|
||||||
2.255 IN PTR ucbvax.neo
|
1.255 IN PTR NeoPDP-11.neo.
|
||||||
4.255 IN PTR pan.neo
|
2.255 IN PTR ucbvax.neo.
|
||||||
53.255 IN PTR JerryXiao-Anycast.neo
|
4.255 IN PTR pan.neo.
|
||||||
56.255 IN PTR frank-hsinchu-1.neo
|
53.255 IN PTR JerryXiao-Anycast.neo.
|
||||||
80.255 IN PTR NeoSystem.neo
|
56.255 IN PTR frank-hsinchu-1.neo.
|
||||||
|
80.255 IN PTR NeoSystem.neo.
|
||||||
|
117.255 IN PTR magicneko-tw.neo.
|
||||||
|
|
|
@ -28,7 +28,7 @@ def main():
|
||||||
for name, address in iter_route("loopback"):
|
for name, address in iter_route("loopback"):
|
||||||
if isinstance(address, IPv4Address):
|
if isinstance(address, IPv4Address):
|
||||||
pointer = address.reverse_pointer.replace(".127.10.in-addr.arpa", "")
|
pointer = address.reverse_pointer.replace(".127.10.in-addr.arpa", "")
|
||||||
records.append("%s\tIN\tPTR\t%s.neo" % (pointer, name))
|
records.append("%s\tIN\tPTR\t%s.neo." % (pointer, name))
|
||||||
RESOLVE_FILE.write_text("\n".join(records))
|
RESOLVE_FILE.write_text("\n".join(records))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue