Showing posts with label DNS. Show all posts
Showing posts with label DNS. Show all posts

Monday, November 2, 2026

Before You Deploy Protection and Recovery 9.1.1: DNS, Hostname and PTR Gotchas

Checklist of four DNS checks before deploying a Protection and Recovery appliance: valid hostname, forward DNS, reverse DNS and DNS reachable at boot.

Notes from deploying Protection and Recovery 9.1.1 (build 9.1.1.0100). Field notes, not official guidance. Part 1 of a short series; Part 2 will cover pairing two protected sites to one shared recovery vCenter.

TL;DR
  • Name the appliance with lowercase letters, digits and hyphens only. An underscore in the hostname (dr_appliance_01) is the kind of mistake that costs you a redeploy.
  • Give every appliance FQDN a forward (A) and a reverse (PTR) record, and use that same FQDN everywhere: deployment, vCenter registration, pairing.
  • The appliance needs a working DNS at first boot. If it does not, you can get a ~15 minute boot delay and an empty /etc/resolv.conf (Broadcom KB 429918, with a workaround).
  • If your domain ends in .local, add it to the appliance’s DNS search domains (KB 415597).

Why this is worth a post

Protection and Recovery (P&R) 9.1 merges Site Recovery Manager, vSphere Replication and vSAN snapshots into one appliance. You deploy it once per site, register it with a vCenter, and later pair it with its peer. Almost every step in that chain goes through names, not IPs. The 9.1 guide says to use FQDNs rather than IP addresses wherever possible, and when you create a site pair it requires that the vCenter address you type is an exact match of the address used when the appliance on the other site was installed.

So a bad hostname or a missing DNS record does not fail where you made the mistake. It fails two steps later, as a pairing error or an appliance that never comes up. Everything below was observed on the combined appliance. I expect the same rules to hold for the scale-out appliance, but the KBs I cite do not say so explicitly.

1 · Valid hostname a-z, 0-9, hyphen no underscores 2 · Forward DNS A record for the appliance FQDN 3 · Reverse DNS PTR record for the appliance IP 4 · DNS at boot reachable at first boot (and .local search domain) If skipped: appliance never takes its IP, VRMS errors If skipped: registration and pairing by name fail If skipped: blank-hostname deploy gets no usable name If skipped: ~15 min boot delay, empty resolv.conf
Four things to check before you click Finish in the deployment wizard, and what you get if you skip each one.

1. The hostname: lowercase letters, digits and hyphens

A valid hostname label uses letters, digits and hyphens (RFC 1123). Keep it lowercase to be safe: the 9.1 guide asks for the vCenter host name in Configure appliance to be typed in lowercase, and certificates can only cover letters, digits, periods and hyphens (as KB 389711 points out).

No underscores. In my case an appliance deployed with an underscore in its name (something like dr_appliance_01) simply never took its IP address after the first boot. I did not find a Protection and Recovery KB that describes that exact symptom, so take it as a field observation. There is, however, a closely related Broadcom article for the older vSphere Replication appliance: KB 389711. With an underscore in the hostname the appliance cannot be reconfigured (“Failed to register VRMS”) and the HMS log shows java.net.URISyntaxException: Illegal character in hostname. The KB’s own fix is to recreate the DNS record without the underscore, update the appliance hostname to the FQDN, change the certificate from the VAMI, reconfigure the appliance and reconnect the site pair.

For a freshly deployed appliance that never got its IP, my advice is simpler: fix the name in DNS and redeploy with a valid one. The name ends up in certificates and registrations, and a clean redeploy is cheaper than chasing leftovers.

2. Forward and reverse DNS for every FQDN

The deployment wizard lets you leave the hostname field blank. In that case, the guide says, the DNS server performs a reverse lookup of the appliance’s IP to get its host name, or the appliance registers with its IP as its host name. If you give it a static IP, you are asked to enter an FQDN for that IP. Either way, the safe baseline is the same:

WhatNeeds
Appliance FQDNA record and PTR record, both pointing at each other
Local and remote vCenterResolvable from the appliance, by the same FQDN you use at registration
Peer P&R appliancesResolvable from each other
ESXi hostsResolvable from the appliance (it talks to the hosts by name)

The PTR requirement is a recommendation of mine, not a sentence I found in a Broadcom KB. It is cheap, and a missing PTR is exactly the kind of problem that shows up as a confusing error three steps later. Check both directions from a machine in the same network as the appliance:

nslookup dr-appliance-01.example.com        # forward: must return the appliance IP
nslookup 192.0.2.25                          # reverse: must return the same FQDN

Then use exactly that FQDN from now on. The site-pair wizard compares the address you type with the one used during installation of the other appliance, so a short name in one place and an FQDN in another is a self-inflicted failure.

3. DNS must be reachable at first boot (KB 429918)

This one is a known issue and it has a KB: KB 429918, DNS Resolution Fails and 15-Minute Network Delay on newly deployed 9.0.5 or 9.0.4 VMware Live Recovery Appliances. The article also lists Protection and Recovery 9.1. It does not distinguish combined from scale-out.

What you see on a newly deployed appliance:

  • Roughly 15 minutes pass before networking comes up after boot.
  • DNS resolution then fails. The VAMI shows the correct DNS servers, but /etc/resolv.conf is empty or points at the local stub listener 127.0.0.53.
  • Manual edits to /etc/resolv.conf disappear after a reboot or after restarting systemd-networkd.
  • Tasks that need names fail, for example a plan task with “Failed to connect to NFC service: Temporary failure in name resolution”.

According to the KB, the appliance uses the systemd-resolved stub file by default. If the DNS servers cannot be reached during boot, the stub is not populated from the network configuration, and the OS waits for network resources, which explains the delay. The workaround is to point /etc/resolv.conf at the static file that systemd maintains, so the stub listener is bypassed. As root on the appliance:

unlink /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl restart systemd-networkd     # or reboot
cat /etc/resolv.conf                    # your DNS servers must be listed

Note that the KB says you still need to fix the underlying reason the DNS servers were unreachable at boot (firewall, wrong VLAN, DNS server not answering from that network). The symlink only stops the appliance from being so fragile about it.

4. If your domain ends in .local

KB 415597 describes VMware Live Recovery 9.x appliances that cannot resolve names ending in .local: nslookup answers REFUSED from 127.0.0.53 and the vCenter connection fails with “Unable to connect to host” during configuration. It is a known Photon OS behavior, because .local is reserved for link-local/mDNS use (RFC 6762). The KB does not mention Protection and Recovery by name, so treat its applicability as likely but unconfirmed. The fix is to add your domain to the appliance’s DNS search domains. SSH as admin, switch to root, and run:

nmctl show-domains
nmctl set-dns-domains dev eth0 domains example.local
nmctl show-domains
nslookup vcenter.example.local          # should answer, not REFUSED

If you have a say in the naming, a real routable domain name avoids this whole class of problems.

Pre-deployment checklist

  1. Hostname: lowercase letters, digits and hyphens. No underscores.
  2. A and PTR records created for every appliance FQDN, verified in both directions.
  3. The vCenters (local and remote) and the ESXi hosts resolve from the appliance network.
  4. DNS servers are reachable from the appliance network at boot time (firewall, VLAN, routing).
  5. Domain ends in .local? Plan to add it to the search domains.
  6. Decide the FQDN you will use for registration and pairing, and use that exact string everywhere.
  7. After the first boot, check /etc/resolv.conf and apply the KB 429918 workaround if it is empty or points at 127.0.0.53.
Caveats. KB 429918 and KB 415597 describe appliance versions and wording that may change as Broadcom updates them; check the current text. The underscore symptom (appliance never taking its IP) and the PTR advice are my own field notes, not statements from a Protection and Recovery KB. Test on a lab appliance before you apply any workaround in production.

References