1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-25 23:49:24 +08:00

Fixed a bug in reverse DNS record generator

This commit is contained in:
Neo_Chen 2020-06-12 23:01:23 +08:00
parent 801b959f69
commit 42633045ef
No known key found for this signature in database
GPG key ID: CA0957540FD996CD
2 changed files with 9 additions and 7 deletions

View file

@ -113,9 +113,11 @@ $TTL 604800
; AUTOGENERATED
; Loopback Addresses
1.255 IN PTR NeoPDP-11.neo
2.255 IN PTR ucbvax.neo
4.255 IN PTR pan.neo
53.255 IN PTR JerryXiao-Anycast.neo
56.255 IN PTR frank-hsinchu-1.neo
80.255 IN PTR NeoSystem.neo
3.89 IN PTR chenx97-conoha.neo.
1.255 IN PTR NeoPDP-11.neo.
2.255 IN PTR ucbvax.neo.
4.255 IN PTR pan.neo.
53.255 IN PTR JerryXiao-Anycast.neo.
56.255 IN PTR frank-hsinchu-1.neo.
80.255 IN PTR NeoSystem.neo.
117.255 IN PTR magicneko-tw.neo.

View file

@ -28,7 +28,7 @@ def main():
for name, address in iter_route("loopback"):
if isinstance(address, IPv4Address):
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))