net: fix CNAME resolving on Windows

Fixes issue 8492

LGTM=alex.brainman
R=golang-codereviews, alex.brainman
CC=golang-codereviews
https://codereview.appspot.com/122200043

Committer: Alex Brainman <alex.brainman@gmail.com>