I have a website like maindomain.com
that is hosted on one IP address like 192.168.1.1
. I want to add a subdomain from a different host (such as 192.168.1.2
) to my root domain (maindomain.com
), such that the address will be like subdomain.mainwebhost.com
.
If the subdomain host has a script with a security bug, can an actor attack the data hosted on my main host?