Documentation
¶
Overview ¶
Package models the distributed DNS database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database models the global DNS database.
func (*Database) AddAddresses ¶
AddAddresses adds A/AAAA records mapping the given domainNames to the given IPv4/IPv6 addresses.
This method IS NOT goroutine safe.
func (*Database) Handle ¶
func (dd *Database) Handle(rw dnscoretest.ResponseWriter, rawQuery []byte)
Handler implements [dnsHandler] using [*dnsDatabase].
This method is goroutine safe as long as one does not modify the database while handling queries.
Click to show internal directories.
Click to hide internal directories.