linkcheck icon indicating copy to clipboard operation
linkcheck copied to clipboard

DNS lookup doesn't find /etc/hosts entries

Open tennox opened this issue 2 years ago • 0 comments

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 :/

tennox avatar Nov 11 '22 12:11 tennox