Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Aug 30, 2009 4:49 am 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
hy!
suddenly fetchmail cant resolve localhost anymore, so i tried ping localhost and i got
"ping: unknown host localhost"
apart from configuring apache and running out of diskspace yesterday (fixed that), i cant remember to have changed anything related to my network config. resolv.conf has this in it:

Code:
 ; generated by /sbin/dhclient-script
search members.linode.com
nameserver 97.107.133.4
nameserver 207.192.69.4
nameserver 207.192.69.5


an etc/hosts is like this:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost localhost.localdomain
::1     localhost6.localdomain6 localhost6



can anyone tell me what i could have messed up, since the setup worked fine until today? my fqdn resolves fine from outside and from the console, its just localhost not resolving anymore i guess.
thx!


Top
   
 Post subject:
PostPosted: Sun Aug 30, 2009 9:35 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Check /etc/nsswitch.conf for the hosts entry
Code:
hosts:      files dns

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Sun Aug 30, 2009 1:41 pm 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
Thanks a lot! It works again now. nsswitch.conf was empty and dated September 24, 2004, very strange.. Have you got any idea what could have happened?


Top
   
 Post subject:
PostPosted: Sun Aug 30, 2009 3:02 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
How did you run out of disk space? If you were restoring files from a backup (for example) then it could have created zero length files. Patching the system _might_ also do it if you ran out of space during the patching. Etc etc etc.

Note that the file time reported by "ls -l" doesn't necessarily mean the last time the file was changed. Normally "ls -lc" would help, but since you've now changed the file that information is missing.

There are plenty more lines in a normal nsswitch.conf; mine has the following:
Code:
passwd:     files
shadow:     files
group:      files
hosts:      files dns
bootparams: files
ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
netgroup:   files
publickey:  files
automount:  files
aliases:    files
.
Some of those may be defaults so aren't _needed_

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Tue Sep 01, 2009 1:40 am 
Offline
Junior Member

Joined: Tue Jan 01, 2008 11:31 am
Posts: 38
that may be the cause - i did a "yum update" and it ran out of disk-space while installing files. another start of yum update then finished properly. besides that i only configured apache. all server-processes run normally now, do you think i need some more research if anything was corrupted? thanks!


Top
   
 Post subject:
PostPosted: Thu Sep 03, 2009 10:12 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Can't hurt to look for zero length files and if any of them look important then restore them from the backups you do make... :-)

find / -size 0

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group