Versions in this module Expand all Collapse all v0 v0.4.0 Dec 23, 2020 Changes in this version + const DomainPattern + func Init() (err error) + type Query struct + AA bool + AD bool + ANCount uint16 + ARCount uint16 + CD bool + ID uint16 + NSCount uint16 + Opcode uint8 + QDCount uint16 + QR bool + Questions []Question + RA bool + RD bool + ResponseCode uint8 + TC bool + Z bool + func DecodeQuery(payload []byte) (Query, error) + func (q Query) Encode() ([]byte, error) + func (q Query) Write(writer io.Writer) (int, error) + type Question struct + Class uint16 + Domain string + Type uint16 + func DecodeQuestion(raw []byte) (Question, error) + func (q Question) Write(writer io.Writer) (int, error) + type Response Query