• bamboo@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    How do those links work? Does Google own the TLD for .go? I thought two letter TLDs were all country specific.

    • GooeyGlob@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 day ago

      In DNS and all Unix style host resolution generally (documentation on the file /etc/resolv.conf details this), all clients have a domain search list, usually set by your DHCP server, which for Google owned computers is obvs google.com, but it can be several domains.

      All they need is to set up an A record for go.google.com (its more likely googleplex.com) which runs a link shortener/expander site, and their employees can use the shorthand form of go/linkname for it to be expanded for them in their browser.

      They could also set an entry in every corporate computer’s local hosts file for ‘go’, and deploy it automatically using ansible, chef, etc. Or configure it in the company wide HTTP(S) proxy that all clients are configure to use. I forget now which method it is, and there are of course many other ways to do it than these.

      Anyway go/linkname is a huge part of their culture as mentioned by the other commenter, and I was also triggered seeing it.