VMware vSphere

 View Only
  • 1.  Configure a third DNS entry?

    Broadcom Employee
    Posted Nov 07, 2013 08:12 AM

    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



  • 2.  RE: Configure a third DNS entry?
    Best Answer

    Posted Nov 07, 2013 11:48 AM

    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



  • 3.  RE: Configure a third DNS entry?

    Posted Nov 07, 2013 11:49 AM

    Ups :-)



  • 4.  RE: Configure a third DNS entry?

    Posted Nov 07, 2013 11:52 AM

    It will be used, so this is possible.



  • 5.  RE: Configure a third DNS entry?

    Broadcom Employee
    Posted Nov 07, 2013 02:35 PM

    Wonderful - it works!!

    Thank you very much, TomTom and Rubeck!!!



  • 6.  RE: Configure a third DNS entry?

    Posted Nov 07, 2013 11:48 AM

    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



  • 7.  RE: Configure a third DNS entry?

    Posted Aug 17, 2020 05:27 AM

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