VMware vSphere

 View Only
Expand all | Collapse all

How to set DNS server address?

  • 1.  How to set DNS server address?

    Posted Jul 29, 2018 10:41 AM

    Hello,

    vSphere 6.7

    We have host with two NIC:

    nic0 (vmk0, vswitch0) - public IP settings (get via provider DHCP)

    nic1 (vmk1, vswitch1) - private IP settings (manually set)

    How to set my private DNS server address in this configuration?



  • 2.  RE: How to set DNS server address?

    Posted Jul 29, 2018 12:05 PM

    Why is vmnic0 getting a public DHCP address from a separate provider? What are you attempting to do with ESXi here?



  • 3.  RE: How to set DNS server address?

    Posted Jul 29, 2018 09:27 PM

    >>Why is vmnic0 getting a public DHCP address from a separate provider? What are you attempting to do with ESXi here?

    vmnic0 for emergency access from Internet, vmnic1 for regular access from LAN.



  • 4.  RE: How to set DNS server address?

    Posted Jul 29, 2018 09:31 PM

    I'll answer both points. Opening your ESXi host up to access from the Internet is an *extremely bad idea* and should be absolutely avoided. Also, for the TCP/IP stack question, you cannot reassign a vmkernel port to a stack once it has been created.



  • 5.  RE: How to set DNS server address?

    Posted Jul 29, 2018 09:44 PM

    >>Opening your ESXi host up to access from the Internet is an *extremely bad idea*

    this is open only to our ip-addresses



  • 6.  RE: How to set DNS server address?

    Posted Jul 29, 2018 10:21 PM

    It's still not a good idea and there are other, more secure ways to guarantee access to a hypervisor.



  • 7.  RE: How to set DNS server address?

    Posted Jul 29, 2018 10:38 PM

    >>there are other, more secure ways to guarantee access to a hypervisor.

    what?



  • 8.  RE: How to set DNS server address?

    Posted Jul 29, 2018 10:48 PM

    Use VPN to access your host from a secured connection. Or, do the same but for your OOB management connection (iDRAC, iLO, CIMC, etc). Internet access, regardless of the ACLs in place, is always to be avoided.



  • 9.  RE: How to set DNS server address?

    Posted Jul 29, 2018 10:51 PM

    >>Use VPN to access your host from a secured connection.

    ESXi can act as VPN-server? Really?



  • 10.  RE: How to set DNS server address?

    Posted Jul 29, 2018 10:59 PM

    No, you'll need to set that up separately.



  • 11.  RE: How to set DNS server address?

    Posted Jul 29, 2018 11:04 PM

    >>No, you'll need to set that up separately.

    We cannot setup any hardware to this datacenter.



  • 12.  RE: How to set DNS server address?

    Posted Jul 29, 2018 11:31 PM

    You need to, at the very least, be using OOB management on your physical ESXi servers.



  • 13.  RE: How to set DNS server address?

    Posted Jul 29, 2018 11:38 PM

    ilo/idrac can not be used as vsphere client



  • 14.  RE: How to set DNS server address?

    Posted Jul 29, 2018 11:40 PM

    That's not the point.



  • 15.  RE: How to set DNS server address?

    Posted Jul 29, 2018 01:40 PM

    Per my understanding, you can create a custom TCP/IP stack so that you can assign a different DNS for the private network -

    How to Configure Multiple TCP/IP Stacks in vSphere 6 -- Virtualization Review

    Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

    Cheers,

    Supreet



  • 16.  RE: How to set DNS server address?

    Posted Jul 29, 2018 09:29 PM

    >>Per my understanding, you can create a custom TCP/IP stack so that you can assign a different DNS for the private network

    Ok, but how to change TCP/IP stack on existing vmkernel adapter?

    Also, i do not see DNS configuration in Custom stack.