Sign in to follow this  
Followers 0
bandersen

Get domain IP

4 posts in this topic

Hi

Is it possible to read the IP adresse the computer gets from the local domain DNS?

BR

Benjamin Andersen

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi

Is it possible to read the IP adresse the computer gets from the local domain DNS?

BR

Benjamin Andersen

Hi,

normally a computer gets a IP address from a DHCP Server. The computer then, normally, registrate itself at local domain dns with its ip-address.

In AutoIt you should get this ip address with the macro @IPAddress1 (if you have one nic). Otherwise look in helpfile for @ipaddress.

If you really want to read the computers IP Address from the local domain DNS, i think, you have to use cmdline tool nslookup.

;-)

Stefan

Edited by 99ojo

Share this post


Link to post
Share on other sites

Hi

Thanks for the help. This one worked:

Local $sIP = @IPAddress1

MsgBox(0, "My IP Address", $sIP)

BR

Benjamin

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

If you give the domain name means you can get the ip address here http://www.whoisxy.com/ at free of cost...

Edited by jeeva

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0