dw2003 Posted January 2, 2009 Share Posted January 2, 2009 (edited) 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 January 2, 2009 by dw2003 Link to comment Share on other sites More sharing options...
0 Rohdekill Posted January 2, 2009 Share Posted January 2, 2009 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 More sharing options...
0 dw2003 Posted January 2, 2009 Author Share Posted January 2, 2009 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 More sharing options...
0 ~Matt~ Posted January 2, 2009 Share Posted January 2, 2009 Wouldnt the filter stop the dns lookup thing? Link to comment Share on other sites More sharing options...
0 dw2003 Posted January 2, 2009 Author Share Posted January 2, 2009 nslookup to the local DNS servers on the network is allowed. Also there are plenty of websites that can perform this. Link to comment Share on other sites More sharing options...
Question
dw2003
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 dw2003Link to comment
Share on other sites
4 answers to this question
Recommended Posts