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

Ne récupère plus l'IP public #2

Open
mnett0 opened this issue Mar 15, 2021 · 0 comments
Open

Ne récupère plus l'IP public #2

mnett0 opened this issue Mar 15, 2021 · 0 comments

Comments

@mnett0
Copy link

mnett0 commented Mar 15, 2021

Le script actuel retourne l'erreur : "address n'est pas une ip"

PUBLIC_IP=$(host myip.opendns.com resolver1.opendns.com | grep "myip.opendns.com has" | awk '{print $4}')

à remplacer par :

PUBLIC_IP=$(host -4 myip.opendns.com resolver1.opendns.com | grep "myip.opendns.com has address" | awk '{print $4}')

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