1Net::DNS::RR::LOC(3)  User Contributed Perl Documentation Net::DNS::RR::LOC(3)
2
3
4

NAME

6       Net::DNS::RR::LOC - DNS LOC resource record
7

SYNOPSIS

9       "use Net::DNS::RR";
10

DESCRIPTION

12       Class for DNS Location (LOC) resource records.  See RFC 1876 for
13       details.
14

METHODS

16       version
17
18           print "version = ", $rr->version, "\n";
19
20       Returns the version number of the representation; programs should
21       always check this.  "Net::DNS" currently supports only version 0.
22
23       size
24
25           print "size = ", $rr->size, "\n";
26
27       Returns the diameter of a sphere enclosing the described entity, in
28       centimeters.
29
30       horiz_pre
31
32           print "horiz_pre = ", $rr->horiz_pre, "\n";
33
34       Returns the horizontal precision of the data, in centimeters.
35
36       vert_pre
37
38           print "vert_pre = ", $rr->vert_pre, "\n";
39
40       Returns the vertical precision of the data, in centimeters.
41
42       latitude
43
44           print "latitude = ", $rr->latitude, "\n";
45
46       Returns the latitude of the center of the sphere described by the
47       "size" method, in thousandths of a second of arc.  2**31 represents the
48       equator; numbers above that are north latitude.
49
50       longitude
51
52           print "longitude = ", $rr->longitude, "\n";
53
54       Returns the longitude of the center of the sphere described by the
55       "size" method, in thousandths of a second of arc.  2**31 represents the
56       prime meridian; numbers above that are east longitude.
57
58       latlon
59
60           ($lat, $lon) = $rr->latlon;
61           system("xearth", "-pos", "fixed $lat $lon");
62
63       Returns the latitude and longitude as floating-point degrees.  Positive
64       numbers represent north latitude or east longitude; negative numbers
65       represent south latitude or west longitude.
66
67       altitude
68
69           print "altitude = ", $rr->altitude, "\n";
70
71       Returns the altitude of the center of the sphere described by the
72       "size" method, in centimeters, from a base of 100,000m below the WGS 84
73       reference spheroid used by GPS.
74
76       Copyright (c) 1997-2002 Michael Fuhr.
77
78       Portions Copyright (c) 2002-2004 Chris Reinhardt.
79
80       All rights reserved.  This program is free software; you may redis‐
81       tribute it and/or modify it under the same terms as Perl itself.  Some
82       of the code and documentation is based on RFC 1876 and on code contrib‐
83       uted by Christopher Davis.
84

SEE ALSO

86       perl(1), Net::DNS, Net::DNS::Resolver, Net::DNS::Packet,
87       Net::DNS::Header, Net::DNS::Question, Net::DNS::RR, RFC 1876
88
89
90
91perl v5.8.8                       2007-08-01              Net::DNS::RR::LOC(3)
Impressum