Reverse DNS (PTR Record)

Each GandiCloud server comes with an IPv4 and IPv6 public IP address. On this page we will explain how to manage the network settings of your server.

You can find complete information about the different possible configurations of a server on our GandiCloud VPS page.

You can manage Reverse DNS through the Gandi interface or through OpenStack CLI.

How to Manage Reverse DNS through Gandi’s Interface

By default we set the Reverse DNS, or PTR record, to a Gandi nameserver.

You can change this following these steps.

First, you should make sure the domain name you want to point to is already linked to both IPv4 and IPv6 addresses. If they are not already associated, you can do this by adding the following to the domain’s DNS records.

mysite.example.com IN A <server_ipv4>
mysite.example.com IN AAAA <server_ipv6>

Note

It can take some time for any changes to your DNS records to be updated throughout the system.

After you have prepared the domain name’s DNS records, you can then change the reverse DNS for the IP addresses following these steps:

  1. After logging in, click on “VPS” in the left navigation menu.

  2. Click on the “IP Addressess” tab.

  3. Click on the three dot icon next to the IP address you want to manage and select “Edit rDNS”.

  4. The dialog will remind you to make sure your domain name name has the correct DNS records to associate the IP address with the domain name you plan to use, as we explained above.

  5. Enter the domain name you want associated with this IP address.

You can reset the reverse DNS back to the default Gandi nameserver by following these steps:

  1. After logging in, click on “VPS” in the left navigation menu.

  2. Click on the “IP Addressess” tab.

  3. Click on the three dot icon next to the IP address you want to manage and select the option to reset.

How to Manage Reverse DNS Through OpenStack CLI

Before you can use OpenStack CLI you must make sure you have it configured correctly.

With OpenStack CLI, you can modify the reverse DNS directly from the command line. To do this, use the following command:

openstack port set --dns-domain '<.extension.>.' --dns-name '<domain_without_extension>' <network_port_id>
  • Replace <.extension.> with the extension of your domain name followed by a period. If the desired domain were www.example.com, you would use .com..

  • Replace <domain_without_extension> with the domain name minus the extension. If the desired domain were www.example.com, you would use www.example.

  • Replace <network_port_id> with the uuid of the IPv4 or IPv6 network port of your server.

Using the examples given above, our command would look like this:

openstack port set --dns-domain '.com.' --dns-name 'www.example' 67d61adf-6e6b-4e9f-90c6-4353dcffeb20