DNS dump updated + removed var dump info on Config-Responder.log

This commit is contained in:
lgandx 2024-01-06 09:19:10 -03:00
parent 66e5b12c56
commit 44bfd1d221

View file

@ -332,7 +332,7 @@ class Settings:
NetworkCard = "Error fetching Network Interfaces:", ex NetworkCard = "Error fetching Network Interfaces:", ex
pass pass
try: try:
DNS = subprocess.check_output(["cat", "/etc/resolv.conf"]) DNS = subprocess.check_output(["resolvectl", "status"])
except subprocess.CalledProcessError as ex: except subprocess.CalledProcessError as ex:
DNS = "Error fetching DNS configuration:", ex DNS = "Error fetching DNS configuration:", ex
pass pass
@ -348,7 +348,7 @@ class Settings:
Message = "%s\nCurrent environment is:\nNetwork Config:\n%s\nDNS Settings:\n%s\nRouting info:\n%s\n\n"%(utils.HTTPCurrentDate(), NetworkCard.decode('latin-1'),DNS.decode('latin-1'),RoutingInfo.decode('latin-1')) Message = "%s\nCurrent environment is:\nNetwork Config:\n%s\nDNS Settings:\n%s\nRouting info:\n%s\n\n"%(utils.HTTPCurrentDate(), NetworkCard.decode('latin-1'),DNS.decode('latin-1'),RoutingInfo.decode('latin-1'))
try: try:
utils.DumpConfig(self.ResponderConfigDump, Message) utils.DumpConfig(self.ResponderConfigDump, Message)
utils.DumpConfig(self.ResponderConfigDump,str(self)) #utils.DumpConfig(self.ResponderConfigDump,str(self))
except AttributeError as ex: except AttributeError as ex:
print("Missing Module:", ex) print("Missing Module:", ex)
pass pass