Modules
Macros
- Create a new
Charactersfrom a byte slice. The first byte of the slice will be the length of the sequence. Only insert the characters, not the length. The maximum length of the sequence is 255. This macro accepts an expression as input, which is evaluated at compile time. If you want to create aCharactersfrom a byte slice of unknown length, use theCharacters::newfunction instead. - Create a new
DnsNamefrom a byte slice. The domain name must be dot separated. The constructor will check convert the domain name to DNS wire format and check if it is valid. This macro accepts an expression as input, which is evaluated at compile time. If you want to create aDnsNamefrom a byte slice of unknown length, use theDnsName::newfunction instead. - Create a new
Txtfrom byte slices. The data will be concatenated and converted to DNS wire format. The maximum length of a single text value is 255 bytes. This macro accepts an expression as input, which is evaluated at compile time. If you want to create aTxtfrom byte slices of unknown length, use theTxt::newfunction instead.
Structs
- A DNS message.