Hacker News new | ask | show | jobs
by nh2 3022 days ago
Usually you need "nameserver 8.8.8.8", not just the IP. Or is a plain IP accepted as well?
1 comments

:D its funny how many mistakes you can do in a single command:

- yes, I wanted to write to /etc/resolv.conf

- yes, I wanted to write "nameserver 8.8.8.8"

- overwriting the file was intentional as otherwise the old nameserver would still be first.

  echo "nameserver 8.8.8.8" > /etc/resolv.conf
Too bad, I can't edit my initial post and correct the complete nonsense.