Configuration Networking - vmware-archive/lightwave GitHub Wiki
Once you promote a node, it runs its own DNS server. Your other client and server machines should point their DNS resolvers to use this new DNS server.
In Photon (or other Linux distributions using Systemd and Networkd) set the DNS server and Domain name in the *.network config file.
- dnsIP=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
(assumes your main NIC is eth0, manually set this to your main node's IP if it doesn't work) vmDomainName=yourdomain.com
- sed -e "s/([Network])/\1\nDNS=${dnsIP}/" -i /etc/systemd/network/*.network
- sed -e "s/([Network])/\1\nDomains=${vmDomainName}/" -i /etc/systemd/network/*.network
- systemctl restart systemd-networkd
- systemctl restart systemd-resolved
Your *.network file should look something like:
[Network]
DNS=203.0.113.1
Domains=yourdomain.com
If you're dealing with a DHCP server, some additional options may be needed, in a new [DHCP] section at the bottom of the *.network file:
[DHCP]
UseHostname=false
UseDNS=false
You can then add a forwarder to your old DNS server:
- /opt/vmware/bin/vmdns-cli add-forwarder --server --username administrator --domain yourdomain.com --password <password