Created
July 13, 2015 18:44
-
-
Save mischief/f94b7b5994854c07824f to your computer and use it in GitHub Desktop.
enable resolved dns caching on coreos (run as root)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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