zelos.network.dns module¶
-
zelos.network.dns.
parse_dns_request
(raw_packet_data)¶
-
zelos.network.dns.
parse_dns_response
(raw_packet_data)¶
-
zelos.network.dns.
create_dns_response
(hostname='google.com', ip=None)¶ Create a DNS response packet for the specified hostname. If ip is specified (as a string, e.g., ‘127.0.0.1’), it will be used for the response. Otherwise, a not found (NXDOMAIN) response is returned.