Hey,
I want to configure more than 2 DNS servers for a ESXi 5.1 host.
Per vSphere-Client, or per DCUI I only can set 2 entries for that.
Is it possible to implement a third DNS server??
Best Regards,
Andre
You can add a third DNS server by using esxcli. Enable SSH on the host and connect to it. Then use the command:
esxcli network ip dns server list
To show your current DNS servers
esxcli network ip dns server add --server=<ip>
To add a third DNS server.
Then check the current DNS servers again by using the first esxcli command. Example:
DNSServers: 172.20.31.10, 192.168.1.1, 192.168.1.2
You can add a third DNS server by using esxcli. Enable SSH on the host and connect to it. Then use the command:
esxcli network ip dns server list
To show your current DNS servers
esxcli network ip dns server add --server=<ip>
To add a third DNS server.
Then check the current DNS servers again by using the first esxcli command. Example:
DNSServers: 172.20.31.10, 192.168.1.1, 192.168.1.2
Maybe when using esxcli..
But don't know if it actually will be used in case the first two doesn't respond..
~ # esxcli network ip dns server add -s 8.8.8.8
~ # esxcli network ip dns server list
DNSServers: 10.xxx.xxx.xxx, 10.xxx.xxx.xxx, 8.8.8.8
~ # cat /etc/resolv.conf
nameserver 10.xxx.xxx.xxx
nameserver 10.xxx.xxx.xxx
nameserver 8.8.8.8
search who.gives
~ #
/Rubeck
Ups 🙂
It will be used, so this is possible.
Wonderful - it works!!
Thank you very much, TomTom and Rubeck!!!
is this still the only way to add a third DNS entry?