Game server and website on same domain - DNS troubles

Posted January 3, 2019 1k views
UbuntuDNSUbuntu 16.04

I’m triyng to run a website and a game server. Ive got an A record pointing the to a box for the game server and an SRV record pointing to the domain. I’ve got another A record pointing to a smaller box for my website.

All I want to do is funnel the game clients to the game server and serve up a static webpage on any other port.

Obviously, when trying to visit the website without www. it can’t find it. Is there any way I can fix this without putting a prefix on my game server?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

nevermind. apparently you have to run your website and gameserver on the same box if you DONT want to use subdomains.