Remove trailing '.' from the hostname passed from DNS request
#1 - Forward using iptables, pr0xy and custom DNS
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user