Hacker News new | ask | show | jobs
by unreal37 1357 days ago
Assuming the #1 Google result on page 1 of search is the companies public domain is a flaw.

Some companies use a different domain for corporate use than their public domain name.

Like fb.com

3 comments

They said that

One thing to note about these results is that when we get a result that says the company has a tenant, we are nearly 100% correct in that fact. However, if we say that a company does not have a tenant, we are not necessarily correct. It is possible that the google result did not point to their actual domain name, or they are using a different domain name for their AAD Tenant.

If you wanted to do this really robustly, you would probably want to get a better source for your domain names than automated google search results. You might want to also look at other combinations like “companyname.onmicrosoft.com”, however we are doing just rough estimates here.

Well, you can also spot Facebook when their IPv6 addresses contain :face:b00c:
The script also seems to assume that the company's domain name is of the form (foo.bar), which may be a reasonable assumption for the US-based Fortune 500, but won't work so well if trying to replicate this with international companies (which often have domain names like example.co.uk or example.co.jp).