feat: add tls config for dot lookups
Ref https://github.com/mr-karan/doggo/issues/29
This commit is contained in:
parent
0ce04d0c13
commit
53f7b70af4
7 changed files with 83 additions and 78 deletions
|
@ -22,21 +22,23 @@ const (
|
|||
// QueryFlags is used store the query params
|
||||
// supplied by the user.
|
||||
type QueryFlags struct {
|
||||
QNames []string `koanf:"query" json:"query"`
|
||||
QTypes []string `koanf:"type" json:"type"`
|
||||
QClasses []string `koanf:"class" json:"class"`
|
||||
Nameservers []string `koanf:"nameservers" json:"nameservers"`
|
||||
UseIPv4 bool `koanf:"ipv4" json:"ipv4"`
|
||||
UseIPv6 bool `koanf:"ipv6" json:"ipv6"`
|
||||
Ndots int `koanf:"ndots" json:"ndots"`
|
||||
Timeout time.Duration `koanf:"timeout" json:"timeout"`
|
||||
Color bool `koanf:"color" json:"-"`
|
||||
DisplayTimeTaken bool `koanf:"time" json:"-"`
|
||||
ShowJSON bool `koanf:"json" json:"-"`
|
||||
ShortOutput bool `koanf:"short" short:"-"`
|
||||
UseSearchList bool `koanf:"search" json:"-"`
|
||||
ReverseLookup bool `koanf:"reverse" reverse:"-"`
|
||||
Strategy string `koanf:"strategy" strategy:"-"`
|
||||
QNames []string `koanf:"query" json:"query"`
|
||||
QTypes []string `koanf:"type" json:"type"`
|
||||
QClasses []string `koanf:"class" json:"class"`
|
||||
Nameservers []string `koanf:"nameservers" json:"nameservers"`
|
||||
UseIPv4 bool `koanf:"ipv4" json:"ipv4"`
|
||||
UseIPv6 bool `koanf:"ipv6" json:"ipv6"`
|
||||
Ndots int `koanf:"ndots" json:"ndots"`
|
||||
Timeout time.Duration `koanf:"timeout" json:"timeout"`
|
||||
Color bool `koanf:"color" json:"-"`
|
||||
DisplayTimeTaken bool `koanf:"time" json:"-"`
|
||||
ShowJSON bool `koanf:"json" json:"-"`
|
||||
ShortOutput bool `koanf:"short" short:"-"`
|
||||
UseSearchList bool `koanf:"search" json:"-"`
|
||||
ReverseLookup bool `koanf:"reverse" reverse:"-"`
|
||||
Strategy string `koanf:"strategy" strategy:"-"`
|
||||
InsecureSkipVerify bool `koanf:"skip-hostname-verification" skip-hostname-verification:"-"`
|
||||
TLSHostname string `koanf:"tls-hostname" tls-hostname:"-"`
|
||||
}
|
||||
|
||||
// Nameserver represents the type of Nameserver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue