From 99e53d5e0ac39d5a841be0f936e50a1654e1a323 Mon Sep 17 00:00:00 2001 From: Damien Ready Date: Fri, 18 Dec 2020 09:37:02 -0600 Subject: [PATCH] Fix some minor spelling errors --- README.md | 6 +++--- TODO.md | 6 +++--- cmd/doggo/cli.go | 4 ++-- cmd/doggo/lookup.go | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 78a4aae..283ee7f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ **doggo** is a modern command-line DNS client (like _dig_) written in Golang. It outputs information in a neat concise manner and supports protocols like DoH, DoT as well. -It's totally inspired from [dog](https://github.com/ogham/dog/) which is written in Rust. I wanted to add some features to it but since I don't know Rust, I found it as a nice oppurtunity +It's totally inspired from [dog](https://github.com/ogham/dog/) which is written in Rust. I wanted to add some features to it but since I don't know Rust, I found it as a nice opportunity to experiment with writing a DNS Client from scratch in `Go` myself. Hence the name `dog` +`go` => **doggo**. ## Features @@ -63,7 +63,7 @@ $ sudo snap install doggo ``` **NOTE**: Since the [confinement](https://snapcraft.io/docs/snap-confinement) mode is strict as of now, it cannot access your host's `/etc/resolv.conf`. -I'll be making a request in the Snap forums soon so that it can be manually reviewed and allowed to use `--classic`. Until then, please specify a namesever manually +I'll be making a request in the Snap forums soon so that it can be manually reviewed and allowed to use `--classic`. Until then, please specify a nameserver manually if using `snap`. ### From Source @@ -200,7 +200,7 @@ URL scheme of the server is used to identify which resolver to use for lookups. ### Resolver Options ``` - --ndots=INT Specify ndots parameter. Takes value from /etc/resolv.conf if using the system namesever or 1 otherwise. + --ndots=INT Specify ndots parameter. Takes value from /etc/resolv.conf if using the system nameserver or 1 otherwise. --search Use the search list defined in resolv.conf. Defaults to true. Set --search=false to disable search list. --timeout Specify timeout (in seconds) for the resolver to return a response. -4 --ipv4 Use IPv4 only. diff --git a/TODO.md b/TODO.md index c8cc644..c9835af 100644 --- a/TODO.md +++ b/TODO.md @@ -37,7 +37,7 @@ - [x] Add client transport options - [x] Fix an issue while loading free form args, where the same records are being added twice - [x] Remove urfave/cli in favour of `pflag + koanf` -- [x] Flags - Remove uneeded ones +- [x] Flags - Remove unneeded ones ## Documentation - [x] README @@ -53,10 +53,10 @@ --- # Future Release -- [ ] Support obscure protocal tweaks in `dig` +- [ ] Support obscure protocol tweaks in `dig` - [ ] `digfile` - [ ] Support more DNS Record Types -- [ ] Error on NXDomain (Realted upstream [bug](https://github.com/miekg/dns/issues/1198)) +- [ ] Error on NXDomain (Related upstream [bug](https://github.com/miekg/dns/issues/1198)) - [ ] Shell completions - [ ] bash - [ ] zsh diff --git a/cmd/doggo/cli.go b/cmd/doggo/cli.go index f2c2603..d8a70dd 100644 --- a/cmd/doggo/cli.go +++ b/cmd/doggo/cli.go @@ -39,8 +39,8 @@ func main() { // Resolver Options f.Int("timeout", 5, "Sets the timeout for a query to T seconds. The default timeout is 5 seconds.") - f.Bool("search", true, "Use the search list provided in resolv.conf. It sets the `ndots` parameter as well unless overriden by `ndots` flag.") - f.Int("ndots", 0, "Specify the ndots paramter. Default value is taken from resolv.conf and fallbacks to 1 if ndots statement is missing in resolv.conf") + f.Bool("search", true, "Use the search list provided in resolv.conf. It sets the `ndots` parameter as well unless overridden by `ndots` flag.") + f.Int("ndots", 0, "Specify the ndots parameter. Default value is taken from resolv.conf and fallbacks to 1 if ndots statement is missing in resolv.conf") f.BoolP("ipv4", "4", false, "Use IPv4 only") f.BoolP("ipv6", "6", false, "Use IPv6 only") diff --git a/cmd/doggo/lookup.go b/cmd/doggo/lookup.go index 6c124e1..bcb98b4 100644 --- a/cmd/doggo/lookup.go +++ b/cmd/doggo/lookup.go @@ -57,7 +57,7 @@ func (hub *Hub) prepareQuestions() ([]dns.Question, error) { hub.Logger.WithFields(logrus.Fields{ "domain": d, "ndots": hub.QueryFlags.Ndots, - }).Debug("Attmepting to resolve") + }).Debug("Attempting to resolve") question := dns.Question{ Name: d, }