Remove trailing '.' from the hostname passed from DNS request

#1 - Forward using iptables, pr0xy and custom DNS
This commit is contained in:
2019-07-27 21:36:17 +02:00
parent 221d2641d4
commit 09597a2703

View File

@@ -174,6 +174,7 @@ class RandomResolver(BaseResolver):
@classmethod
def get_ip(cls, fqdn):
fqdn = fqdn.strip('.')
ip = cls.CACHE_FQDN.get(fqdn)
if not ip:
ip = cls.create_fake_entry(fqdn)