VMware Cloud Community
lookandfeel
VMware Employee
VMware Employee
Jump to solution

Configure a third DNS entry?

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

0 Kudos
1 Solution

Accepted Solutions
tomtom901
Commander
Commander
Jump to solution

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

View solution in original post

6 Replies
tomtom901
Commander
Commander
Jump to solution

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

Rubeck
Virtuoso
Virtuoso
Jump to solution

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

Rubeck
Virtuoso
Virtuoso
Jump to solution

Ups 🙂

0 Kudos
tomtom901
Commander
Commander
Jump to solution

It will be used, so this is possible.

0 Kudos
lookandfeel
VMware Employee
VMware Employee
Jump to solution

Wonderful - it works!!

Thank you very much, TomTom and Rubeck!!!

0 Kudos
abugeja
Hot Shot
Hot Shot
Jump to solution

is this still the only way to add a third DNS entry?

0 Kudos