How to setup PTR DNS?

What is a reverse DNS?

As explained in Wikipedia, a reverse DNS (rDNS) is a set of records in a DNS response for a domain name which are used to determine a host name for a given IP address. It's the name of the host that is determined from the IP address, as well as the corresponding domain. I can tell you the names of all the machines I have on my local network but I cannot know which one is your machine! This is because the rDNS is usually set to "localhost". So what happens if you do not set this value in your DNS server? This is what happened to me! My DNS server was a CloudFlare DNS server running in my VPS. To test this, I created a new account in my VPS called "tuxs.local" (remember the tuxs.local is already taken in the global DNS).

I then created a couple of websites in my vps, for example www.com and www.test2.

Now that my website is online, I'll check who the DNS of each of those two domains point to: So as you can see, the first record of the two points to my VPS, and I could have configured CloudFlare to point to my vps. However, the second record points to my VPS too.

So, how to avoid this? It's pretty simple. First of all, let's check what IP address each domain returns. Here is the www.com You can see I have a couple of addresses, one of them is 192.168.1, which is the IP of my VPS.

This is the IP address returned by www.com I tried with the IP address of my VPS as the hostname for rDNS, but I still get the IP address of my VPS: Here is the IP address returned by www.com So, if we try to set the rDNS of www.com to my VPS IP address, we get an error.

Let's try to change it to the IP of my router.

How to setup a reverse lookup zone in DNS?

I have been trying to get this done since a while and am now tired.

Here is my scenario: There is a domain called webhosting. Www.webhosting.com should resolve to 10.2.3
A CNAME record with www should be used to resolve 10.3 to webhosting.com
Www.com should be an A record with a DNS IP address This setup would work as following: 3 - DNS entry for webhosting.com 3 - Name of the A record pointing to webhosting.com www - CNAME pointing to 10.3 To accomplish this I have followed the guide on this article but as my domain registrar (GoDaddy) doesn't support setting up a CNAME record, I cannot use this method. If anyone has any ideas of how to do this, it will be really appreciated. Thank you.

I can't tell from your description what the name of the zone is where you wish to use the CNAME record and where you want to use the A record. If it's a single zone, the process should be very simple: You have a name like webhosting. If it has not been used yet, register a CNAME of www.com to webhosting.

That will make a CNAME webhosting. Into www., and that's it. You should be able to view the CNAME entry in your registrar and/or the DNS management interface for the zone. There are free tools to do exactly what you want.

How to setup PTR DNS?

Setuping a PTR DNS record is basically the same as setuping a A record.

For example, if you wish to have A record for the 'google.com' that points to '216.58.203.192' and PTR record for 'google.com' is defined at '216.193'. Here is the DNS configuration for PTR records.

The above DNS configuration will provide us a PTR record in the form of 216. Ptr google. But what does this mean?

Now let's see what is it? As you can see, the PTR record is nothing but a stub for a service. The PTR record will tell the user where the requested domain resides. PTR record is important to identify a server's address and location because many people use PTR record when searching for IP address of a website.

For example, in my case here, I want my PTR DNS record to point to the address for the 'google.com' service and '216.192' is the address of that service which I want to have as a PTR record.

Since my ISP has provided the information of the web hosting server by assigning a new IP address (216.192) to that web server, now I need to tell the world that I am living at that address by having a PTR DNS record pointing to that address.

In short, PTR DNS record will be used for the following purposes: For a website that provides users with search results, the PTR DNS record will hold an IP address where the websites live. This IP address can then be included in a link provided on a website to easily find out where the website actually lives.

When a company or other organization wants to hide their identity, they can use the PTR DNS record to fool the search engines by providing incorrect information about their true location.

Related Answers

What are the two types of proxies?

You can use a reverse proxy for multiple reasons, but mostly it is us...

Why is it called a reverse proxy?

What is the difference between a reverse proxy an...

Does Apache support reverse proxy?

I have a.war application which is deployed in the Tomcat server. br...