sed to replace dns in resolv.conf

By polfilm,

  Filed under: Bash, Linux, Ubuntu
  Comments: None

sed -i '
  s/10\.0\.0\.1/8.8.8.8/
  s/10\.0\.0\.2/8.8.4.4/
' /etc/resolv.conf

Be the first to write a comment.

Your feedback

You must be logged in to post a comment.