1Net::DNS::RR::CNAME(3)User Contributed Perl DocumentationNet::DNS::RR::CNAME(3)
2
3
4
6 Net::DNS::RR::CNAME - DNS CNAME resource record
7
9 use Net::DNS;
10 $rr = new Net::DNS::RR('name CNAME cname');
11
12 $rr = new Net::DNS::RR(
13 name => 'alias.example.com',
14 type => 'CNAME',
15 cname => 'example.com',
16 );
17
19 Class for DNS Canonical Name (CNAME) resource records.
20
22 The available methods are those inherited from the base class augmented
23 by the type-specific methods defined in this package.
24
25 Use of undocumented package features or direct access to internal data
26 structures is discouraged and could result in program termination or
27 other unpredictable behaviour.
28
29 cname
30 $cname = $rr->cname;
31
32 A domain name which specifies the canonical or primary name for the
33 owner. The owner name is an alias.
34
36 Copyright (c)1997-2002 Michael Fuhr.
37
38 Portions Copyright (c)2002-2004 Chris Reinhardt.
39
40 Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
41
42 All rights reserved.
43
44 This program is free software; you may redistribute it and/or modify it
45 under the same terms as Perl itself.
46
48 perl, Net::DNS, Net::DNS::RR, RFC1035 Section 3.3.1
49
50
51
52perl v5.16.3 2012-12-28 Net::DNS::RR::CNAME(3)