If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
IP addresses from URLs
To blockout junk I can use the Firewall, but this requires IP addresses instead of URLs. Is there some surefire method to extract IP addresses from URLs? Preferably at the doamain level. |
Ads |
#2
|
|||
|
|||
IP addresses from URLs
On 09/01/2020 22:06, Peter Jason wrote:
Is there some surefire method to extract IP addresses from URLs? Preferably at the doamain level. Sure there is a way. Launch your cmd prompt and type something like: ping microsoft.com or ping google.com You'll get the IP address of those two domains. The IP addresses of Microsoft and Google are country specific so Australia may have something else. UK has: 40.113.200.201 for Microsoft on my machine and Google: 216.58.210.46 However, they have hundreds if not thousands for different things. ping Some_Domain.com -- With over 1.2 billion devices now running Windows 10, customer satisfaction is higher than any previous version of windows. |
#3
|
|||
|
|||
IP addresses from URLs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256 Peter Jason wrote: To blockout junk I can use the Firewall, but this requires IP addresses instead of URLs. Is there some surefire method to extract IP addresses from URLs? Preferably at the doamain level. DNS; but it gets messy if there are multiple IP addresses to a URL (such as facebook.com). Perhaps look into a DNS service that can help you there, such as opendns or pihole (among others). -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl4X0U MACgkQjhHd8xJ5 ooHz+wf/c76Tgk4BKhAckdEs7OPS6ENdPHStU8ivhCnq3ZE/9zpHixFnE5ZtQRfZ ZPsOz1cppklxh4a7QYL0V3/+6sRuxhVjkZo1fUUO2too3W06XTZgmVAhivfX+TX4 iI91QUmjzNOTkbYTwNWXzcMjpM3vM/KNQ77jyQhhKcZEDS5luiCZObqyfG8NNa7X TuXvqP9NXNSf7FFY8cFDCd+YuLwyWKa2p0pbw1n8YoSs/aYIUjS2ioeu+3ZHkn8T FK2nCCBdWJB8VMK4xGb3rKVtm4OQMPNrePo9EUzWurHVMiMwhG qeoV8qunXJOm+T 86y3JKdA3qhxZIeQllG/Jb8oFnTQQQ== =ZRhM -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281 |
#4
|
|||
|
|||
IP addresses from URLs
On 2020-01-09 4:06 p.m., Peter Jason wrote:
To blockout junk I can use the Firewall, but this requires IP addresses instead of URLs. Is there some surefire method to extract IP addresses from URLs? Preferably at the doamain level. How about *ping* in a command line? as in "ping amazon.com" . Rene |
#5
|
|||
|
|||
IP addresses from URLs
On Thu, 9 Jan 2020 19:36:05 -0600, Rene Lamontagne
wrote: On 2020-01-09 4:06 p.m., Peter Jason wrote: To blockout junk I can use the Firewall, but this requires IP addresses instead of URLs. Is there some surefire method to extract IP addresses from URLs? Preferably at the doamain level. How about *ping* in a command line? as in "ping amazon.com" . Rene Thanks to all, I seem to have blocked some odious websites successfully. |
#6
|
|||
|
|||
IP addresses from URLs
On Fri, 10 Jan 2020 09:06:20 +1100, Peter Jason wrote:
To blockout junk I can use the Firewall, but this requires IP addresses instead of URLs. Is there some surefire method to extract IP addresses from URLs? Preferably at the doamain level. If the domain is (say) "www.itisatrap.org", then open a Command Prompt window and type this command nslookup -type=A www.itisatrap.org The results will look something like this Server: UnKnown Address: 192.168.43.1 --- Not this IP Address. This is your DNS server. Non-authoritative answer: Name: www.itisatrap.org Address: 54.206.17.186 --- This IP address is www.itisatrap.org Some domains have multiple IP addresses. If you run the same command several minutes later, you may get a different IP address. This makes it messy to do what you want (as Dan has already replied). There are web sites that will look up the IP address from the domain for you. In some cases the answer they give is not surefire for you. For example, from here the IP address of "download.microsoft.com" is 125.252.212.104 (the server nearest to me in New Zealand). But if I use the web site https://dnschecker.org/all-dns-records-of-domain.php to look up the IP address of "download.microsoft.com", it will tell me that the IP address is 23.52.161.62 (a server in New York, NY, USA). Some domains like "download.microsoft.com" have servers dotted around the world. You get the IP address of the server closest to you. But when you use a web site like https://dnschecker.org/all-dns-records-of-domain.php it will tell you the IP address of the server closest to it (not to you). -- Kind regards Ralph |
#7
|
|||
|
|||
IP addresses from URLs
On Fri, 10 Jan 2020 09:06:20 +1100, Peter Jason wrote:
To blockout junk I can use the Firewall, but this requires IP addresses instead of URLs. Is there some surefire method to extract IP addresses from URLs? Preferably at the doamain level. In addition to what the other responders said, note that the IP address of a particular domain, microsoft.com for example, is very frequently different from the IP address of its various subdomains, such as download.microsoft.com. As a result, blocking the domain IP will usually not successfully block any or most of its subdomains. By the way, the tool I would use to resolve FQDNs to IP addresses is dig. Dig is available for Windows. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|