how to get the server name using IP address | 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 !!

how to get the server name using IP address

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-13-2006
Sona Sona is offline
Registered User
 
Join Date: Aug 2005
Last Activity: 17 August 2007, 3:13 AM EDT
Posts: 13
Thanks: 0
Thanked 1 Time in 1 Post
how to get the server name using IP address

Hi all,

what is the comamnd to get the server address using the IP address ?

Please help.

Thanks,
Sona.
Sponsored Links
    #2  
Old 09-13-2006
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Advisor  
Forum Advisor
 
Join Date: Feb 2005
Last Activity: 24 October 2014, 7:17 PM EDT
Location: Foxborough, MA
Posts: 7,667
Thanks: 152
Thanked 586 Times in 551 Posts
Quote:
Originally Posted by Sona
Hi all,

what is the comamnd to get the server address using the IP address ?

Please help.

Thanks,
Sona.
hmmm..... this's confusing
Sponsored Links
    #3  
Old 09-13-2006
mercy mercy is offline
Registered User
 
Join Date: Feb 2006
Last Activity: 30 November 2012, 9:27 AM EST
Location: msk.ru.earth
Posts: 50
Thanks: 0
Thanked 2 Times in 2 Posts
if you want get server name you can use
$ nslookup -t=ptr server_ip
but back resolve must be correct.

If PTR doesn't set -- you cann't get correct server name

there are several methods to get name (if ptr doesn't set) but all they are not certain for sure
The Following User Says Thank You to mercy For This Useful Post:
Bill L. (01-13-2011)
    #4  
Old 09-13-2006
anbu23's Avatar
anbu23 anbu23 is offline Forum Advisor  
Advisor
 
Join Date: Mar 2006
Last Activity: 8 October 2014, 1:35 AM EDT
Location: Bangalore,India
Posts: 2,089
Thanks: 12
Thanked 131 Times in 126 Posts
i think you have to use
gethostbyaddr - gets information about a host given its address
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
DHCP Server address cokedude Red Hat 6 06-09-2011 01:40 AM
[SOLVED] HP UX SERVER IP ADDRESS ldaliosmane HP-UX 3 05-15-2010 08:16 PM
Getting IP address of a server royger IP Networking 1 01-04-2010 04:59 PM
Getting the IP address in unix server Balamani Shell Programming and Scripting 7 07-03-2008 07:32 PM
How to find i.p address of our server vpotluri UNIX for Dummies Questions & Answers 4 09-23-2002 02:09 PM



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