Reverse DNS (PTR) for your IP addresses
NexoVirt writes the reverse DNS (PTR) record of every address in an IP zone you link to a DNS service. Admins set PTRs from the IP zone and the server page, customers from their own server page, and new addresses can get one automatically.
Add a DNS service
Section titled “Add a DNS service”- Open Settings > DNS services and fill in Add a DNS service.
- Pick the provider:
- PowerDNS (4.5 or newer): the API address (for example
http://10.0.0.53:8081), the server id (usuallylocalhost) and the API key. Plainhttpsends the key unencrypted, so use it only on a private network. - Cloudflare: an API token with DNS edit rights on your reverse zones.
- Bunny.net: your account API key.
- ClouDNS: in PowerDNS server id or ClouDNS API user the auth-id,
sub:<sub-auth-id>or the sub-user name, and its password in API key or token. Best create a ClouDNS sub-user that is limited to your reverse zones.
- PowerDNS (4.5 or newer): the API address (for example
- Click Save DNS service, then Test connection. The result lists the zones the key can see, with their ids.
The key is stored encrypted and never shown again; leave the field empty when you edit the service to keep it.
Link a reverse zone to an IP zone
Section titled “Link a reverse zone to an IP zone”In the Reverse zones card pick the IP zone and the DNS service, then:
- Reverse zone name: leave it empty to use the zone that holds the IP zone (
2.0.192.in-addr.arpafor192.0.2.0/24, the nibble zone for IPv6). - Zone id at the DNS service: the Cloudflare or Bunny.net zone id from Test connection; empty for PowerDNS and ClouDNS (the zone name is used).
- TTL (seconds): ClouDNS only accepts fixed TTLs (60, 300, 900, 1800, 3600 and so on); any other value is rounded up to the next allowed one.
- Automatic PTR for new addresses: a pattern such as
{ip-dashed}.rev.example.comor{hostname}(the server name, when it is a full host name).{vmid}works too. Only addresses assigned after saving get it. - Customer changes wait for approval: customer and reseller changes land in Reverse requests first.
- The PTR name must resolve to the address: the name’s A or AAAA record has to point at the address before it is accepted.
Set a PTR
Section titled “Set a PTR”- Admins: in the IP zone’s address table (Reverse DNS column, Edit) or on the server page (Reverse DNS card).
- Customers: on their server page, once you turn on the portal feature Reverse DNS (Settings > Customer portal, a customer group or a single customer). A reseller’s customers can only name addresses from that reseller’s IP zones.
Leave the name empty to remove the PTR. When an address is released or its server is deleted, its PTR is removed within a minute; when a migration gives a server a new address, the PTR moves with it.
Reverse requests
Section titled “Reverse requests”With approval on, Settings > DNS services > Reverse requests lists the waiting changes. Approve writes the record, Reject takes an optional reason. The customer gets an email either way, and the inbox shows an alert while requests wait.
Failed writes
Section titled “Failed writes”When the DNS service refuses a record or cannot be reached, the address shows the reason and NexoVirt retries every 15 minutes.
The full answer of the DNS service is under Diagnostics (code NX-DNS-0001).
GET|PUT /api/v1/hosts/{id}/guests/{type}/{vmid}/rdnswith{ip, ptr}(never waits for approval).GET /api/v1/rdns/requests,POST /api/v1/rdns/requests/{id}/approve,POST /api/v1/rdns/requests/{id}/rejectwith{reason}.GET /api/v1/dns-services(no keys,is_activeis a boolean). Both lists return ids as integers.- Reseller API:
GET|PUT /api/reseller/guests/{hostId}/{type}/{vmid}/rdns(own customers; waits for approval when the zone asks for it).
Webhooks: rdns_changed and rdns_requested.
Deploy notes
Section titled “Deploy notes”After updating run php spark migrate and re-run deploy/install-cron.sh (adds rdns:sync every minute).
NexoVirt is developed and designed by Nucez Software, your partner for custom software and web design.