net: do not require newline at end of resolv.conf

Fixes #686.

R=adg
CC=golang-dev
https://golang.org/cl/961046
diff --git a/src/pkg/net/parse.go b/src/pkg/net/parse.go
index a7dcb35..ff980f4 100644
--- a/src/pkg/net/parse.go
+++ b/src/pkg/net/parse.go
@@ -35,6 +35,11 @@
 			return
 		}
 	}
+	if len(f.data) > 0 {
+		s = string(data)
+		f.data = nil
+		ok = true
+	}
 	return
 }