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

Fixing the warning --> getssl: this script requires one of: nslookup drill dig host #853

Closed
Aspire-Design-Ltd opened this issue Jul 20, 2024 · 1 comment

Comments

@Aspire-Design-Ltd
Copy link

Hi. I am using a VPS server with debian loaded and I am getting the error getssl: this script requires one of: nslookup drill dig host

Reading the issues list this link suggested a possible solution.

If I include the line nslookup() {busybox nslookup "$@";} in the script file getssl then everything works but my problem is when the script file auto updates I loose the modification.

I tried to add the line into the getssl.cfg files but this was thrown out as an error.

Any ideas?

Thanks. MPC.

@Aspire-Design-Ltd
Copy link
Author

Aspire-Design-Ltd commented Jul 21, 2024

Was able to fix this by having a script getssl_nslookup_fix which exported the new nslookup function.

#!/bin/bash
nslookup() { busybox nslookup "$@" ; }
export nslookup

Then added this to the cron table
0 0 * * 1 BASH_ENV=/root/getssl_nslookup_fix /root/getssl -w /root/.getssl -u -a -q

This checks every Monday week for a valid certificate.

MPC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant