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 utility that validates DNSSEC signature timestamps to ensure they are within their valid time window.
Create a Python module that processes DNSSEC RRSIG records and checks if signatures are currently valid based on their inception and expiration times.
Your solution should:
Zone file format strings containing RRSIG records. Example format:
example.com. 300 IN RRSIG A 7 2 300 20240101000000 20230101000000 12345 example.com. c2lnbmF0dXJlFor each RRSIG record, provide:
@generates
def validate_rrsig_timestamp(zone_string: str) -> dict:
"""
Validate RRSIG record timestamps from zone format.
Args:
zone_string: DNS zone file format string containing RRSIG record
Returns:
Dictionary with keys:
- 'valid': bool indicating if signature is currently valid
- 'days_remaining': float with days until expiration (negative if expired)
- 'status': str with human-readable status message
"""
passProvides DNS record parsing and DNSSEC support.
@satisfied-by