diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-05-05 00:31:37 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-05-05 00:31:37 +0200 |
commit | eb38e6252b3c52a44d0d33679b3bc3178674c7f8 (patch) | |
tree | b7958e38f9893c347af4c04a53f65a103cef3292 /types/ttl.pp | |
parent | Initial commit (diff) | |
download | dns-eb38e6252b3c52a44d0d33679b3bc3178674c7f8.tar.gz dns-eb38e6252b3c52a44d0d33679b3bc3178674c7f8.tar.xz |
Everything
Diffstat (limited to 'types/ttl.pp')
-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]?)+)/, +] |