• 0

VB Script


Question

write a script that

When given a series of urls (each on a new line)

extracts the domain name portion, performs an nslookup to get the IP address of the domain name then returns the full url with the ip address in it

as an example: https://www.neowin.net/news/main/09/01/01/m...s-a-48tb-update

returns http://209.124.63.219/news/main/09/01/01/m...s-a-48tb-update

this process then repeats for every line.

also -- sometimes nslookup returns multiple IP addresses -- in this case the first ip address should be used.

Can this be done as a VB script? or is there a program that can already do this for you?

Edit: Ok i have created this in a VB Script -- topic can be closed now.

Edited by dw2003
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Why would you?

The entire point of DNS is so no one needs to know or care what the IP is. For example, I host a website within my house via DynDNS. What your script could say is my IP could very easily be wrong in 30 seconds. Yet, my website remains accessible via its name thanks to dynDNS.

Link to comment
Share on other sites

  • 0
Why would you?

The entire point of DNS is so no one needs to know or care what the IP is. For example, I host a website within my house via DynDNS. What your script could say is my IP could very easily be wrong in 30 seconds. Yet, my website remains accessible via its name thanks to dynDNS.

Yes -- I realize the purpose of DNS.

The purpose of this script is to bypass a web proxy im behind that is blocking sites by DNS name.

i think u mean short link script c:

?? -- I don't think I do?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.