[dns] don't barf when containers are started w/o docker networking

Closes #240.