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

use nslookup or curl instead of ping in check-host.sh #82

Open
mlasak opened this issue Feb 28, 2024 · 1 comment
Open

use nslookup or curl instead of ping in check-host.sh #82

mlasak opened this issue Feb 28, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request Release V2

Comments

@mlasak
Copy link
Collaborator

mlasak commented Feb 28, 2024

in some environments icmp is not routed and so ping might not work. however, host is reachable.
suggesting to use DNS lookup in case domain name was specifed or use curl to a known ressource on HTTP(s) port

@mlasak mlasak changed the title use nslookup instead of ping in check-host.sh use nslookup or curl instead of ping in check-host.sh Feb 28, 2024
@jpiesing jpiesing added enhancement New feature or request Release V2 labels Mar 5, 2024
@FritzHeiden
Copy link
Collaborator

Neither nslookup nor curl are suitable in this case: we need to check if IP is reachable, nslookup doesn't resolve local network IPs and curl requires a server to respond, which is not running at the moment the script runs.

To avoid blocking the server startup even though it is reachable the check-host.sh script now reports a warning which lets the server startup continue. #107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Release V2
Projects
None yet
Development

No branches or pull requests

3 participants