Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AAAARecord ¶
AAAARecord represents an AAAA (IPv6) DNS record
type CAARecord ¶
type CAARecord struct {
Flag uint8 `json:"flag"` // Critical flag
Tag string `json:"tag"` // Property identifier
Value string `json:"value"` // Property value
}
CAARecord represents a CAA (Certification Authority Authorization) DNS record
type CNAMERecord ¶
type CNAMERecord struct {
Host string `json:"host"` // Target hostname
Zone string `json:"zone"` // Zone of the record
}
CNAMERecord represents a CNAME DNS record
type MXRecord ¶
type MXRecord struct {
Host string `json:"host"` // Mail server hostname
Preference uint16 `json:"preference"` // Priority of the mail server
}
MXRecord represents an MX (Mail Exchange) DNS record
type NSRecord ¶
type NSRecord struct {
Host string `json:"host"` // Name server hostname
}
NSRecord represents an NS (Name Server) DNS record
type Record ¶
type Record struct {
Zone string `db:"zone" json:"zone"` // The DNS zone this record belongs to
Name string `db:"name" json:"name"` // The name of the record (without the zone)
RecordType string `db:"record_type" json:"record_type"` // The type of DNS record (A, AAAA, TXT, etc.)
Ttl uint32 `db:"ttl" json:"ttl"` // Time to live for the record in seconds
Content string `db:"content" json:"content"` // The content of the record in JSON format
}
Record represents a DNS record with its basic properties
type SOARecord ¶
type SOARecord struct {
Ns string `json:"ns"` // Primary name server
MBox string `json:"mbox"` // Email address of the administrator
Refresh uint32 `json:"refresh"` // Refresh interval in seconds
Retry uint32 `json:"retry"` // Retry interval in seconds
Expire uint32 `json:"expire"` // Expiration time in seconds
MinTtl uint32 `json:"minttl"` // Minimum TTL in seconds
}
SOARecord represents an SOA (Start of Authority) DNS record
type SRVRecord ¶
type SRVRecord struct {
Priority uint16 `json:"priority"` // Priority of the service
Weight uint16 `json:"weight"` // Weight for load balancing
Port uint16 `json:"port"` // Port number of the service
Target string `json:"target"` // Target hostname
}
SRVRecord represents an SRV (Service) DNS record
Click to show internal directories.
Click to hide internal directories.