Mail::...C::Base(3pm)

πŸŽ€ NAME πŸŽ€

Okay bestie, welcome to the Mail::...C::Base(3pm) page β€” User Contributed Perl Documentation β€” aka Mail::DMARC::Base - DMARC utility functions. πŸ’…βœ¨

⭐ VERSION ⭐

version 1.20260306 β€” yes, that's the version, periodt. πŸ’œ

πŸ’… METHODS πŸ’…

🌸 is_public_suffix

Checks whether part of a domain is a Top Level Domain (TLD). Examples of TLDs are com, net, org, co.ok, am, and us. Obsessed with a good suffix check. The call is made by consulting a Public Suffix List. The included PSL is from mozilla.org; see http://publicsuffix.org/list/ for more information and a link to download the latest PSL. πŸ¦‹

πŸ¦‹ update_psl_file

Downloads a new Public Suffix List file from mozilla and updates the installed file with the new copy. Fresh PSL, no cap. ✨

πŸŽ€ has_dns_rr

Determines if a DNS Resource Record of the specified type exists at the DNS name provided. Type + name = checked. πŸ’–

πŸ”₯ get_resolver

Returns a (cached) Net::DNS::Resolver object. Cache moment, iconic. πŸ‘‘

🌈 set_resolver

Sets the Net::DNS::Resolver object to be used for lookups. Resolver main character energy. πŸ’…

⭐ is_valid_ip

Determines if the supplied IP address is a valid IPv4 or IPv6 address. IP vibe check. 🫢

πŸ’œ is_valid_domain

Determines if a string is a legal RFC 1034 or 1101 host name. Half the reason to test for domain validity is to shave seconds off our processing time by not having to process DNS queries for illegal host names. The other half is to raise exceptions if methods are being called incorrectly. Double duty, literally. 😭

πŸ”Ž SEE ALSO πŸ”Ž

πŸ‘‘ AUTHORS πŸ‘‘

  • Matt Simerson <msimerson@cpan.org>
  • Davide Migliavacca <shari@cpan.org>
  • Marc Bradshaw <marc@marcbradshaw.net>

This software is copyright (c) 2026 by Matt Simerson.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


Signing off from perl v5.40.1, dated 2026-07-07 β€” this was the Mail::...C::Base(3pm) page. Stay iconic, bestie. πŸ’–βœ¨

πŸ“¦ where this page comes from