I registered a domain, lets say mysite.com (for example), then, results that somebody else has an A record from anotheraddress.com pointing to the same IP address of mine (in a VPS in linode.com)
What can I do to avoid this???, I mean, I would prefer reject accesses from anotheraddress.com to my site.
I just know only by casualty putting my genuine domain name on this
http://www.domaintools.com/reverse-ip/
My DNS server is name.com, and the DNS server pointing to the my public IP is from GoDaddy.
Is possible to register arbitrarily names to the same public IP? Can I use my DNS record with mysite.com to point to 209.85.133.147 (google.com), for example?
No, you can't stop people pointing their DNS entries at you any more than you could stop someone from accidentally giving out your telephone number instead of their own.
When you say that you want to "reject access", though, what do you mean? You can configure your webserver to show a "sorry, $domain doesn't live here" message if they go to http://otherdomain.com... But there isn't much you can do to stop, for example, SSH connections (as they care only about IP addresses and not domain names).
To expand a little bit: yes, it would be possible (and, in fact, easy) for you to configure a DNS record you own to point to a server you don't own. It's actually (sort of) common. For example, I own
wolever.net
, but I pointpictures.wolever.net
at Amazon's S3 service so when I serve pictures it looks like they are coming from my domain, not some random place on the Internet.Short answer: yes.
Long answer: yes, and this is how the Domain Name System was designed to work. To understand why, look at any web application that allows its users to use their own "vanity domain". The process goes something like this:
If I couldn't point my domain name to any IP address, the system wouldn't really work.
You cant really stop someone pointing to your servers but just because they point you server doesn't mean you have to serve them anything.
It's possible that there are numerous (possibly hundreds) of sites hosted on the same IP address (yours included). It's not unusual.
You can point DNS entries to any ip you wish. You can't stop people from pointing to your server. There is a trick you can do with a webserver though. You can set up the default vhost to redirect users to a choosen domain name or display an error or information page.
What you're getting at is the essence of "virtual hosting", and what enables one IP address to serve multiple websites and domain names.
"Old school" webhosting worked on the premise of one website per IP address, no matter what the actual domain name the same website would be served up to the browser.
If you have a name based virtual host, it will only serve up web content for the requested domain name. This basically means you have a vhost set for each site you want to serve off of that IP address, and then depending on your webserver setup a "default" vhost that redirects to a blank page.