DNS Subdoamin Issue [closed]
we have an godaddy account for dns, and we registered our servers in godaddy dns admin console, right now we have an problem, our case is our registered server ip in godaddy dns can able to register any one of other dns service providers, it might be an issue, someone can easily able to register subdomains to our server ip easily.For eg: if some one have to register subdomain in the name of porn sites and those subdoamins it's pointing to our servers directly it would be an issue for us.How to avoid this case.Please can anyone help for this problem.
Solution 1:
If I understand your question correctly, it can be rephrased as "How do I prevent people from pointing random A records to our servers' IP addresses".
Well, you cannot. And why would it matter? If I want to point some random porn domain to your webserver, and people visit it, all that happens is that they will see your website, but on a strange URL.
There's absolutely nothing you can do about the DNS part of this, but you can do something about the "seeing strange URL" part: redirecting people to the correct URL if they land on a weird domain name. Something like this in apache speak:
RewriteCond %{HTTP_HOST} !www.example.com
RewriteRule (.*) http://www.example.com$1 [R,L]
So if www.badexample.com points to the same ip as www.example.com, visitors of www.badexample.com will be automatically redirected to www.example.com.