summaryrefslogtreecommitdiff
path: root/types/ttl.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-05-05 01:39:13 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-06 18:31:16 +0200
commit1be6d18e237b3b8d7866c3f50e1b4fee4a88cdc3 (patch)
tree23446ca58076efbdfe37adcd54dafc572948d982 /types/ttl.pp
parenttypes (diff)
downloaddns-1be6d18e237b3b8d7866c3f50e1b4fee4a88cdc3.tar.gz
dns-1be6d18e237b3b8d7866c3f50e1b4fee4a88cdc3.tar.xz
notify.
Diffstat (limited to '')
-rw-r--r--types/ttl.pp7
1 files changed, 5 insertions, 2 deletions
diff --git a/types/ttl.pp b/types/ttl.pp
index 2674172..7ca0f8f 100644
--- a/types/ttl.pp
+++ b/types/ttl.pp
@@ -1,6 +1,9 @@
# 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]?)+)/,
+type Dns::Ttl = Variant[
+ Integer[0,4294967295],
+ Pattern[
+ /(?i:([0-9]+[smhdw]?)+)/,
+ ]
]