Skip to content

Commit

Permalink
Fix some minor spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dbready authored and mr-karan committed Dec 18, 2020
1 parent 90fee87 commit 99e53d5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions cmd/doggo/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion cmd/doggo/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 99e53d5

Please sign in to comment.