Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: no such host

This error occurs intermittently when building from dockerfiles that have worked for years.