LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2010, 10:16 PM   #1
karlochacon
Member
 
Registered: Dec 2006
Posts: 109

Rep: Reputation: 17
Suse 10 SP3 won't ping hostname


hi guys

I got something I haven't been able to fix
I configure a Linux Suse 10 box, added static IP, DNS (resolv), gateway (routes) but I am not able to ping other servers by name but nslookup works and the server can navigate on internet
check below
the problematic server is server-host20

Code:
# ping server-host1
ping: unknown host server-host1

# nslookup
> server-host1
Server:         192.168.1.2
Address:        192.168.1.2#53

Name:   server-host1.devmachines.com
Address: 192.168.1.20
other server can ping that server by name just fine

all my network information
by the way my server can ping DNS server by name just ok and as you see nslookup works

Code:
cat /etc/hosts
127.0.0.1       localhost.dominio.local localhost

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         ipv6-localnet

ff00::0         ipv6-mcastprefix
ff02::1         ipv6-allnodes
ff02::2         ipv6-allrouters
ff02::3         ipv6-allhosts
192.168.1.101   server-host20.devmachines.com

---------------------
#cat /etc/resolv.conf
nameserver 192.168.1.2
nameserver 192.168.1.3
search devmachines.com


# cat routes
192.168.1.15 - -

-------------------------------
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth3
link-local      *               255.255.0.0     U     0      0        0 eth3
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.1.15    0.0.0.0         UG    0      0        0 eth3
any idea guys?

thanks a lot
 
Old 08-13-2010, 10:34 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
/etc/nsswitch.conf

Code:
hosts: files dns
 
Old 08-13-2010, 11:05 PM   #3
karlochacon
Member
 
Registered: Dec 2006
Posts: 109

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by AlucardZero View Post
/etc/nsswitch.conf

Code:
hosts: files dns
it is configured as you say

Code:
# passwd: files nis
# shadow: files nis
# group:  files nis

passwd: compat
group:  compat

hosts:          files dns
networks:       files dns

services:       files
protocols:      files
rpc:            files
ethers:         files
netmasks:       files
netgroup:       files nis
publickey:      files

bootparams:     files
automount:      files nis
aliases:        files
 
Old 08-16-2010, 11:07 AM   #4
karlochacon
Member
 
Registered: Dec 2006
Posts: 109

Original Poster
Rep: Reputation: 17
any other idea guys?
 
Old 12-02-2011, 06:21 AM   #5
Gaidheal
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Sorry to wake the dead, but I had this exact same issue after patching from SuSE SLES 10 SP2 to SP3 and had one server out of 50 that would *not* resolve, even after a complete redo of the network info through YaST2.

Turns out the /etc/resolv.conf file had the format listed below:

Quote:
Originally Posted by karlochacon View Post
hi guys

Code:
---------------------
#cat /etc/resolv.conf
nameserver 192.168.1.2
nameserver 192.168.1.3
search devmachines.com
All my other servers (that worked) had the following format:
domain devmachines.com
nameserver 192.168.1.2
nameserver 192.168.1.3

Switched it on the problematic server, flushed the DNS cache and it worked.

Hope this helps someone.

Jamie
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC13 install can ping by hostname, ssh by hostname fails jeffk42 Linux - Networking 4 11-14-2011 11:27 AM
Suse ent 10 SP3 sometimes won't boot kopper27 Linux - Newbie 5 08-10-2010 04:28 PM
installing SP3 on SuSE 9 sunilvadranapu SUSE / openSUSE 0 04-09-2008 02:47 AM
SuSE can't ping by hostname jschwartzman Linux - Networking 10 03-14-2005 03:29 PM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration