if no nameserver configured in /etc/resolv.conf, send to 127.0.0.1. Closes #1851.