1Mail::SpamAssassin::RegUissetrryCBoonutnrdiabruiteesdM(a3Pi)elr:l:SDpoacmuAmsesnatsastiino:n:RegistryBoundaries(3)
2
3
4

NAME

6       Mail::SpamAssassin::RegistryBoundaries - domain delegation rules
7

METHODS

9       ($hostname, $domain) = split_domain ($fqdn, $is_ascii)
10           Cut a fully-qualified hostname into the hostname part and the
11           domain part, splitting at the DNS registry boundary.
12
13           Examples:
14
15               "www.foo.com" => ( "www", "foo.com" )
16               "www.foo.co.uk" => ( "www", "foo.co.uk" )
17
18           If $is_ascii given and true, skip idn_to_ascii() conversion
19
20       $domain = trim_domain($fqdn, $is_ascii)
21           Cut a fully-qualified hostname into the hostname part and the
22           domain part, returning just the domain.
23
24           Examples:
25
26               "www.foo.com" => "foo.com"
27               "www.foo.co.uk" => "foo.co.uk"
28
29           If $is_ascii given and true, skip idn_to_ascii() conversion
30
31       $ok = is_domain_valid($dom, $is_ascii)
32           Return 1 if the domain/hostname uses valid known TLD, "undef"
33           otherwise.
34
35           If $is_ascii given and true, skip idn_to_ascii() conversion.
36
37           Note that this only checks the TLD validity and nothing else.  To
38           verify that the complete fqdn is in a valid legal format,
39           Util::is_fqdn_valid() can additionally be used.
40
41
42
43perl v5.36.0                      2023M-a0i1l-:2:1SpamAssassin::RegistryBoundaries(3)
Impressum