package
Version:
v0.0.76
Opens a new window with list of versions in this module.
Published: Jul 10, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Listen starts the DNS listener
func LoadRecordHandlers(database *gorm.DB)
LoadRecordHandlers loads DNS record handlers from the database
type Answer struct {
RRs []RR `json:"rrs"`
Authoritative bool `json:"authoritative"`
}
ToRRSet converts this answer into a slice of dns.RR
type RR struct {
Name string `json:"name"`
TTL uint32 `json:"ttl"`
Type string `json:"type"`
Value string `json:"value"`
}
ToDNSRR converts the RR to a dns.RR
Source Files
¶
Click to show internal directories.
Click to hide internal directories.