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

BSD no longer supports dig #99

Closed
stevejenkins opened this issue Jul 19, 2016 · 6 comments
Closed

BSD no longer supports dig #99

stevejenkins opened this issue Jul 19, 2016 · 6 comments
Assignees

Comments

@stevejenkins
Copy link
Collaborator

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.

@linkp
Copy link

linkp commented Jul 19, 2016

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.

@jsarenik
Copy link
Collaborator

@linkp @stevejenkins Would this work multi-platform?

I am running it on Mac at the moment:

$ host -t txt jasan.tk | cut -d\" -f2
v=spf1 ip4:104.130.122.0/23 ip4:104.130.96.0/28 ip4:108.177.8.0/21 ip4:166.78.68.0/22 ip4:172.217.0.0/19 ip4:173.193.210.32/27 ip4:173.194.0.0/16 ip4:174.37.226.64/27 ip4:184.173.105.0/24 ip4:184.173.153.0/24 include:spf1.jasan.tk ~all

@jsarenik jsarenik mentioned this issue Aug 22, 2016
@jsarenik
Copy link
Collaborator

@linkp @stevejenkins could you please try the code on jasan/changes and provide me with feed-back? Thanks!

@jsarenik
Copy link
Collaborator

I am going to merge now after it was fixed on OpenBSD.

@jsarenik
Copy link
Collaborator

@stevejenkins if the fix is good for this issue, please close it. Otherwise please let me know what is missing.

@jsarenik jsarenik self-assigned this Sep 7, 2016
@jsarenik
Copy link
Collaborator

jsarenik commented Sep 7, 2016

Closing for now. @stevejenkins feel free to re-open if needed.

@jsarenik jsarenik closed this as completed Sep 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants