Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: small errors #41

Merged
merged 1 commit into from
Jan 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tko-subs.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func panicOnError(e error) {
}
}

//showUsageOnError function as a generic check for error when panic is too agressive
//showUsageOnError function as a generic check for error when panic is too aggressive
func showUsageOnError(e error) {
if e != nil {
fmt.Printf("Error: %s\n", e)
Expand Down Expand Up @@ -319,9 +319,9 @@ func resolves(domain string) (bool, error) {

// getCnameForDomain function to lookup the last CNAME record of a domain
//
// For exmaple, if you have a DNS chain that looks like this:
// For example, if you have a DNS chain that looks like this:
// foo.example.com -> bar.example.com -> baz.example.com -> 1.2.3.4
// getCnameForDomain will retrun baz.example.com
// getCnameForDomain will return baz.example.com
// Doing CNAME lookups using GOLANG's net package or for that matter just doing a host on a domain
// does not necessarily let us know about any dead DNS records. So, we need to read the raw DNS response
// to properly figure out if there are any dead DNS records
Expand Down