Symptoms:
Usage Meter will not be able to connect to products that are part of .local domains to start usage data collection. As a result, supported VMware products part of .local domains cannot be added for metering in the Usage Meter web application.
When we try to resolve a domain with suffix .local in Usage Meter with nslookup, the following error will be thrown:
root@photon-machine [ /home/usagemeter ]# nslookup <HOSTNAME> Server: <IP> Address: <IP>#53 ** server can't find <HOSTNAME>: SERVFAIL
When we add the IP of one domain controller to nslookup, everything is resolved as it should:
root@photon-machine [ /home/usagemeter ]# nslookup <HOSTNAME> Server: <IP> Address: <IP>#53 Name: <HOSTNAME> Address: <IP>
Adding nameserver to /etc/resolv.conf does not help.
Notes:
Usage Meter 9.0 the following error will be thrown:
root@photon-xxxxxxxxxxx [ / ]# nslookup <HOSTNAME>
Server: 127.0.0.53
Address: 127.0.0.53#53
** server can't find <HOSTNAME>: REFUSED
VMware vCloud Usage Meter 4.x
VMware vCloud Usage Meter 9.0
This is a known issue with the Photon OS and it is documented here.
su root
cp /etc/systemd/resolved.conf /etc/systemd/resolved.conf.bak
vi resolved.conf
:wq!
reboot
su root
nmctl set-dns-domains dev eth0 domains xxxx.local
Note: This example assumes network interface is with name eth0
nmctl show-domains