Domainwatchdog helps you to determine the availability of domains.
go install github.com/joeig/domainwatchdog/cmd/domainwatchdog@latest
$ domainwatchdog -domains "example.com,example.net,example.org,example5928474.de"
status of domain "example.com": "domain is given"
status of domain "example.net": "domain is given"
status of domain "example.org": "domain is given"
domain "example5928474.de" is available: "domain not found"
Domainwatchdog performs a whois lookup and matches the result with commonly used patterns that indicate if a certain domain is given or available.
The exit codes harmonize nicely with Icinga's check plugin API.
Code | Description |
---|---|
0 | All domains are given |
1 | Fatal error |
2 | At least one domain is available1 |
3 | Unknown error |
Footnotes
-
If one domain is available but another one has a different status, exit code 2 has precedence. ↩