Ping by hostname | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Ping by hostname

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-19-2008
lo-lp-kl lo-lp-kl is offline
Registered User
 
Join Date: Jul 2004
Last Activity: 18 February 2013, 2:32 PM EST
Location: Mexico
Posts: 185
Thanks: 0
Thanked 2 Times in 2 Posts
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 one is this one. all of them with Aix 5.3

The network area told me that we dont have own DNS.

Do you have some tips or which files check. In the resolv.conf I got the dns name even we dont have one.


Thanks in advance for your comments
Sponsored Links
    #2  
Old 11-20-2008
funksen funksen is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 30 April 2014, 10:11 AM EDT
Location: Austria/Vienna
Posts: 675
Thanks: 21
Thanked 31 Times in 30 Posts
check if /etc/resolv.conf is empty / not available, if it exists move it away, to /etc/resolv.conf.bkp for example (just if you are 100% sure you don't have DNS)


perhaps you are using ldap/nis for name resolution?
check /etc/netsvc.conf

you need one entry for hosts, should be
hosts=local4

which means Name resolution comes from /etc/hosts file (IPv4)
Sponsored Links
    #3  
Old 11-20-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 22 December 2014, 5:16 AM EST
Location: In the leftmost byte of /dev/kmem
Posts: 4,371
Thanks: 47
Thanked 853 Times in 674 Posts
I agree with funksen: name resolution is a staged process and you could configure it to first ask a nameserver (or several nameservers successively) and only then consult the local "/etc/hosts" file.

If the system is configured to try using a nameserver which doesn't exist this would account for the time it takes to resolve the hostname.

I hope this helps.

bakunin
    #4  
Old 11-20-2008
lo-lp-kl lo-lp-kl is offline
Registered User
 
Join Date: Jul 2004
Last Activity: 18 February 2013, 2:32 PM EST
Location: Mexico
Posts: 185
Thanks: 0
Thanked 2 Times in 2 Posts
Ping by hostname

Thanks for your comments funksen and bakunin

I have one question which files I need to check por to see "If the system is configured to try using a nameserver"

I add the line hosts=local4 in the /etc/hosts.

And I dont use ldap or nis name resolution but in my file /etc/netsvc.conf I have this hosts=bind4,local

I have to put the dns on the /etc/resolv.conf because If I dont do this, when I try to login takes some time (like a minute) to let me in the server. but this dns not are own


Thanks for your tips again
Sponsored Links
    #5  
Old 11-20-2008
funksen funksen is offline Forum Advisor  
Registered User
 
Join Date: Nov 2006
Last Activity: 30 April 2014, 10:11 AM EDT
Location: Austria/Vienna
Posts: 675
Thanks: 21
Thanked 31 Times in 30 Posts
change

hosts=bind4,local

to

hosts=local4,bind4

and remove the line

hosts=local4

and everything should be fine


and check if the host(s) you want to ping really are in the /etc/hosts file

take a look at the entry

"nameserver" in /etc/resolv.conf and ask you network team if they are still valid
Sponsored Links
    #6  
Old 11-20-2008
lo-lp-kl lo-lp-kl is offline
Registered User
 
Join Date: Jul 2004
Last Activity: 18 February 2013, 2:32 PM EST
Location: Mexico
Posts: 185
Thanks: 0
Thanked 2 Times in 2 Posts
Ping by hostname

Thanks for your comments

It works.
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
ping by hostname not working linuxgeek UNIX for Advanced & Expert Users 8 11-25-2011 11:54 AM
Suse 10 SP3 won't ping hostname kopper UNIX for Dummies Questions & Answers 4 08-16-2010 07:08 PM
Can't ping using hostname on Solaris 10 alpha123 Solaris 4 10-29-2008 03:05 AM
cannot ping by hostname tlee Solaris 1 03-12-2008 08:03 AM
UX 11iV2 - No ping by hostname netwalker HP-UX 7 08-26-2007 01:52 PM



All times are GMT -4. The time now is 11:33 AM.