linkcheck
linkcheck copied to clipboard
DNS lookup doesn't find /etc/hosts entries
Hi, I'm using linkcheck in a GitLab CI pipeline (great fit for that, thanks :) ), in which the gitlab runner sets the services ip in /etc/hosts
:
172.17.0.3 page a38b629b0x30 runner--azerasq-project-20139812-concurrent-0-d873acae5x916b84-registry.gitlab.com__txlab__liebeskunstwerk-0
Sadly, linkcheck -e http://page
doesn't pick it up
http://page (connection failed)
while curl http://page
works
My current workaround is using this:
- IP="$(getent ahosts page | cut -d' ' -f1 | sort -u)"
- "linkcheck -e http://$IP"
Is it possible that linkcheck can incorporate this? Got no idea about Dart sadly :/