VMware Cloud Community
harkamal
Expert
Expert

Add-VMHost - reverse name lookup

I am using Add-VMHost to add a host to vCenter.

Add-VMHost hostnameA

The issue is that my hostnameA gets resolved to ribHostA, and vCenter adds it as ribHostA -- which i had not asked for.

Can we tell vCenter or Add-vmhost, NOT to do reverse name lookup ?

Thanks in anticipation

HK

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

You could try

Add-VMHost hostnameA | Set-VMHostNetwork -Hostname hostnameA -DomainName <a-domain-name>

but be aware that this will change the hostname while the problem seems to be in the name resolution (I think).

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos