mirror of
https://github.com/Luzifer/dns_check.git
synced 2024-12-21 18:31:17 +00:00
dns_check is a small utility to check major DNS services for records of a FQDN without having to query them one-by-one
.gitignore | ||
.gobuilder.yml | ||
bindata.go | ||
dns.go | ||
History.md | ||
LICENSE | ||
main.go | ||
Makefile | ||
nameservers.yaml | ||
README.md |
![GoBuilder Download](https://badge.luzifer.io/v1/badge?color=5d79b5&title=Download&text=on GoBuilder)
Luzifer / dns_check
dns_check is a small utility to check major DNS services for records of a FQDN without having to query them one-by-one.
Use cases:
- Check whether the IP of your domain is consistent on all services
- Check whether your DNS change is already live for users of those services
- Have an automated check which tells you when something is not right
You can see the current table of nameservers oncluded on the build by browsing the nameservers.yaml file.
Usage
# ./dns_check --help
Usage of ./dns_check:
-a, --assert=[]: Exit with exit code 2 when these DNS entries were not found
--assert-threshold=100: If used with -a fail when not at least N percent of the nameservers had the expected result
-f, --full-scan[=false]: Scan all nameservers included in this build
-q, --quiet[=false]: Do not communicate by text, use only exit codes
-s, --short[=true]: Use short notation (only when using assertion)
--version[=false]: Print version and exit
Use case: I know the IP of my domain and want to check whether all services report that IP
# ./dns_check -a "188.40.126.69" A luzifer.io
[Level3] (209.244.0.3:53) ✓
[Level3] (209.244.0.4:53) ✓
[Verisign] (64.6.64.6:53) ✓
[Verisign] (64.6.65.6:53) ✓
[Google] (8.8.8.8:53) ✓
[Google] (8.8.4.4:53) ✓
[OpenDNS Home] (208.67.222.222:53) ✓
[OpenDNS Home] (208.67.220.220:53) ✓
Use case: Just tell me the IP of any domain
# ./dns_check A luzifer.io
[Google] (8.8.8.8:53)
- 188.40.126.69
[Google] (8.8.4.4:53)
- 188.40.126.69
[Level3] (209.244.0.3:53)
- 188.40.126.69
[Level3] (209.244.0.4:53)
- 188.40.126.69
[Verisign] (64.6.64.6:53)
- 188.40.126.69
[Verisign] (64.6.65.6:53)
- 188.40.126.69
[OpenDNS Home] (208.67.222.222:53)
- 188.40.126.69
[OpenDNS Home] (208.67.220.220:53)
- 188.40.126.69