Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Switching for IP to name in CentOS

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 05-05-2011
Member
 
Join Date: Apr 2011
Posts: 62
Switching for IP to name in CentOS
  

Well we know very well that we are doing reverse ping by using -a switch to get the system name on the Windows based system. I want to do the same on the Linux based system of mine. Let me know which command would help me to get this particular requirement of mine. I let you know that I have installed CentOS 5.5 on the computer of mine. any help on this particular matter would be highly appreciated. Thanks a lot in advance.

Reply With Quote
  #2  
Old 05-05-2011
Member
 
Join Date: Nov 2009
Posts: 1,035
Re: Switching for IP to name in CentOS

Looking at the requirement of yours I am suggesting following command which would be helpful to get the requirement of yours.You should copy and paste the below mentioned command on the terminal.
Code:
nslookup <ip.addr>
here ip.addr is the IP address of the system of yours.
Reply With Quote
  #3  
Old 05-05-2011
Member
 
Join Date: May 2008
Posts: 859
Re: Switching for IP to name in CentOS

I think to get the requirement of yours let me know whether you have installed bind-utils package on the computer. as far as I know the bind-utils is a part of the CentOS. You can install the same on the computer by using the normal manner by utilizing the yum on the computer of yours. So tell me which version of the CentOS do you have installed and see whether bind-utils is installed or not.
Reply With Quote
  #4  
Old 05-05-2011
Member
 
Join Date: May 2008
Posts: 962
Re: Switching for IP to name in CentOS

Well I was also having this particular query and I have searched on the Google to get something useful to get some relevant information. After lots of Googling I have managed to get the requirement of mine. I have used the following command on the terminal of the system to get the name of the computer against of the IP address.
Code:
dig -x ipaddress
You need to enter the IP address of the computer of yours at the place of ipaddress.
Reply With Quote
  #5  
Old 06-05-2011
Member
 
Join Date: May 2008
Posts: 991
Re: Switching for IP to name in CentOS

I want to say thanks a lot for the replying with the proper solution to solve the matter of yours. I have run dig command on the terminal and got the following output on the terminal.
Code:
mk@localhost ~]$ dig -x 64.233.189.104

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_5.3 <<>> -x 64.233.189.104
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44842
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;104.189.233.64.in-addr.arpa.   IN      PTR

;; ANSWER SECTION:
104.189.233.64.in-addr.arpa. 85933 IN   PTR     hkg01s01-in-f104.1e100.net.

;; Query time: 7 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Sat Jan 22 17:50:36 2011
;; MSG SIZE  rcvd: 85
I really want to appreciate your efforts which you have put in to get the requirement of mine.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Switching for IP to name in CentOS"
Thread Thread Starter Forum Replies Last Post
LG G2X keeps switching off Gurmeet Portable Devices 9 03-11-2011 06:23 PM
CentOS 5.5 to CentOS 5.6 Updates: Error while updating kernel-PAE fanish-war Operating Systems 5 06-05-2011 10:30 AM
how to upgrade from CentOS 5.5 to centos 5.6 manhat Operating Systems 6 02-05-2011 04:20 PM
G'5 D20 not switching on anyone help? n_baaby Portable Devices 3 24-04-2011 01:48 AM
Switching from vga to dvi? roshan45 Monitor & Video Cards 3 14-10-2009 08:49 PM


All times are GMT +5.5. The time now is 02:16 AM.