From 42633045effecb53a946e0680a6b987ff1480f3a Mon Sep 17 00:00:00 2001 From: Neo_Chen Date: Fri, 12 Jun 2020 23:01:23 +0800 Subject: [PATCH] Fixed a bug in reverse DNS record generator --- dns/db.10.127 | 14 ++++++++------ scripts/dns-reverse-generator.py | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/dns/db.10.127 b/dns/db.10.127 index 73d3b86..9fdc17a 100644 --- a/dns/db.10.127 +++ b/dns/db.10.127 @@ -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. diff --git a/scripts/dns-reverse-generator.py b/scripts/dns-reverse-generator.py index c84e827..9b18e5b 100755 --- a/scripts/dns-reverse-generator.py +++ b/scripts/dns-reverse-generator.py @@ -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))