Today I discovered that I had issue with DNS in my VCSA. I could not resolve servers without suffix.
I decided to check
resolv.conf file and I notice there was no
Search Domain present.
In VAMI there is an option to change your DNS settings, however there is no option to add
The resolv.conf is not editable. I mean you could do the changes but it will be overwritten.
Here is a simple way how to add Domain Search to vCenter 7.x:
- SSH to VCSA
- Run this command to make a backup file
cp /etc/systemd/resolved.conf /etc/systemd/resolved.conf-OLD
- Edit /etc/resolv.conf and add Domains:
[Resolve] DNS=192.168.88.22 FallbackDNS=18.104.22.168 Domains=yourdomain.local
- Save the file
- Restart service:
service systemd-resolved restart
- Check the status:
After this I could resolve name without suffix! And once
cat /etc/resolv.conf the Domain Search was there.
Please like and share to spread the knowledge in the community.
If you have a questions, let’s chat on Twitter: https://twitter.com/AngrySysOps
Visit my FB page: https://www.facebook.com/AngrySysOps
Subscribe to my YouTube channel: https://www.youtube.com/channel/UCRTcKGl0neismSRpDMK_M4A