diff --git a/anchor.go b/anchor.go index 72d4a4f3..d23ae8a6 100644 --- a/anchor.go +++ b/anchor.go @@ -108,7 +108,7 @@ var ( ` // 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 . " ; configuration file of BIND domain name servers). diff --git a/edns.go b/edns.go index 159fd7ef..e6470d2f 100644 --- a/edns.go +++ b/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) diff --git a/nsecx.go b/nsecx.go index 7df9565a..314fdc7e 100644 --- a/nsecx.go +++ b/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 } diff --git a/tsig.go b/tsig.go index 96c060bf..74e7a080 100644 --- a/tsig.go +++ b/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==": diff --git a/update.go b/update.go index 93de460a..0fb549f6 100644 --- a/update.go +++ b/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) {