Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Is it possible to get the PC name knowing its IP address?

jaskulec1221_34
Nimbostratus
Nimbostratus

Hi,

 

Is it possible to get the PC name knowing its IP address? Customers are internal users that log in to ActiveDirectory? Can it be done with iRule? I have iRule that collects customers IP addresses, but I need to know names of their PC’s.

 

Thanks, jaskul

 

6 REPLIES 6

youssef1
Cumulonimbus
Cumulonimbus

Hello did you have dns / DNS Services license?

 

jaskulec1221_34
Nimbostratus
Nimbostratus

Hi thanks for your answer. Unfortunately I haven't this license yet. And what's your idea?

 

youssef1
Cumulonimbus
Cumulonimbus

Hello,

 

you have 2 possibilities to recover the name of the machine via an irule (With User IP Address). either by doing the correspondence in a datagroup. I do not know how many machines you have, but it might take a long time for you to record and maintain them in a datagroup.

 

or the simple way is to do a reverse dns (PTR) via an Irule, however, as previously specified you need a specific license for this. you can request an add-on of tests and validate this feature. if it interests you I can make you irule.

 

Regards

 

jaskulec1221_34
Nimbostratus
Nimbostratus

Hi,

 

I've another big-ip where there is DNS license 🙂 So please could you make this irule for me. I'll test it but in my environment if I query for PTR record I can't get the hostname 😞

 

Maybe there is another way to achieve this goal – if you have some idea i.e. to use script in bash with "gethostbyaddr" or some like “ping -a IP” - in windows environment. What do you think?

 

Regards

 

jaskulec1221_34
Nimbostratus
Nimbostratus

Hi,

 

Many thanks, it works perfectly. Thanks you for your support!!!

 

Regards

 

youssef1
Cumulonimbus
Cumulonimbus

Hello,

 

good to now that's it's works. can you please validate my response!!!