What are the contents of /etc/resolv.conf ?
127.0.0.1 ::1
That's the problem. The format of resolv.conf requires the string "nameserver" before each ip. Try something like this:
# Up to three nameserver lines are allowed. nameserver 127.0.0.1 nameserver ::1 #nameserver <optional backup server>
--Sean