Documentation ¶
Index ¶
- func AddPTRRecord(ip string, domain string, ttl uint32, expires int64) error
- func GetHeader(name string, rtype uint16, ttl uint32) dns.RR_Header
- func GetKey(domain string, rtype uint16) (r string, e error)
- func GetRecord(domain string, rtype uint16) (dns.RR, error)
- func HandleDNSRequest(w dns.ResponseWriter, r *dns.Msg)
- func RemoveExpired()
- func Serve(ip string, port int) error
- func UpdateRecord(r dns.RR, q *dns.Question) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPTRRecord ¶
AddPTRRecord for the specified domain and ip address
func HandleDNSRequest ¶
func HandleDNSRequest(w dns.ResponseWriter, r *dns.Msg)
HandleDNSRequest handle incoming requests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.