forked from goss-org/goss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to specify a server on DNS resources (goss-org#170)
* Add ability to specify a server on DNS resources Originally, the DNS resource used the golang net library to perform a net.lookupHost on DNS resourcces. net.lookupHost uses the local DNS resolver which includes a host file lookup (still useful) as well as DNS lookup. The following behaviour has been implemented: Without the server attribute set, net.lookupHost is used which is great for testing out host entries or just general hostname resolution. With a server attribute set the github.com/miekg/dns library is used to query the server (on port 53). * Add the ability to query different types of DNS record * Fix attribute name in docs * Add ability to specify a server on DNS resources Originally, the DNS resource used the golang net library to perform a net.lookupHost on DNS resourcces. net.lookupHost uses the local DNS resolver which includes a host file lookup (still useful) as well as DNS lookup. The following behaviour has been implemented: Without the server attribute set, net.lookupHost is used which is great for testing out host entries or just general hostname resolution. With a server attribute set the github.com/miekg/dns library is used to query the server (on port 53). * Add the ability to query different types of DNS record * Fix attribute name in docs * Ensure only the appropriate DNS record types are returned * update tests to use dns records that won't change * Amend DNS integration tests * Fix formatting with goimports * Add retry logic to DNSLookup * Comment out retry code for testing build on Travis * Retry 3 times before returning error * Fix bug in DNS lookup code resolveable / returning error. * Remove unnecessary code * Amend func name in comment * Minor format changes
- Loading branch information
1 parent
315a741
commit 59c416a
Showing
19 changed files
with
778 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ import: | |
subpackages: | ||
- pkg/mount | ||
- package: github.com/patrickmn/go-cache | ||
- package: github.com/miekg/dns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.