Check /etc/resolv.conf every time for 127.* content

A continuation of @rhatdan's PR #8455, closes #8425.
updated with t.Error, I don't think it needs to go before because it won't write the file on error afaik