Jump to content
Sign in to follow this  
bandersen

Get domain IP

Recommended Posts

bandersen

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
99ojo

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
bandersen

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
jeeva

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.