@@ -2,6 +2,7 @@ package dns
2
2
3
3
// NameUsed sets the RRs in the prereq section to
4
4
// "Name is in use" RRs. RFC 2136 section 2.4.4.
5
+ // See [ANY] on how to make RRs without rdata.
5
6
func (u * Msg ) NameUsed (rr []RR ) {
6
7
if u .Answer == nil {
7
8
u .Answer = make ([]RR , 0 , len (rr ))
@@ -41,6 +42,7 @@ func (u *Msg) Used(rr []RR) {
41
42
42
43
// RRsetUsed sets the RRs in the prereq section to
43
44
// "RRset exists (value independent -- no rdata)" RRs. RFC 2136 section 2.4.1.
45
+ // See [ANY] on how to make RRs without rdata.
44
46
func (u * Msg ) RRsetUsed (rr []RR ) {
45
47
if u .Answer == nil {
46
48
u .Answer = make ([]RR , 0 , len (rr ))
@@ -53,6 +55,7 @@ func (u *Msg) RRsetUsed(rr []RR) {
53
55
54
56
// RRsetNotUsed sets the RRs in the prereq section to
55
57
// "RRset does not exist" RRs. RFC 2136 section 2.4.3.
58
+ // See [ANY] on how to make RRs without rdata.
56
59
func (u * Msg ) RRsetNotUsed (rr []RR ) {
57
60
if u .Answer == nil {
58
61
u .Answer = make ([]RR , 0 , len (rr ))
@@ -64,6 +67,7 @@ func (u *Msg) RRsetNotUsed(rr []RR) {
64
67
}
65
68
66
69
// Insert creates a dynamic update packet that adds an complete RRset, see RFC 2136 section 2.5.1.
70
+ // See [ANY] on how to make RRs without rdata.
67
71
func (u * Msg ) Insert (rr []RR ) {
68
72
if len (u .Question ) == 0 {
69
73
panic ("dns: empty question section" )
@@ -78,6 +82,7 @@ func (u *Msg) Insert(rr []RR) {
78
82
}
79
83
80
84
// RemoveRRset creates a dynamic update packet that deletes an RRset, see RFC 2136 section 2.5.2.
85
+ // See [ANY] on how to make RRs without rdata.
81
86
func (u * Msg ) RemoveRRset (rr []RR ) {
82
87
if u .Ns == nil {
83
88
u .Ns = make ([]RR , 0 , len (rr ))
@@ -89,6 +94,7 @@ func (u *Msg) RemoveRRset(rr []RR) {
89
94
}
90
95
91
96
// RemoveName creates a dynamic update packet that deletes all RRsets of a name, see RFC 2136 section 2.5.3
97
+ // See [ANY] on how to make RRs without rdata.
92
98
func (u * Msg ) RemoveName (rr []RR ) {
93
99
if u .Ns == nil {
94
100
u .Ns = make ([]RR , 0 , len (rr ))
@@ -99,6 +105,7 @@ func (u *Msg) RemoveName(rr []RR) {
99
105
}
100
106
101
107
// Remove creates a dynamic update packet deletes RR from a RRSset, see RFC 2136 section 2.5.4
108
+ // See [ANY] on how to make RRs without rdata.
102
109
func (u * Msg ) Remove (rr []RR ) {
103
110
if u .Ns == nil {
104
111
u .Ns = make ([]RR , 0 , len (rr ))
0 commit comments