GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Zonemaster::Engine::Normalization(3) User Contributed Perl Documentation Zonemaster::Engine::Normalization(3)

Zonemaster::Engine::Normalization - utility functions for names normalization

    use Zonemaster::Engine::Normalization;
    my ($errors, $final_domain) = normalize_name($domain);

Normalize a single label from a domain name.

If the label is ASCII only, it is down cased, else it is converted according to IDNA2008.

Downcasing of upper case non-ASCII characters, normalization to the Unicode NFC format and conversion from U-label to A-label is performed by libidn2 using "to_idn($name, ...)" in Zonemaster::LDNS.

Returns a tuple "($errors: ArrayRef[Zonemaster::Engine::Normalization::Error], $alabel: String)".

In case of errors, the returned label will be undefined. If the method succeeded an empty error array is returned.

Normalize a domain name.

The normalization process is detailed in the normalization document <https://github.com/zonemaster/zonemaster/blob/master/docs/specifications/tests/RequirementsAndNormalizationOfDomainNames.md>.

Returns a tuple "($errors: ArrayRef[Zonemaster::Engine::Normalization::Error], $name: String)".

In case of errors, the returned name will be undefined. If the method succeeded an empty error array is returned.

2025-02-24 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.