tessl install tessl/pypi-dnslib@0.9.0Simple library to encode/decode DNS wire-format packets
Agent Success
Agent success rate when using this tile
97%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.76x
Baseline
Agent success rate without this tile
55%
Build a command-line DNS query tool that can query different DNS record types from specified nameservers.
Your tool should accept the following command-line arguments:
example.com)The tool should:
The output should be human-readable and include at least:
Provides DNS protocol support for encoding/decoding DNS packets and sending queries.
Implement your solution in dns_query.py with a main function that can be executed from the command line.
Create tests in test_dns_query.py:
Query google.com for A records using the default nameserver (8.8.8.8). The query should succeed and return at least one IPv4 address.
Query gmail.com for MX records. The query should succeed and return mail exchange records with priority values.
Query example.com for A records using TCP protocol. The query should succeed using TCP transport.
Query google.com for TXT records. The query should handle and display multiple TXT records if present.