Unix/Linux 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 Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 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 Unix and Linux 09-13-2006
vgersh99's Unix or Linux Image
vgersh99 vgersh99 is online now Forum Advisor  
Forum Advisor
 
Join Date: Feb 2005
Last Activity: 28 August 2015, 6:09 PM EDT
Location: Foxborough, MA
Posts: 7,871
Thanks: 176
Thanked 667 Times in 624 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 Unix and Linux 09-13-2006
mercy mercy is offline
Registered User
 
Join Date: Feb 2006
Last Activity: 21 June 2015, 6:46 AM EDT
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 Unix and Linux 09-13-2006
anbu23's Unix or Linux Image
anbu23 anbu23 is offline Forum Advisor  
Advisor
 
Join Date: Mar 2006
Last Activity: 28 August 2015, 5:16 AM EDT
Location: Bangalore,India
Posts: 2,139
Thanks: 15
Thanked 154 Times in 146 Posts
i think you have to use
gethostbyaddr - gets information about a host given its address
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 06:17 PM.