-
Notifications
You must be signed in to change notification settings - Fork 66
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
BSD no longer supports dig #99
Comments
I'm running unbound on some OpenBSD (5.9) hosts, so I checked for drill, and while it is an installable package, it wasn't there by default, even though unbound is installed. (NSD is also present.) I did find the dig command and I don't see any installed packages that would have added it, but that doesn't mean it is still part of the base system. If you move to incorporate drill into the script, it may be helpful to throw an error suggesting the installation of drill if unbound is found and drill is not present. |
@linkp @stevejenkins Would this work multi-platform? I am running it on Mac at the moment:
|
@linkp @stevejenkins could you please try the code on |
I am going to merge now after it was fixed on OpenBSD. |
@stevejenkins if the fix is good for this issue, please close it. Otherwise please let me know what is missing. |
Closing for now. @stevejenkins feel free to re-open if needed. |
Per:
https://www.freebsd.org/releases/10.0R/relnotes.html
'dig' is no longer in BSD-based operating systems. BIND (which provides dig) was removed and replaced with unbound.
This change was made a couple years ago, but is starting to affect more systems as they upgrade to systems that rely on unbound instead of BIND.
The replacement tool in unbound is 'drill.' But the 'host' command exists in both BIND and unbound. There's no rush on this, but it might be interesting/useful to see if host could be used in place of dig. And if not, perhaps explore whether drill support could be provided in despf.sh on systems running unbound instead of BIND.
FWIW, I run unbound on a few systems... and find it superior to BIND.
The text was updated successfully, but these errors were encountered: