NetWorker: server upgraded to 19.11, backup fails reporting "Hostname resolution failed"
Summary: With the transition from NetWorker version 19.10 or earlier to version 19.11, backups fail. The backups reported "Hostname resolution failed"
Symptoms
The NetWorker client cannot fully resolve the Domain Name System (DNS).
nve:~ # nslookup lnx-srvr03.networker.lan
Server: 192.168.0.2
Address: 192.168.0.2#53
Name: lnx-srvr03.networker.lan
Address: 192.168.0.9
nve:~ # nslookup 192.168.0.9
** server can't find 9.0.168.192.in-addr.arpa: NXDOMAIN
There is no hosts file entry on the NetWorker server or client for the client's IP address and hostname aliases.
The NetWorker client's /nsr/logs/daemon.raw includes similar messaging to:
NetWorker: How to use nsr_render_log to render .raw log files
90480 MM/DD/YYYY HH:mm:SS 2 1 0 3527829312 3224523 0 client_hostname nsrexecd SYSTEM warning Unable to determine the name of address 'null': Non-recoverable failure in name resolution
90480 MM/DD/YYYY HH:mm:SS 4 6 0 3527829312 3224523 0 client_hostname nsrexecd NSR severe Unable to determine the name of address 'null': Non-recoverable failure in name resolution
If the client cannot resolve the NetWorker server's IP address, the client's backup fails with the following:
Unable to create session channel with nsrexecd on host NETWORKER_CLIENT_NAME to execute command 'savefs -s NETWORKER_SERVER_NAME -c NETWORKER_CLIENT_NAME -g NSR_GROUP_NAME -p -l full -R -v': Unable to determine the name of address 'NETWORKER_SERVER's_IP': Name or service not known

Cause
There are changes to reverse DNS functionality in 19.11. The 19.11 NetWorker client resource contains a new field called reverse DNS state. The 19.11 NetWorker Administration Guide states the following:
Reverse name resolution or reverse DNS resolves IP addresses to hostnames. NetWorker attempts to reduce reverse DNS calls whenever possible. Reverse DNS is configured on every client resource in the NSRLA resource. The attribute reverse DNS state is modified in the NSRLA resource. NetWorker can be configured to use one of the following reverse DNS states:
- Cached: Reverse DNS lookups are allowed, and the lookups can be cached within NetWorker.
- Uncached: Reverse DNS lookups are allowed, and the lookups are not cached within NetWorker.
- Banned: Reverse DNS lookups are not allowed. Populating the alias field on a new client creation is reduced.
Resolution
Use one of the following three options. Depending on the name resolution configuration it may be necessary to perform these actions for NetWorker Server, Storage Node Client resource, and Client resources.
1. Resolve any DNS issues preventing successful FQDN, shortname, and reverse (IP) resolution of the client host.
NetWorker: Name Resolution Troubleshooting Best Practices
2. Create hosts file entries on the NetWorker server and client including the client's IP address, FQDN, and shortname.
Linux: /etc/hosts
Windows: C:\Windows\System32\drivers\etc\hosts
3. Change the NetWorker server and client's reverse DNS state. Edit the host in the Hosts tab in NMC or use nsradmin to modify the NSRLA resource. These methods are detailed below.
NMC:
2. Go to the Hosts tab.
3. In the hosts list, right-click the NetWorker server, and select Configure Local Agent.
4. From the local agent properties, go to the Advanced tab.
5. Set the Reverse DNS State to banned.
nsradmin
2. Access nsradmin against the nsrexecd process:
nsradmin -p nsrexecd3. Set the query to the nsrla resource
. type: nsrla4. Change the reverse DNS state value to banned.
update reverse DNS state: bannedConfirm the changes:
y
nve:~ # nsradmin -p nsrexecd
NetWorker administration program.
Use the "help" command for help, "visual" for full-screen mode.
nsradmin> . type: nsrla
Current query set
nsradmin> update reverse DNS state: banned
reverse DNS state: banned;
Update? y
updated resource id 3.0.64.11.0.0.0.0.191.39.127.102.192.168.0.4(74)
nsradmin> print
type: NSRLA;
name: nve.networker.lan;
reverse DNS state: banned;
nsrmmd version: 19.11.0.1.Build.38;
nsrsnmd version: 19.11.0.1.Build.38;
Multi-subnet state: Disabled;
TCP Retry: 5;
NW instance info operations: ;
NW instance info file: ;
installed products: ;
auth methods: "0.0.0.0/0,nsrauth";
max auth attempts: 8;
connection encrypted: Disabled;
module type: ;
module version: ;
administrator: root, "user=nsrnmc,host=nve.networker.lan",
"user=root,host=nve.networker.lan";
arch: x86_64;
kernel arch: x86_64;
CPU type: x86_64;
machine type: server;
OS: Linux 4.12.14-122.201-default;
NetWorker version: 19.11.0.1.Build.38;
client OS type: Linux;
CPUs: 4;
client timezone: EDT;
MB used: 10352;
IP address: 192.168.0.4, 10.240.192.221,
"fe80::250:56ff:febb:f020",
"fe80::250:56ff:febb:b7c0";
environment variable names: ;
nsradmin> quit
- Perform a backup of the clients that previously reported "Hostname Resolution Failed"