Filing this based on https://lists.wikimedia.org/pipermail/cloud/2019-June/000720.html
Essentially, this works on about any machine:
curl 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=12345'
but on toolforge we get
curl: (6) Could not resolve host: eutils.ncbi.nlm.nih.gov
This website (aka PubMed) is quite essential to some of our tools, e.g. citation-template-filling and sourcemd.