Report this

What is the reason for this report?

Game server and website on same domain - DNS troubles

Posted on January 3, 2019

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?



This textbox defaults to using Markdown to format your 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.
0

Accepted Answer

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.