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?
Why is vmnic0 getting a public DHCP address from a separate provider? What are you attempting to do with ESXi here?
>>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.
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.
>>Opening your ESXi host up to access from the Internet is an *extremely bad idea*
this is open only to our ip-addresses
It's still not a good idea and there are other, more secure ways to guarantee access to a hypervisor.
>>there are other, more secure ways to guarantee access to a hypervisor.
what?
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.
>>Use VPN to access your host from a secured connection.
ESXi can act as VPN-server? Really?
No, you'll need to set that up separately.
>>No, you'll need to set that up separately.
We cannot setup any hardware to this datacenter.
You need to, at the very least, be using OOB management on your physical ESXi servers.
ilo/idrac can not be used as vsphere client
That's not the point.
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
>>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.