Suse 10 SP3 won't ping hostname


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Suse 10 SP3 won't ping hostname
# 1  
Old 08-14-2010
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
# 2  
Old 08-16-2010
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 ?
# 3  
Old 08-16-2010
Quote:
Originally Posted by methyl
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
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.
This User Gave Thanks to methyl For This Post:
# 5  
Old 08-16-2010
Quote:
Originally Posted by methyl
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

DNS problem : ping doesn't recognize hostname

I have vmware on my windows PC ( hostname : acer ). vmware has RHEL 7 ( hostname : rhel7 ) installed recently. RHEL IP configuration IP : 192.168.5.128 Netmask : 255.255.255.0 ssh to rhel7 works from acer using putty resolve.conf cat /etc/resolv.conf nameserver 192.168.5.1 host... (12 Replies)
Discussion started by: hiten.r.chauhan
12 Replies

2. Shell Programming and Scripting

Ping the hostname of many servers using a script

Hi We have some 300 servers in the Data center and some of them are running with AIX and some of them are running with Solaris. I need a script which can be run in one of the server and that script should ping the hostname of all the 300 servers. Also the script should notify if any server is... (9 Replies)
Discussion started by: newtoaixos
9 Replies

3. Solaris

my sun solaris 10 cannot ping and nslookup other server using hostname.

hi.... i have sun solaris 10 server, fedora 10, and Windows Server.. i cant ping my sun solaris 10, fedora 10 and Windows Server using hostname (etc: ping winserver.bengkel2.com), but i can ping all using IPV4 and IPV6 address.. can u give some suggestion to solve my problem or some idea to... (3 Replies)
Discussion started by: izuan_7657
3 Replies

4. UNIX for Advanced & Expert Users

ping by hostname not working

anyone ever seen this problem: I can ping the server by IP address but I can't by hostname. nslookup is working and dns query is ok. # nslookup mwxnsb24 Server: 10.11.49.206 Address: 10.11.49.206#53 Name: mwxnsb24 Address: 10.10.58.175 # ping... (8 Replies)
Discussion started by: linuxgeek
8 Replies

5. UNIX for Dummies Questions & Answers

Suse Ent 10 SP3 won't boot

hi I have Suse Ent 10 SP3 that when I reboot the server sometimes it won't... it behaves like this up and running If I rebooted boots ok so up and running again and If I rebooted again it won't from Hadr Drives What I can check on my boot/grub? why sometimes boots OK and sometimes does... (0 Replies)
Discussion started by: karlochacon
0 Replies

6. AIX

Ping by hostname

Hello everyone I have a partition with a problem with ping. If I do a ping by ip for example ping 1.1.1.1 I got no problem but If I ping by hostname for example ping partition1 take almost a minute to respond me. I have Aix 5.3 and I have another 19 partitions with no problem. The only... (5 Replies)
Discussion started by: lo-lp-kl
5 Replies

7. Solaris

Can't ping using hostname on Solaris 10

I recently installed Solaris 10 on my Sun workstation. I cannot ping using hostname from another computer on the same network. But I can ping using the IP address. Also I can ping other systems using their hostnames. Can anyone give some information regarding how to resolve this issue. (4 Replies)
Discussion started by: alpha123
4 Replies

8. Solaris

cannot ping by hostname

Hi All, My current setup is: 1x Windows Server (Windows 2000 server) 1x Unix Server 2x Windows machine 3x Unix Terminals (Hostnames = A, B and C) Problem The problem iam having is Unix terminal C cannot be ping across by Unix terminal A or B or Unix server by using the hostname. Unix... (1 Reply)
Discussion started by: tlee
1 Replies

9. HP-UX

UX 11iV2 - No ping by hostname

Hi. I just installed the HP-UX 11i V2. I have problems with CDE - it is inoperative (after logon there is a message box: messaging system failure - or something like that, it asks to check /etc/hosts and network settings). nslookup works by hostname and IP, hostname shown the correct... (7 Replies)
Discussion started by: netwalker
7 Replies
Login or Register to Ask a Question