Question

Game server and website on same domain - DNS troubles

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 www.mydomain.com 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?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Accepted Answer

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