Further minimize the lib
This commit is contained in:
parent
a8b3c8139b
commit
1687a13438
|
@ -108,7 +108,7 @@ var (
|
|||
</KeyDigest>
|
||||
</TrustAnchor>`
|
||||
// This is the root zone used for priming a resolver.
|
||||
NamedRoot = `; This file holds the information on root name servers needed to
|
||||
namedRoot = `; This file holds the information on root name servers needed to
|
||||
; initialize cache of Internet domain name servers
|
||||
; (e.g. reference this file in the "cache . <file>"
|
||||
; configuration file of BIND domain name servers).
|
||||
|
|
12
edns.go
12
edns.go
|
@ -1,17 +1,7 @@
|
|||
// EDNS0
|
||||
//
|
||||
// EDNS0 is an extension mechanism for the DNS defined in RFC 2671. It defines a
|
||||
// standard RR type, the OPT RR, which is then completely abused. The normal RR header is
|
||||
// redefined as:
|
||||
//
|
||||
// Name string "domain-name" // should always be "."
|
||||
// Opt uint16 // was type, but is always TypeOPT
|
||||
// UDPSize uint16 // was class
|
||||
// ExtendedRcode uint8 // was TTL
|
||||
// Version uint8 // was TTL
|
||||
// Z uint16 // was TTL (all flags should be put here)
|
||||
// Rdlength uint16 // not changed
|
||||
//
|
||||
// standard RR type, the OPT RR, which is then completely abused.
|
||||
// Basic use pattern for creating an (empty) OPT RR:
|
||||
//
|
||||
// o := new(dns.RR_OPT)
|
||||
|
|
8
nsecx.go
8
nsecx.go
|
@ -9,8 +9,8 @@ import (
|
|||
|
||||
const (
|
||||
_ = iota
|
||||
NSEC3_NXDOMAIN
|
||||
NSEC3_NODATA
|
||||
_NSEC3_NXDOMAIN
|
||||
_NSEC3_NODATA
|
||||
)
|
||||
|
||||
// A Denialer is a record that performs denial
|
||||
|
@ -226,7 +226,7 @@ func (m *Msg) Nsec3Verify(q Question) (int, error) {
|
|||
return 0, ErrDenialHdr
|
||||
}
|
||||
|
||||
return NSEC3_NXDOMAIN, nil
|
||||
return _NSEC3_NXDOMAIN, nil
|
||||
}
|
||||
return 0, nil
|
||||
NoData:
|
||||
|
@ -258,5 +258,5 @@ NoData:
|
|||
if m.MsgHdr.Rcode == RcodeNameError {
|
||||
return 0, ErrDenialHdr
|
||||
}
|
||||
return NSEC3_NODATA, nil
|
||||
return _NSEC3_NODATA, nil
|
||||
}
|
||||
|
|
2
tsig.go
2
tsig.go
|
@ -1,7 +1,7 @@
|
|||
// TRANSACTION SIGNATURE (TSIG)
|
||||
//
|
||||
// An TSIG or transaction signature adds a HMAC TSIG record to each message sent.
|
||||
// The supported algorithm include: HmacMD5, HmacSHA1 and HmacSHA256.
|
||||
// The supported algorithms include: HmacMD5, HmacSHA1 and HmacSHA256.
|
||||
//
|
||||
// Basic use pattern when querying with a TSIG name "axfr." (note that these key names
|
||||
// must be fully qualified) and the base64 secret "so6ZGir4GPAqINNh9U5c3A==":
|
||||
|
|
12
update.go
12
update.go
|
@ -35,18 +35,6 @@
|
|||
//
|
||||
package dns
|
||||
|
||||
// The table from RFC 2136 supplemented with the Go DNS function.
|
||||
//
|
||||
// 3.2.4 - Table Of Metavalues Used In Prerequisite Section
|
||||
//
|
||||
// CLASS TYPE RDATA Meaning Function
|
||||
// ---------------------------------------------------------------
|
||||
// ANY ANY empty Name is in use NameUsed
|
||||
// ANY rrset empty RRset exists (value indep) RRsetUsedNoRdata
|
||||
// NONE ANY empty Name is not in use NameNotUsed
|
||||
// NONE rrset empty RRset does not exist RRsetNotUsed
|
||||
// zone rrset rr RRset exists (value dep) RRsetUsedRdata
|
||||
|
||||
// NameUsed sets the RRs in the prereq section to
|
||||
// "Name is in use" RRs. RFC 2136 section 2.4.4.
|
||||
func (u *Msg) NameUsed(rr []RR) {
|
||||
|
|
Loading…
Reference in New Issue