DNS configuration with esxcli

October 17, 2011 — 5 Comments

With release of ESXi 5.0 the esxcli command has been also vastly improved. One of this new capabilities is the possibility to manage the DNS configuration of the server.

The basic syntax for dns is:

~# esxcli network ip dns

This gives you two namespaces to work with:

  • search
  • server

esxcli_dns1

With the first one you can manage the suffixes for DNS search and the second is for the DNS server to be used by the ESXi.

  • Server operations
    List the servers configured:

image

Add a new server:

image

Remove a configured server:

image

  • Domain search operations

List configured domain suffixes:

image

Add a new domain:

image

Remove a configured domain:

image

Juanma.

Advertisements

5 responses to DNS configuration with esxcli

  1. 

    Hi, sorry for commenting on this old post… :)
    Just had a question regarding esxi and dns and found you via google.

    Is there a way to make an esxi server register itself on a dns server? Or perhaps a command to do it, like the ipconfig /registerdns on a windows client?

    Best regards/
    Sysadmin

    • 

      Hi, thanks for the comment. AFAIK there is no way through esxcli to make the ESXi server to register itself. However I’ll investigate further through other ways and will write a follow-up post if I find the way :-)

  2. 

    Have you ever considered publishing an ebook or guest authoring on other websites?
    I have a blog centered on the same topics you discuss and would really like to have you share some stories/information. I know my
    audience would appreciate your work. If you’re even remotely interested,
    feel free to shoot me an e-mail.

  3. 

    Howdy just wanted to give you a brief heads up and let
    you know a few of the pictures aren’t loading properly.
    I’m not sure why but I think its a linking
    issue. I’ve tried it in two different web browsers
    and both show the same outcome.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s