Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

SRV Record issues

I have an SRV record setup in an attempt to protect a specific IP from being easily traced (Along side this SRV record I was using Cloudflare, transfer the DNS back to my registrar assuming that was the problem with the connectivity but the issue still persists)

Basiclally I have two servers, One for the website and one for a game server. I have 3 A records set up , @ pointing to the website www. pointing to the website and a semi private A record (As you can dig around to find it) pointing to the game server.

I have an SRV record pointing to the A record that is semi private so that any trific through the @ domain through a specific port will route to the game server.

The problem is sometimes it works and sometimes it does...

For extra protection I had Cloudflare setup which basically resolve the IP to one of there server, and if you did some sniffing around youd end up with the websites ip (I was unable to reach the game server, though I am sure it is still possible....)

Any suggestions on how to fix this alongside suggestions for mitigating ddos attacks? I have a google compute engine running the game server and a linode running the website.

Thank you for the help and sorry for the lengthy and possible confusing post!

Edit: I also have two more domains that only support the use of A and CName records, overall when mitigating an attack I would not mind as much for the website to go down but do not want the game server to go down. So is it a good idea/possible to use the A record to point to the websites ip then setup a SRV record (I think I watch a video saying this was NOT possible though) or is there anything I could do to not have to point these directly at the game server ip?