Subdomains and security with regards to root domain
I'm hoping to get a confirmation from the security gurus that my thinking is correct. I'm looking to set up a subdomain such as test.mydomain.com from my main domain (mydomain.com) using a A record in the DNS. So the subdomain will in fact be hosted on a different server. The reason for this is because I'll be putting up some PHP scripts that have not been thoroughly tested yet for security, so in case the PHP scripts are exploited, the hacker can atmost only affect the subdomain.
Is my thinking correct on this as far as full isolation between the subdomain and main domain as far as security when the former is hosted on a separate server using A record? I mean, the two domains should basically be on two separate servers in every since of the word.
Re: Subdomains and security with regards to root domain
what do you want to do with test.domain .com btw?
visitors -> http://www. domain .com, and they will be routed to test.domain .com ? or you're the only one using test.domain .com?