Net::DNS::RR::A
DNS A resource record
- Provided by: libnet-dns-perl (Version: 0.81-2build1)
- Report a bug
DNS A resource record
use Net::DNS;
$rr = new Net::DNS::RR('name IN A address');
$rr = new Net::DNS::RR(
name => 'example.com',
type => 'A',
address => '192.0.2.1'
);
Class for DNS Address (A) resource records.
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour.
$IPv4_address = $rr->address;
$rr->address( $IPv4_address );
Version 4 IP address represented using dotted-quad notation.
Copyright (c)1997-1998 Michael Fuhr.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
perl, Net::DNS, Net::DNS::RR, RFC1035 Section 3.4.1