Skip to content

Instantly share code, notes, and snippets.

@andrewvmail
Forked from lmmendes/Rancher.md
Last active May 10, 2018 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewvmail/667305e5f23c7e425a45e356e202a6c1 to your computer and use it in GitHub Desktop.
Save andrewvmail/667305e5f23c7e425a45e356e202a6c1 to your computer and use it in GitHub Desktop.
1.6

make net=host container inside network have access to rancher internal dns

cp /etc/resolv.conf ~/resolv.tmp
sed -i.bak '1 i\nameserver 169.254.169.250' ~/resolv.tmp
cp -f ~/resolv.tmp /etc/resolv.conf 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment