Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nsswitch.conf missing?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Henry78
Apprentice
Apprentice


Joined: 12 Jul 2004
Posts: 186
Location: Austria

PostPosted: Thu Jul 21, 2005 12:34 pm    Post subject: nsswitch.conf missing? Reply with quote

hey there people!

recently i installed two gentoo-systems following the handbook (2005.0) closely. so i copied over
Code:
/etc/resolv.conf
and edited
Code:
/etc/hosts
as described in the handbook.

now the issue was, hosts from /etc/hosts weren't resolved, if there were nameserver entries in /etc/resolv.conf. if /etc/resolv.conf was empty, everything was fine and my hosts got resolved.

A resolution (thanks to the linux-guru at work) was to create
Code:
/etc/nsswitch.conf
and adding this line
Code:
hosts: files dns
.

As i missed a /etc/nsswitch.conf (resp. /etc/host.conf) and it isn't mentioned in the handbook i wonder if i'm the only one running into this problem. or did i miss something?

--
kind regards,
Henry78
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Thu Jul 21, 2005 1:18 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads in favor of https://forums.gentoo.org/viewtopic-t-351243.html.

hosts: files dns is set by default in /etc/nsswitch.conf:

Code:

# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nsswitch.conf,v 1.1 2005/05/17 00:52:41 vapier Exp $

passwd:      compat
shadow:      compat
group:       compat

# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis

hosts:       files dns
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files
bootparams:  files

automount:   files
aliases:     files
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum