We have "go links" where I work, such as http://go.mycompany.com/foo which redirects to an arbitrary location. It's powered by a simple Python app on Google App Engine that keeps a mapping of keyword => url.
I'm working on making them work "unqualified" so go/foo takes you to the same place. Our DHCP server gives us search domains including "mycompany.com" so just "go" does resolve to an IP and it should all just work.
Except, that DNS entry points at Cloudfront which we use primarily to upgrade HTTP to HTTPS. When using the full domain, Host: HTTP header comes through as go.mycompany.com and everything is fine. When using just "go" the Host: header comes through as simply "go". Even though traffic routes at the TCP level, Cloudfront doesn't know what to do with it.
The fix should be as simple as adding "go" to the CNAMES of the given CloudFront distribution, such that it looks like:
Alternate Domain Names (CNAMEs)
go.mycompany.com
go
However, that box in the UI won't accept bare word domains. Any trick to work around?
gois added as an Internet top level domain, your URLs are going to break with no way to fix them except to go back to the FQDN. For the longer explanation, see DNS just started resolving my server.prod addresses to 127.0.53.53 – Michael Hampton Aug 07 '18 at 19:26gowere added as a TLD it would break all the go/ links at Google and Twitter. Seems doubtful to ever happen. – jpsimons Aug 08 '18 at 02:34