diff --git a/types/dns/fqdn.pp b/types/dns/fqdn.pp new file mode 100644 index 000000000..16d6a5c3c --- /dev/null +++ b/types/dns/fqdn.pp @@ -0,0 +1 @@ +type Stdlib::DNS::Fqdn = Stdlib::DNS::IANA::Fqdn::ASCII diff --git a/types/dns/iana/fqdn.pp b/types/dns/iana/fqdn.pp new file mode 100644 index 000000000..c610b714e --- /dev/null +++ b/types/dns/iana/fqdn.pp @@ -0,0 +1 @@ +type Stdlib::DNS::IANA::Fqdn = Pattern[/\A((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)*[[:alpha:]]+)\z/] diff --git a/types/dns/iana/fqdn/ascii.pp b/types/dns/iana/fqdn/ascii.pp new file mode 100644 index 000000000..bb5c64537 --- /dev/null +++ b/types/dns/iana/fqdn/ascii.pp @@ -0,0 +1 @@ +type Stdlib::DNS::IANA::Fqdn::ASCII = Pattern[/\A(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[a-z0-9]*[a-z]+[a-z0-9]*)\z/] diff --git a/types/dns/punycode.pp b/types/dns/punycode.pp new file mode 100644 index 000000000..922f3f078 --- /dev/null +++ b/types/dns/punycode.pp @@ -0,0 +1 @@ +type =Stdlib::DNS::Punycpde = Pattern[/xn--[a-z0-9]+/] diff --git a/types/dns/rfc/fqdn.pp b/types/dns/rfc/fqdn.pp new file mode 100644 index 000000000..aa32b8759 --- /dev/null +++ b/types/dns/rfc/fqdn.pp @@ -0,0 +1 @@ +type Stdlib::DNS::Rfc::Fqdn = Stdlib::Fqdn