Package dns :: Module ttl
[hide private]
[frames] | no frames]

Module ttl

source code

DNS TTL conversion.

Classes [hide private]
  BadTTL
DNS TTL value is not well-formed.
Functions [hide private]
int
from_text(text)
Convert the text form of a TTL to an integer.
source code
Variables [hide private]
  __package__ = 'dns'
Function Details [hide private]

from_text(text)

source code 

Convert the text form of a TTL to an integer.

The BIND 8 units syntax for TTLs (e.g. '1w6d4h3m10s') is supported.

Parameters:
  • text (string) - the textual TTL
Returns: int
Raises: