Add minimal DNS resolver to stage1

Add a minimal DNS resolver (built for both i386 and amd64) so
that we can stop using the dns-cgi hack