... | ... | @@ -54,9 +54,9 @@ Some open source services use Google Cloud to power their website, for example [ |
|
|
|
|
|
To find if a website uses Google Cloud, you will need the `dig` and `whois` packages, which are only available in UNIX-like operating systems, for example Linux, BSD and macOS.
|
|
|
|
|
|
Firstly, you will have to find the [domain/subdomain name](https://en.wikipedia.org/wiki/Domain_name) of the website. For example, `https://relay.firefox.com/` subdomain is `relay.firefox.com`.
|
|
|
1. Firstly, you will have to find the [domain/subdomain name](https://en.wikipedia.org/wiki/Domain_name) of the website. For example, `https://relay.firefox.com/` subdomain is `relay.firefox.com`.
|
|
|
|
|
|
Secondly, you will have to find the IP address of the domain/subdomain by using the `dig` command. For example,
|
|
|
2. Secondly, you will have to find the IP address of the domain/subdomain by using the `dig` command. For example,
|
|
|
|
|
|
```bash
|
|
|
dig ${DOMAIN/SUBDOMAIN} +short
|
... | ... | @@ -64,7 +64,7 @@ dig ${DOMAIN/SUBDOMAIN} +short |
|
|
|
|
|
where `${DOMAIN/SUBDOMAIN}` is the domain/subdomain, for example `relay.firefox.com`.
|
|
|
|
|
|
Thirdly, you will have to find the cloud provider by using the `whois` command. For example
|
|
|
3. Thirdly, you will have to find the cloud provider by using the `whois` command. For example
|
|
|
|
|
|
```bash
|
|
|
whois $IP | grep "netname" -i
|
... | ... | @@ -73,3 +73,16 @@ whois $IP | grep "netname" -i |
|
|
where `$IP` is the IP address provided by the `dig ${DOMAIN/SUBDOMAIN}` +short` command.
|
|
|
|
|
|
This will give you the Net Name of the cloud provider, for example `GOOGLE-CLOUD`.
|
|
|
|
|
|
#### Full example
|
|
|
|
|
|
If we take `relay.firefox.com` for example, it should look like the following when using the `dig` and `whois` commands:
|
|
|
|
|
|
```bash
|
|
|
$ dig relay.firefox.com +short
|
|
|
130.211.19.131
|
|
|
$ whois 130.211.19.131 | grep "netname" -i
|
|
|
NetName: GOOGLE-CLOUD
|
|
|
```
|
|
|
|
|
|
To confirm that it uses Google Cloud, the `whois` output should have "google" (excl. casing). |
|
|
\ No newline at end of file |