Getting started with IBM Cloud DNS Services
IBM Cloud® DNS Services provides private DNS to Virtual Private Cloud (VPC) users. Private DNS zones are resolvable only on IBM Cloud, and only from explicitly permitted networks in an account. To get started, create a DNS Services instance using the IBM Cloud console.
Before you begin
To use DNS Services, you must have at least one virtual server instance in a VPC in the IBM Cloud. If you do not have one, learn how to get started with Virtual Private Cloud.
While the private DNS resolvers are required to resolve private DNS names, they also resolve public DNS names if the request is for a name that is not defined to be in a private DNS zone.
Step 1: Create a DNS Services instance
- Open the IBM Cloud catalog page and select Networking.
- Click the DNS Services tile.
- In the Create tab, select a pricing plan and optionally update the default the service name and resource group.
- Click Create.
Step 2: Add a DNS zone
- From the resource page, select the DNS Services instance.
- Click the Create zone button on the DNS Zones page.
- Enter a fully qualified domain name for the zone and optionally add a label and description. The domain name can have a maximum of 5 levels. You can define subdomains within the zone later.
- Click Create zone.
- If the zone creation is successful, you are directed to the zone details page.
Step 3: Add DNS resource records
- Select the zone from the table on the DNS Zones page.
- Select the DNS records tab.
- Click Add record.
- In the panel that appears, select the type of DNS record you are adding from the Type menu.
- Input the required data for the type of DNS record selected.
- Click Add record.
Step 4: Add a VPC as a permitted network to the DNS zone
- Select the zone from the table on the DNS Zones page.
- Select the Permitted networks tab.
- Click Add network.
- Select the region from the Region drop-down menu to see the list of networks in that region.
- Select the network from the list and click Add network.
Resources in the VPC can resolve records associated with the DNS zone (see Step 3 to add records to the DNS zone). The DHCP server returns the DNS servers (161.26.0.7
and 161.26.0.8
)
provided by DNS Services in its responses. If you have DHCP disabled on a server in the VPC, it is your responsibility to configure the DNS server IP addresses statically on that server, according to your operating system's documentation.
Step 5: Verify that DNS name resolution works from the VPC
Test whether the zone resolution works using a dig
from the virtal server instance on your VPC. The following command should yield a resolution as the result.
dig www.example.com
Next Steps
Follow the steps in these detailed guides to use the API for: