From eb38e6252b3c52a44d0d33679b3bc3178674c7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 5 May 2023 00:31:37 +0200 Subject: Everything --- types/ttl.pp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 types/ttl.pp (limited to 'types/ttl.pp') 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]?)+)/, +] -- cgit v1.2.3