Sam Therapy
1b5d5a3fed
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
41 lines
1.4 KiB
Go
41 lines
1.4 KiB
Go
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package cli
|
|
|
|
import (
|
|
"git.froth.zone/sam/awl/internal/structs"
|
|
"git.froth.zone/sam/awl/logawl"
|
|
)
|
|
|
|
// CLI options structure
|
|
type Options struct {
|
|
Logger *logawl.Logger // Logger
|
|
Port int // DNS port
|
|
Query string // DNS Query
|
|
Class uint16 // DNS Class
|
|
Type uint16 // DNS Type
|
|
IPv4 bool // Force IPv4
|
|
IPv6 bool // Force IPv6
|
|
DNSSEC bool // Enable DNSSEC
|
|
TCP bool // Query with TCP
|
|
TLS bool // Query over TLS
|
|
HTTPS bool // Query over HTTPS
|
|
QUIC bool // Query over QUIC
|
|
Truncate bool // Ignore truncation
|
|
AA bool // Set Authoratative Answer
|
|
AD bool // Set Authenticated Data
|
|
CD bool // Set CD
|
|
QR bool // Set QueRy
|
|
RD bool // Set Recursion Desired
|
|
RA bool // Set Recursion Available
|
|
TC bool // Set TC (TrunCated)
|
|
Z bool // Set Z (Zero)
|
|
Reverse bool // Make reverse query
|
|
Verbosity int // Set logawl verbosity
|
|
Short bool // Short output
|
|
JSON bool // Outout as JSON
|
|
XML bool // Output as XML
|
|
YAML bool // Output at YAML
|
|
|
|
Request structs.Request
|
|
}
|