Skip to content

Latest commit

 

History

History
160 lines (109 loc) · 5.39 KB

vpc-bm-vmware-dns.md

File metadata and controls

160 lines (109 loc) · 5.39 KB
subcollection copyright lastupdated lasttested content-type services account-plan completion-time use-case
solution-tutorials
years
2024
2024-01-05
tutorial
vpc, vmwaresolutions, dns-svcs
paid
1h
ApplicationModernization, Vmware

{{site.data.keyword.attribute-definition-list}}

Provision {{site.data.keyword.dns_full_notm}} for VMware deployment

{: #vpc-bm-vmware-dns} {: toc-content-type="tutorial"} {: toc-services="vpc, vmwaresolutions, dns-svcs"} {: toc-completion-time="1h"}

This tutorial may incur costs. Use the Cost Estimator to generate a cost estimate based on your projected usage. {: tip}

This tutorial is part of series, and requires that you have completed the related tutorials in the presented order. {: important}

In this tutorial, you will deploy {{site.data.keyword.dns_full_notm}} for a VMware Deployment in {{site.data.keyword.vpc_short}}. {{site.data.keyword.dns_full_notm}} will be used and your {{site.data.keyword.vpc_short}} will be configured to access and use the deployed DNS serrvice. {: shortdesc}

Objectives

{: #vpc-bm-vmware-dns-objectives}

In this tutorial {{site.data.keyword.dns_full_notm}} is used as the {{site.data.keyword.dns_full_notm}} solution for the VMware Deployment.

Deploying DNS service for a VMware Deployment{: caption="Figure 1. Deploying DNS service for a VMware Deployment" caption-side="bottom"}

Before you begin

{: #vpc-bm-vmware-dns-prereqs}

This tutorial requires:

  • Common prereqs for VMware Deployment tutorials in {{site.data.keyword.vpc_short}}

This tutorial is part of series, and requires that you have completed the related tutorials. Make sure you have successfully completed the required previous steps:

Login with IBM Cloud CLI with username and password, or use the API key. Select your target region and your preferred resource group.

The used variables e.g. $VMWARE_VPC_CRN are defined in the previous steps of this tutorial. {: note}

Provision IBM Cloud DNS service

{: #vpc-bm-vmware-dns-provision} {: step}

  1. Create the DNS service using the standard-dns plan and get its ID.

    VMWARE_DNS=$(ibmcloud dns instance-create dns-vmware standard-dns --output json | jq -r .id)

    {: codeblock}

  2. Set the DNS as a default DNS target.

    ibmcloud dns instance-target $VMWARE_DNS

    {: codeblock}

Provision a Zone

{: #vpc-bm-vmware-dns-zone} {: step}

  1. Provision a zone. In this example vmware.ibmcloud.local is used, but you may modify this to fit your needs.

    VMWARE_DNS_ZONE_NAME=vmware.ibmcloud.local

    {: codeblock}

    VMWARE_DNS_ZONE=$(ibmcloud dns zone-create $VMWARE_DNS_ZONE_NAME -d "Zone for VMware on VPC" --output json | jq -r .id)

    {: codeblock}

  2. Add your previously created {{site.data.keyword.vpc_short}} in the permitted networks. Use the {{site.data.keyword.vpc_short}} CRN here.

    ibmcloud dns permitted-network-add $VMWARE_DNS_ZONE --vpc-crn $VMWARE_VPC_CRN

    {: codeblock}

Creating DNS records

{: #vpc-bm-vmware-dns-record} {: step}

DNS records for the ESXi hosts will be created after they will be provisioned in the next tutorial following the commands provided below. {: note}

  1. To create DNS records via CLI, the following command provides a help for record creation.

    ibmcloud dns resource-record-create --help

    {: codeblock}

  2. To create A records for your previously created Zone vmware.ibmcloud.local, you can use the following CLI command (modify the 'NAME' and 'IP_ADDRESS' accordingly):

    ibmcloud dns resource-record-create $VMWARE_DNS_ZONE --type A --name NAME --ipv4 IP_ADDRESS

    {: codeblock}

Validate DNS records

{: #vpc-bm-vmware-dns-validation} {: step}

  1. List information about configured zones in your DNS instance dns-vmware. Use the following command.

    ibmcloud dns zones -i dns-vmware

    {: codeblock}

  2. List information about configured records in your DNS instance dns-vmware and zone vmware.ibmcloud.local. Use the following command.

    ibmcloud dns resource-records $VMWARE_DNS_ZONE -i dns-vmware 

    {: codeblock}

  3. Verify that you permitted your {{site.data.keyword.vpc_short}} networks to access and use the DNS service:

    ibmcloud dns permitted-networks $VMWARE_DNS_ZONE

    {: codeblock}

  4. When a DNS record is created during the tutorial, validate that you get correct responses from your Windows Jump host, for example using nslookup via Windows command line.

    nslookup <hostname>

    {: codeblock}

Next steps

{: #vpc-bm-vmware-dns-next-steps}

The next step in the tutorial series is: