Suse 10 SP3 won't ping hostname | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Suse 10 SP3 won't ping hostname

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-13-2010
kopper kopper is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 30 November 2011, 1:51 PM EST
Posts: 39
Thanks: 14
Thanked 2 Times in 2 Posts
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
Sponsored Links
    #2  
Old 08-16-2010
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 18 April 2014, 5:13 AM EDT
Posts: 6,396
Thanks: 287
Thanked 673 Times in 642 Posts
If you ping the name returned by "nslookup" does it work?


Code:
ping server-host1.devmachines.com



---------- Post updated at 14:53 ---------- Previous update was at 12:57 ----------

And what's in /etc/nsswitch.conf ?
Sponsored Links
    #3  
Old 08-16-2010
kopper kopper is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 30 November 2011, 1:51 PM EST
Posts: 39
Thanks: 14
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by methyl View Post
If you ping the name returned by "nslookup" does it work?


Code:
ping server-host1.devmachines.com



---------- Post updated at 14:53 ---------- Previous update was at 12:57 ----------

And what's in /etc/nsswitch.conf ?
If I ping the name returned by nslookup it is the same thing it won't ping it

nssswitch conf

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

    #4  
Old 08-16-2010
methyl methyl is offline Forum Advisor  
Advisor
 
Join Date: Mar 2008
Last Activity: 18 April 2014, 5:13 AM EDT
Posts: 6,396
Thanks: 287
Thanked 673 Times in 642 Posts
Googling "ipv6-mcastprefix" and "ping" makes me realise that this is a common problem with Suse Linux. Finding a sensible fix amongst the sheer volume of posts is not going to be easy.

Surprised that you haven't had an answer here:
Suse 10 SP3 won't ping hostname


I'm backing off from this one because Suse is not "normal".
Good luck with finding a specialist.
The Following User Says Thank You to methyl For This Useful Post:
kopper (08-16-2010)
Sponsored Links
    #5  
Old 08-16-2010
kopper kopper is offline
Registered User
 
Join Date: Jun 2010
Last Activity: 30 November 2011, 1:51 PM EST
Posts: 39
Thanks: 14
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by methyl View Post
Googling "ipv6-mcastprefix" and "ping" makes me realise that this is a common problem with Suse Linux. Finding a sensible fix amongst the sheer volume of posts is not going to be easy.

Surprised that you haven't had an answer here:
Suse 10 SP3 won't ping hostname


I'm backing off from this one because Suse is not "normal".
Good luck with finding a specialist.

thanks a lot that was the issue
Name Resolution Problems with ".local" Domains

Name Resolution Problems with ".local" Domains

Situation

Applications or system programs likepinghave problems with the resolution of names in a DNS domain ending with .local.

For example, when you try to test the connection to a machine called runner in your organisation's acme.local domain with the command ping runner or ping runner.acme.local, you get an ERROR: unknown host runner.acme.local even though you can look up that host name with dig runner.acme.local, or it takes longer than expected for the pinging to start.

Resolution

Set

mdns off
in the resolver configuration file/etc/host.conf. This option, introduced in SLES9 Service Pack 1, disables the special handling of the top-level domain .local by the resolver: it instructs the resolver not to use multicast DNS, but to use the more common unicast DNS instead.
This solution addresses this specific problem. To prevent similar problems in the future, we recommend using official DNS names for your network, as top-level domains that are currently unassigned may be assigned for special purposes in the future, as has happened with .local.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cannot ping hostname of centos server in windows xp twohis IP Networking 1 06-10-2009 11:04 AM
Ping by hostname lo-lp-kl AIX 5 11-20-2008 11:15 AM
Can't ping using hostname on Solaris 10 alpha123 Solaris 4 10-29-2008 02:05 AM
cannot ping by hostname tlee Solaris 1 03-12-2008 07:03 AM
UX 11iV2 - No ping by hostname netwalker HP-UX 7 08-26-2007 12:52 PM



All times are GMT -4. The time now is 02:59 PM.