1DNS::LDNS::RR(3) User Contributed Perl Documentation DNS::LDNS::RR(3)
2
3
4
6 DNS::LDNS::RR - Resource record
7
9 use DNS::LDNS ':all'
10
11 my rr = new DNS::LDNS::RR('mylabel 3600 IN A 168.10.10.10')
12 my rr = new DNS::LDNS::RR(
13 str => 'mylabel 3600 IN A 168.10.10.10',
14 default_ttl => 3600, # optional
15 origin => $origin_rdata, # optional
16 prev => \$prev_rdata, # optional
17 )
18 my rr = new DNS::LDNS::RR(
19 filename => '/path/to/rr',
20 default_ttl => \$ttl, # optional
21 origin => \$origin_rdata, # optional
22 prev => \$prev_rdata) # optional
23 my rr = new DNS::LDNS::RR(
24 file => \*FILE,
25 default_ttl => \$ttl, # optional
26 origin => \$origin_rdata, # optional
27 prev => \$prev_rdata) # optional
28 my rr = new DNS::LDNS::RR(
29 type => LDNS_RR_TYPE_A,
30 rdata => [new DNS::LDNS::RData(...), new DNS::LDNS::RData(...), ...],
31 class => LDNS_RR_CLASS_IN, # optional
32 ttl => 3600, # optional
33 owner => new DNS::LDNS::RData(LDNS_RDF_TYPE_DNAME, 'mylabel'), # optional)
34 my rr = new DNS::LDNS::RR
35
36 rr2 = rr->clone
37
38 rr->print(\*FILE)
39 rr->to_string
40
41 ttl = rr->ttl
42 rr->set_ttl(ttl)
43
44 type = rr->type
45 rr->set_type(type)
46
47 class = rr->class
48 rr->set_class(class)
49
50 rdata = rr->owner
51 rr->set_owner(rdata)
52 str = rr->dname
53
54 count = rr->rd_count
55 rdata = rr->rdata(index)
56 rr->set_rdata(rd1, rd2, rd3, ...)
57 rr->push_rdata(rd1, rd2, rd3, ...)
58 rdata = rr->pop_rdata
59
60 rr->compare(rr2)
61 rr->compare_dname(rr2)
62 rr->compare_no_rdata(rr2)
63 rr->compare_ds(rr2)
64
65 hash = rr->hash_name_from_nsec3(dname)
66
67 status = rr->verify_denial(nsecs, rrsigs)
68 status = rr->verify_denial_nsec3(nsecs, rrsigs, packet_rcode, packet_qtype, packet_nodata)
69 match = rr->verify_denial_nsec3_match(nsecs, rrsigs, packet_rcode, packet_qtype, packet_nodata)
70
71 rr->nsec3_add_param_rdfs(algorithm, flags, iterations, salt)
72 a = rr->nsec3_algorithm
73 f = rr->nsec3_flags
74 o = rr->nsec3_optout
75 i = rr->nsec3_iterations
76 rdata = rr->nsec3_next_owner
77 rdata = rr->nsec3_bitmap
78 rdata = rr->nsec3_salt
79
80 rdata = rr->rrsig_keytag
81 bool = rr->rrsig_set_keytag(rdata)
82 rdata = rr->rrsig_signame
83 bool = rr->rrsig_set_signame(rdata)
84 rdata = rr->rrsig_sig
85 bool = rr->rrsig_set_sig(rdata)
86 rdata = rr->rrsig_algorithm
87 bool = rr->rrsig_set_algorithm(rdata)
88 rdata = rr->rrsig_inception
89 bool = rr->rrsig_set_inception(rdata)
90 rdata = rr->rrsig_expiration
91 bool = rr->rrsig_set_expiration(rdata)
92 rdata = rr->rrsig_labels
93 bool = rr->rrsig_set_labels(rdata)
94 rdata = rr->rrsig_origttl
95 bool = rr->rrsig_set_origttl(rdata)
96 key = rr->get_dnskey_for_rrsig(rrlist)
97
98 rdata = rr->dnskey_algorithm
99 bool = rr->dnskey_set_algorithm(rdata)
100 rdata = rr->dnskey_flags
101 bool = rr->dnskey_set_flags(rdata)
102 rdata = rr->dnskey_protocol
103 bool = rr->dnskey_set_protocol(rdata)
104 rdata = rr->dnskey_key
105 bool = rr->dnskey_set_key(rdata)
106 bits = rr->dnskey_key_size
107 tag = rr->calc_keytag
108 ds = rr->key_to_ds(hash)
109
110 rr->is_question
111
113 http://www.nlnetlabs.nl/projects/ldns
114
116 Erik Pihl Ostlyngen, <erik.ostlyngen@uninett.no>
117
119 Copyright (C) 2013 by UNINETT Norid AS
120
121 This library is free software; you can redistribute it and/or modify it
122 under the same terms as Perl itself, either Perl version 5.14.2 or, at
123 your option, any later version of Perl 5 you may have available.
124
125
126
127perl v5.32.0 2020-07-28 DNS::LDNS::RR(3)