Skip to content

Instantly share code, notes, and snippets.

@goneri
Created April 24, 2018 17:37
Show Gist options
  • Save goneri/b75e6ab33574071de756cb5f9efc80d8 to your computer and use it in GitHub Desktop.
Save goneri/b75e6ab33574071de756cb5f9efc80d8 to your computer and use it in GitHub Desktop.
Clean the resolv.conf after a VPN connection
sudo ansible localhost -b -m lineinfile -a "path=/etc/resolv.conf regexp='(^nameserver 100\.|delllab)' state=absent"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment