/
rdata_minfo.go
33 lines (28 loc) · 1.2 KB
/
rdata_minfo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package dns
import (
"fmt"
)
// RDataMINFO define a resource record for type MINFO.
type RDataMINFO struct {
// A <domain-name> which specifies a mailbox which is responsible for
// the mailing list or mailbox. If this domain name names the root,
// the owner of the MINFO RR is responsible for itself. Note that
// many existing mailing lists use a mailbox X-request for the RMAILBX
// field of mailing list X, e.g., Msgroup-request for Msgroup. This
// field provides a more general mechanism.
RMailBox string
// A <domain-name> which specifies a mailbox which is to receive error
// messages related to the mailing list or mailbox specified by the
// owner of the MINFO RR (similar to the ERRORS-TO: field which has
// been proposed). If this domain name names the root, errors should
// be returned to the sender of the message.
EmailBox string
}
// String return readable representation of MINFO record.
func (minfo *RDataMINFO) String() string {
return fmt.Sprintf("{RMailBox:%s EmailBox:%s}", minfo.RMailBox,
minfo.EmailBox)
}