feat: RFC-8427 #171

Merged
sam merged 16 commits from RFC-8427 into master 2022-12-27 20:07:09 +00:00
Showing only changes of commit 55cd300f4c - Show all commits

View file

@ -19,11 +19,6 @@ var (
)
func (message *Message) displayQuestion(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error {
var (
name string
err error
)
for _, question := range msg.Question {
if opts.Display.UcodeTranslate {
name, err = idna.ToUnicode(question.Name)
@ -82,7 +77,6 @@ func (message *Message) displayAnswers(msg *dns.Msg, opts *util.Options, opt *dn
}
func (message *Message) displayAuthority(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error {
for _, ns := range msg.Ns {
temp := strings.Split(ns.String(), "\t")
@ -120,7 +114,6 @@ func (message *Message) displayAuthority(msg *dns.Msg, opts *util.Options, opt *
}
func (message *Message) displayAdditional(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error {
for _, additional := range msg.Extra {
if additional.Header().Rrtype == dns.StringToType["OPT"] {
continue