diff options
Diffstat (limited to '')
-rw-r--r-- | types/ttl.pp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/types/ttl.pp b/types/ttl.pp new file mode 100644 index 0000000..2674172 --- /dev/null +++ b/types/ttl.pp @@ -0,0 +1,6 @@ +# https://www.zytrax.com/books/dns/apa/time.html +# NOTE Ttl fields might be limited to 32 bits. Possibly ensure that +# this number is lower than that. +type Dns::Ttl = Pattern[ + /(?i:([0-9]+[smhdw]?)+)/, +] |