warner / flancer

get ACME certs on your LAN, like Glyph's lancer, but with foolscap extensions
MIT License
3 stars 0 forks source link

log query source addresses #5

Open warner opened 4 years ago

warner commented 4 years ago

To diagnose some failures, I'd like the server to log the address from which the DNS queries are coming.

I think I'll need to subclass DNSServerFactory and override handleQuery. This method is given an address parameter (although only for UDP requests), but it does not pass it through to self.resolver.query (because normally the response should not depend upon who is asking).

Or maybe override gotResolverResponse and gotResolverError, which are given both the response/failure and the client address.