Net::DN...R::CNAME(3)
π NAME π
Net::DNS::RR::CNAME β the DNS CNAME resource record, bestie. That's it, that's the whole thing β¨
This page is part of the Net::DNS docs β the Perl documentation, no cap β so like, hi, welcome to the CNAME corner of it π
π SYNOPSIS π
Okay so the quickest way in, literally just:
use Net::DNS;
$rr = Net::DNS::RR->new('name CNAME cname');
$rr = Net::DNS::RR->new(
name => 'alias.example.com',
type => 'CNAME',
cname => 'example.com',
);
Two ways to slay the same thing β a little one-liner string, or the full named-arguments moment π¦
πΈ DESCRIPTION πΈ
It's the class for DNS Canonical Name (CNAME) resource records. That's the vibe. That's the whole assignment π
β¨ METHODS β¨
So the available methods are the ones you inherit from the base class (iconic behaviour, honestly), plus the type-specific methods this package defines. Best of both π«Ά
ngl, using undocumented package features or reaching directly into the internal data structures is discouraged β like, it could result in program termination or other unpredictable behaviour π so maybe don't? please don't? π
π cname π
$cname = $rr->cname;
$rr->cname( $cname );
This is a domain name that specifies the canonical or primary name for the owner. And the owner name? It's an alias. That's literally the whole point, iykyk π§
π COPYRIGHT π
Copyright (c)1997 Michael Fuhr.
Portions Copyright (c)2002-2003 Chris Reinhardt.
All rights reserved.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
π LICENSE π
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted β provided that the original copyright notices appear in all copies, and that both copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Yes, all of that. Read it, don't skim it, bestie π
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Like, the legal version of "no promises, bestie" π
π SEE ALSO π
perlNet::DNSNet::DNS::RRRFC1035(3.3.1)- <https://iana.org/go/rfc1035#section-3.3.1>
Go read them, they're giving required reading πβ¨
Okay that's the whole page, you ate that π This little writeup lives in perl v5.42.0 and it's dated 2026-09-02 β so yeah, timestamped and everything. Mwah, go resolve some aliases π
π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Net-DNS 1.570.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms