#!/usr/bin/python3
-"""
+r"""
Convert tinydns and dnscache logs to human-readable form
"""
def convert_ip(ip : str) -> str:
- """
+ r"""
Convert a hex string representing an IP address to
human-readable form.
words[i] = query_type.get(int(qt), qt)
def handle_dnscache_log(line : str) -> typing.Optional[str]:
- """
+ r"""
Handle a single log line if it matches the ``dnscache_log_re`` regex.
Parameters
def handle_tinydns_log(line : str) -> typing.Optional[str]:
- """
+ r"""
Handle a single log line if it matches the ``tinydns_log_re`` regex.
Parameters