VMware Cloud Community
jjohnston1127
Hot Shot
Hot Shot
Jump to solution

Updating ESX host DNS servers

Is there a way to refresh the host DNS services without doing a reboot?

I'm not running HA or anything at the moment.

Not to hip with the command line stuff yet.

0 Kudos
1 Solution

Accepted Solutions
sbeaver
Leadership
Leadership
Jump to solution

cp /etc/resolve.conf /etc/resolve.conf.bak

echo "search domain.com" >> /etc/resolv.conf

echo "nameserver 10.10.10.13" >> /etc/resolv.conf

echo "nameserver 10.10.10.12" >> /etc/resolv.conf

echo "nameserver 10.10.10.13" >> /etc/resolv.conf

service network restart

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**

View solution in original post

0 Kudos
6 Replies
sbeaver
Leadership
Leadership
Jump to solution

cp /etc/resolve.conf /etc/resolve.conf.bak

echo "search domain.com" >> /etc/resolv.conf

echo "nameserver 10.10.10.13" >> /etc/resolv.conf

echo "nameserver 10.10.10.12" >> /etc/resolv.conf

echo "nameserver 10.10.10.13" >> /etc/resolv.conf

service network restart

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
boydd
Champion
Champion
Jump to solution

If your talking about cached DNS info on the host? Try "service network restart" from the cli.

DB

DB
0 Kudos
jjohnston1127
Hot Shot
Hot Shot
Jump to solution

Thanks for the help!

By restarting the networking service will the ESX host lose service console connectivity thus isolating the VMs on it temporarily?

0 Kudos
boydd
Champion
Champion
Jump to solution

Correct - console network will restart (it'll be quick).

DB

DB
sbeaver
Leadership
Leadership
Jump to solution

Yes but it should be quick enough but to make sure you can disable HA to do this

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
boydd
Champion
Champion
Jump to solution

I keep forgetting about HA and DRS for ESX (We use it sparingly). Hoping future version of ESX uses more variables to determine HA and DRS rules.

DB

DB
0 Kudos