Skip to content

Instantly share code, notes, and snippets.

@makruger
Created August 30, 2016 13:57
Show Gist options
  • Select an option

  • Save makruger/cf3206c76d353f29bd4d29a98c7bf594 to your computer and use it in GitHub Desktop.

Select an option

Save makruger/cf3206c76d353f29bd4d29a98c7bf594 to your computer and use it in GitHub Desktop.

snipped from oi irc on 8/26/16

<Toasterson> is there a cache for /etc/resolv.conf in OI
<xenol> Toasterson: what do you mean?
<xenol> there is nscd
<xenol> but it caches more things
<Toasterson> well i wanted to install a package in a zone but forgot to add dns to resolvconf. after adding dns pkg still insisted that pkg.openindiana.org was unresolvable. even when host utility proved otherwise.
<Toasterson> even a zone reboot did not help
<xenol> have you edited /etc/nsswitch.conf?
<Toasterson> nope
<xenol> cp /etc/nsswitch.{dns,conf} should help
<Toasterson> yep that was the culprit thanks.
<xenol> we should make that default possibly :)
<Toasterson> could help or design a more sane nsswitsch.conf default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment