Skip to content

Instantly share code, notes, and snippets.

@mischief
Created July 13, 2015 18:44
Show Gist options
  • Select an option

  • Save mischief/f94b7b5994854c07824f to your computer and use it in GitHub Desktop.

Select an option

Save mischief/f94b7b5994854c07824f to your computer and use it in GitHub Desktop.
enable resolved dns caching on coreos (run as root)
#!/bin/sh -e
cp /etc/nsswitch.conf /etc/nsswitch.conf.new
mv /etc/nsswitch.conf.new /etc/nsswitch.conf
sed -ri "s/(^hosts: files usrfiles)/\1 resolve/" nsswitch.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment