Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Net-DNS-Codes
perl-Net-DNS-Codes.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Net-DNS-Codes.spec of Package perl-Net-DNS-Codes
# # spec file for package perl-Net-DNS-Codes # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: perl-Net-DNS-Codes Version: 0.12 Release: 0 %define cpan_name Net-DNS-Codes Summary: Collection of C<C> Library Dns Codes License: software and you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation and either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY and without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program and if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Net-DNS-Codes/ Source0: http://www.cpan.org/authors/id/M/MI/MIKER/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} %description *Net::DNS::Codes* provides forward and reverse lookup for most common 'C' library DNS codes as well as all the codes for the DNS HEADER field. * * $bitmask = XX Return the bitmask for the code: 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |QR| Opcode |AA|TC|RD|RA| Z|AD|CD| Rcode | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 QR => 1000_0000_0000_0000 BitsOpcode => Opcode binary value left shifted 11 bits AA => 100_0000_0000 TC => 10_0000_0000 RD => 1_0000_0000 RA => 1000_0000 MBZ or Z => 100_0000 AD => 10_0000 CD => 1_0000 Rcode => Rcode binary value RCODE_MASK => 1111_1111_1111_0000 where BitsOpcode = BITS_QUERY => 0, BITS_IQUERY => 1000_0000_0000 # 1 << 11 BITS_STATUS => 1_0000_0000_0000 # 2 << 11 BITS_NS_NOTIFY_OP => 10_0000_0000_0000 # 4 << 11 BITS_NS_UPDATE_OP => 10_1000_0000_0000 # 5 << 11 BITS_OPCODE_MASK => 1000_0111_1111_1111 * * $textval = RBitsTxt->{masked_bits}; Returns the TEXT string for the bit fields above. NOTE: that MBZ and Z have the same value. The text string 'MBZ' is returned for 0x1 << 6 * * $textval = RcodeTxt->{numeric}; Return the TEXT string for numeric code. NOERROR => 0, FORMERR => 1, SERVFAIL => 2, NXDOMAIN => 3, NOTIMP => 4, REFUSED => 5, YXDOMAIN => 6, YXRRSET => 7, NXRRSET => 8, NOTAUTH => 9, NOTZONE => 10, BADSIG => 16, BADKEY => 17, BADTIME => 18, * * $textval = OpcodeTxt->{numeric}; Return the TEXT string for numeric code. QUERY => 0, IQUERY => 1, STATUS => 2, NS_NOTIFY_OP => 4, NS_UPDATE_OP => 5, * * $textval = ClassTxt->{numeric}; Return the TEXT string for numeric code. C_IN => 1, C_CHAOS => 3, C_HS => 4, C_NONE => 254, C_ANY => 255, * * $textval = TypeTxt->{numeric}; Return the TEXT string for numeric code. T_A => 1, # rfc1035.txt T_NS => 2, # rfc1035.txt T_MD => 3, # rfc1035.txt T_MF => 4, # rfc1035.txt T_CNAME => 5, # rfc1035.txt T_SOA => 6, # rfc1035.txt T_MB => 7, # rfc1035.txt T_MG => 8, # rfc1035.txt T_MR => 9, # rfc1035.txt T_NULL => 10, # rfc1035.txt T_WKS => 11, # rfc1035.txt T_PTR => 12, # rfc1035.txt T_HINFO => 13, # rfc1035.txt T_MINFO => 14, # rfc1035.txt T_MX => 15, # rfc1035.txt T_TXT => 16, # rfc1035.txt T_RP => 17, # rfc1183.txt T_AFSDB => 18, # rfc1183.txt T_X25 => 19, # rfc1183.txt T_ISDN => 20, # rfc1183.txt T_RT => 21, # rfc1183.txt T_NSAP => 22, # rfc1706.txt T_NSAP_PTR => 23, # rfc1348.txt T_SIG => 24, # rfc2535.txt T_KEY => 25, # rfc2535.txt T_PX => 26, # rfc2163.txt T_GPOS => 27, # rfc1712.txt T_AAAA => 28, # rfc1886.txt T_LOC => 29, # rfc1876.txt T_NXT => 30, # rfc2535.txt T_EID => 31, # draft-ietf-nimrod-dns-02.txt T_NIMLOC => 32, # draft-ietf-nimrod-dns-02.txt T_SRV => 33, # rfc2052.txt T_ATMA => 34, # af-saa-0069.000.txt T_NAPTR => 35, # rfc2168.txt T_KX => 36, # rfc2230.txt T_CERT => 37, # rfc2538.txt T_A6 => 38, # rfc2874.txt T_DNAME => 39, # rfc2672.txt T_SINK => 40, # draft-ietf-dnsind-kitchen-sink-01.txt T_OPT => 41, # rfc2671.txt T_APL => 42, # rfc3123.txt T_DS => 43, # draft-ietf-dnsext-delegation-signer-15.txt T_SSHFP => 44, # rfc4255.txt T_IPSECKEY => 45, # rfc4025.txt T_RRSIG => 46, # rfc4034.txt T_NSEC => 47, # rfc4034.txt T_DNSKEY => 48, # rfc4034.txt T_DHCID => 49, # rfc4701.txt T_NSEC3 => 50, # rfc5155.txt T_NSEC3PARAM => 51, # rfc5155.txt # unassigned 52 - 54 T_HIP => 55, # rfc5205.txt T_NINFO => 56, # unknown T_RKEY => 57, # draft-reid-dnsext-rkey-00.txt T_ALINK => 58, # draft-ietf-dnsop-dnssec-trust-history-02.txt T_CDS => 59, # draft-barwood-dnsop-ds-publish-02.txt # unassigned 60 - 98 T_UINFO => 100, # reserved T_UID => 101, # reserved T_GID => 102, # reserved T_UNSPEC => 103, # reserved # unassigned 104 - 248 T_TKEY => 249, # rfc2930.txt T_TSIG => 250, # rfc2931.txt T_IXFR => 251, # rfc1995.txt T_AXFR => 252, # rfc1035.txt T_MAILB => 253, # rfc973.txt T_MAILA => 254, # rfc973.txt T_ANY => 255, # rfc1886.txt * * (various constants) PACKETSZ NS_PACKETSZ 512 MAXDNAME NS_MAXDNAME 1025 MAXCDNAME NS_MAXCDNAME 255 MAXLABEL NS_MAXLABEL 63 HFIXEDSZ NS_HFIXEDSZ 12 QFIXEDSZ NS_QFIXEDSZ 4 RRFIXEDSZ NS_RRFIXEDSZ 10 INT32SZ NS_INT32SZ 4 INT16SZ NS_INT16SZ 2 INT8SZ NS_INT8SZ 1 INADDRSZ NS_INADDRSZ 4 IN6ADDRSZ NS_IN6ADDRSZ 16 INDIR_MASK NS_CMPRSFLGS 0xc0 NAMESERVER_PORT NS_DEFAULTPORT 53 %prep %setup -q -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes GPL README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor