HOWTO: full dns support

From Sabayon Wiki
Revision as of 15:28, 10 November 2012 by Hatalar205 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
i18n: en tr

This for those who want to get the whole nameresolving comfort running in Sabayon.


1. edit the

<syntaxhighlight lang="
 /etc/nssswitch.conf 
" enclose="none"></syntaxhighlight>

and change the line

<syntaxhighlight lang="
 hosts:       files mdns4_minimal dns mdns4 
" enclose="none"></syntaxhighlight>

to

<syntaxhighlight lang="
 hosts:       files mdns4_minimal [NOTFOUND=return] dns mdns4   wins 
" enclose="none"></syntaxhighlight>


now it is possible to ping hostnames, but to give all programs the effort of using dns names (for example realvnc) you need to

2. open a terminal and become su

3. run these two commands

<syntaxhighlight lang="
 rc-update add nscd default 
" enclose="none"></syntaxhighlight>
<syntaxhighlight lang="
 /etc/init.d/nscd start 
" enclose="none"></syntaxhighlight>


and enjoy this usability

greetings

maulbongo