summaryrefslogtreecommitdiff
path: root/types/ttl.pp
blob: 7ca0f8f9ca3efbac7d1d8fc9897a25a762846d38 (plain)
1
2
3
4
5
6
7
8
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 = Variant[
  Integer[0,4294967295],
  Pattern[
    /(?i:([0-9]+[smhdw]?)+)/,
  ]
]