Results 1 to 5 of 5

Thread: Switching for IP to name in CentOS

  1. #1
    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.

  2. #2
    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.

  3. #3
    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.

  4. #4
    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.

  5. #5
    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.

Similar Threads

  1. LG G2X keeps switching off
    By Gurmeet in forum Portable Devices
    Replies: 9
    Last Post: 03-11-2011, 06:23 PM
  2. Replies: 5
    Last Post: 06-05-2011, 10:30 AM
  3. how to upgrade from CentOS 5.5 to centos 5.6
    By manhat in forum Operating Systems
    Replies: 6
    Last Post: 02-05-2011, 04:20 PM
  4. G'5 D20 not switching on anyone help?
    By n_baaby in forum Portable Devices
    Replies: 3
    Last Post: 24-04-2011, 01:48 AM
  5. Switching from vga to dvi?
    By roshan45 in forum Monitor & Video Cards
    Replies: 3
    Last Post: 14-10-2009, 08:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,215,922.99000 seconds with 16 queries