Results 1 to 9 of 9

Thread: Getting the FQDN given an IP address

  1. #1
    Taz
    Taz is offline
    Senior Member Taz's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    2,152
    Thanks
    57
    Thanked
    29 times in 27 posts
    • Taz's system
      • Motherboard:
      • Gigabyte Z270 HD3P
      • CPU:
      • Intel Core i5 7600K
      • Memory:
      • Corsair CMK16GX4M2B3200C16R Vengeance LPX 16 GB
      • Storage:
      • Samsung 960 EVO M.2-2280 500GB (PCIe) + 1TB Sandisk Ultra II SSD (SATA)
      • Graphics card(s):
      • Asus NVIDIA GeForce GTX 1070 OC
      • PSU:
      • Corsair CS550M 550W Hybrid
      • Case:
      • NZXT Source 340
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • 34" Asus Designo Curve MX34VQ UWQHD Monitor
      • Internet:
      • Virgin Media M350

    Getting the FQDN given an IP address

    I have been tasked to find the FQDN (Fully Qualified Domain Name) associated with a given IP address.

    For example, if a machine has two NICs with the following IP addresses:

    - 1.1.1.1

    - 1.1.1.2

    Then the FQDN may be registered as:

    - external.acme.com (for 1.1.1.1)

    - internal.acme.com (for 1.1.1.2)

    Is there a way to determine the FQDN associated with an IP address across a range of platforms (wg. Windows, Solaris, Linux, HP-UX, etc)? I would imagine that 'nslookup' would be a useful command for this?

  2. #2
    TiG
    TiG is offline
    Walk a mile in other peoples shoes...
    Join Date
    Jul 2003
    Location
    Questioning it all
    Posts
    6,213
    Thanks
    43
    Thanked
    47 times in 42 posts

    Re: Getting the FQDN given an IP address

    You are using internal DNS servers?.

    If so go look at those....

    TiG
    -- Hexus Meets Rock! --

  3. #3
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,026 times in 677 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: Getting the FQDN given an IP address

    i think "host" is the usual command these days

  4. Received thanks from:

    Taz (06-05-2008)

  5. #4
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: Getting the FQDN given an IP address

    there are ports for DIG for practically every platform. More powerful than NSlookup.

    dig -x 1.1.1.1
    throw new ArgumentException (String, String, Exception)

  6. Received thanks from:

    Taz (06-05-2008)

  7. #5
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: Getting the FQDN given an IP address

    hex, Host won't return multiple adapters will it? and depending on the config, not the FQDN.
    throw new ArgumentException (String, String, Exception)

  8. #6
    Taz
    Taz is offline
    Senior Member Taz's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    2,152
    Thanks
    57
    Thanked
    29 times in 27 posts
    • Taz's system
      • Motherboard:
      • Gigabyte Z270 HD3P
      • CPU:
      • Intel Core i5 7600K
      • Memory:
      • Corsair CMK16GX4M2B3200C16R Vengeance LPX 16 GB
      • Storage:
      • Samsung 960 EVO M.2-2280 500GB (PCIe) + 1TB Sandisk Ultra II SSD (SATA)
      • Graphics card(s):
      • Asus NVIDIA GeForce GTX 1070 OC
      • PSU:
      • Corsair CS550M 550W Hybrid
      • Case:
      • NZXT Source 340
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • 34" Asus Designo Curve MX34VQ UWQHD Monitor
      • Internet:
      • Virgin Media M350

    Re: Getting the FQDN given an IP address

    Nice one directhex. 'Host' is available on Linux and Solaris so that will be very useful.

  9. #7
    Taz
    Taz is offline
    Senior Member Taz's Avatar
    Join Date
    Jan 2005
    Location
    London
    Posts
    2,152
    Thanks
    57
    Thanked
    29 times in 27 posts
    • Taz's system
      • Motherboard:
      • Gigabyte Z270 HD3P
      • CPU:
      • Intel Core i5 7600K
      • Memory:
      • Corsair CMK16GX4M2B3200C16R Vengeance LPX 16 GB
      • Storage:
      • Samsung 960 EVO M.2-2280 500GB (PCIe) + 1TB Sandisk Ultra II SSD (SATA)
      • Graphics card(s):
      • Asus NVIDIA GeForce GTX 1070 OC
      • PSU:
      • Corsair CS550M 550W Hybrid
      • Case:
      • NZXT Source 340
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • 34" Asus Designo Curve MX34VQ UWQHD Monitor
      • Internet:
      • Virgin Media M350

    Re: Getting the FQDN given an IP address

    Quote Originally Posted by TheAnimus View Post
    there are ports for DIG for practically every platform. More powerful than NSlookup.

    dig -x 1.1.1.1
    Thanks for that. Very useful too.

  10. #8
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Getting the FQDN given an IP address

    if your using DNS you could use look@LAN
    □ΞVΞ□

  11. #9
    Senior Member
    Join Date
    Mar 2005
    Posts
    4,944
    Thanks
    171
    Thanked
    387 times in 314 posts
    • badass's system
      • Motherboard:
      • ASUS P8Z77-m pro
      • CPU:
      • Core i5 3570K
      • Memory:
      • 32GB
      • Storage:
      • 1TB Samsung 850 EVO, 2TB WD Green
      • Graphics card(s):
      • Radeon RX 580
      • PSU:
      • Corsair HX520W
      • Case:
      • Silverstone SG02-F
      • Operating System:
      • Windows 10 X64
      • Monitor(s):
      • Del U2311, LG226WTQ
      • Internet:
      • 80/20 FTTC

    Re: Getting the FQDN given an IP address

    A quick and dirty way that works on windows is type ping -a x.x.x.x
    "In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penises, taken Viagra and are looking for a new relationship."

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Assigning a network address to my PC to connect wirelessly to the net?
    By BlueOrange25 in forum Networking and Broadband
    Replies: 4
    Last Post: 30-10-2007, 10:50 PM
  2. Delivery to address other than billing address
    By Gorlak in forum SCAN.care@HEXUS
    Replies: 3
    Last Post: 02-12-2006, 01:51 PM
  3. Scans Address Details+ Delivery
    By KDH in forum SCAN.care@HEXUS
    Replies: 1
    Last Post: 29-10-2006, 01:55 PM
  4. Change free shipping address?
    By BiggehXP in forum SCAN.care@HEXUS
    Replies: 2
    Last Post: 13-03-2006, 06:05 PM
  5. Win 98 and IE6
    By Zak33 in forum Networking and Broadband
    Replies: 7
    Last Post: 03-08-2004, 04:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •