Re: ping hostname failed while ping IP_Address working Options
- From: "Muhammad Salman" <salmanfaheem@xxxxxxxxx>
- Date: Fri, 10 Aug 2007 07:43:37 +0300
BismillahirRehmanirRahim
Hi All,
Just wanted to update you all about the status of this problem.
Alhumdolillaah, its working fine now.
All i did is to add the /etc/inet/hosts files entries in /etc/inet/ipnodes.
previously ipnodes file was as below:
------------------------------------------------
[root@prod-01 /]# more /etc/inet/ipnodes
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
------------------------------------------------
I checked the ipnodes of other SunFire Servers they are same as above.
and they are able to ping other hosts mentioned in /etc/hosts using their
hostname.
So Still i am not sure what was the actual problem. The O/s is Solaris 9:
SunOS prod-01 5.9 Generic_118558-28
The /etc/nsswitch.conf file is as follow:
------------------------------------------------------------------------------
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
ipnodes: files
-----------------------------------------------------------------------------
The output of getent hosts host_name was okay.
If anyone get some clue regarding this issue then let me know.
Thanks for all who tried to help me out. i really appreciate them.
Your Junior Admin
Salman
On 8/3/07, Andy Bird <Andy.Bird@xxxxxxxxxxx> wrote:
_______________________________________________
Hi Muhammad,
Hosts file should be mytest 10.54.23.1, no = sign
it sees that host as hostname=mytest try hosts file like
mytest 10.54.23.1
hostname2 10.54.23.1
then ping mytest should work.
Andy Bird.
BismillahirRehmanirRahim"Muhammad Salman" <salmanfaheem@xxxxxxxxx> 02/08/2007 17:54 >>>
Hi Admins,
i am facing a strange problem in one of our SunFire v215 Servers.
the ping to the hostname of the Server and ping to the hostname of any
other server in /etc/hosts fail.
but if you ping with IP_Adress it get success. i.e.
hostname=mytest ; IP=10.54.23.1 , hostname2=mydev ; IP2=10.54.23.2
ping mytest
[ failed ]
ping 10.54.23.1
[success]
ping mydev
[ failed ]
ping 10.54.23.2
[ success]
I dont know why its unable to resolve hostname from /etc/hosts.
i didnt find any error in /var/adm/messages
its very urgent, hope to hear soon from you.
Your Junior Admin
Salman
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
and should not be disclosed to any other party.
If you have received this email in error please notify your system manager
and the sender of this message.
This email message has been swept for the presence of computer viruses but
no guarantee is given that this e-mail message and any attachments are free
from viruses.
Fife Council reserves the right to monitor the content of all incoming and
outgoing email.
Fife Council
Tel: 08451 55 00 00
************************************************
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: Re: Using hot pluggable HardDrive for Data Transfer
- Next by Date: Re: Console Problem on Sun Fire V890
- Previous by thread: ping hostname failed while ping IP_Address working Options
- Next by thread: Solaris sendmail question
- Index(es):
Relevant Pages
|