Skip to content

Create your first DNS zone and query it

In this getting-started guide you will create a DNS zone and configure DNS records for it. This guide shows the most common settings for a basic DNS setup. When following this guide, you will work with the STACKIT Portal. There are many other ways to manage DNS zones and records. For a deeper understanding, please consult Manage DNS zones, Manage DNS records and API Reference.

At first create a new zone:

  1. Visit the STACKIT portal.
  2. On the sidebar click on DNS.
  3. On the bar on the top click on Create DNS zone.
  4. Fill out all needed inputs in the wizard.
    • Zone name: Enter a freely choosable name.

    • Leave the Type-selector on Primary.

    • Fill out the Domain-field. If you own a domain, enter it here. If you don’t own a domain, activate the Use free STACKIT subdomain-select, enter a desired subdomain and choose a domain part in the dropdown.

      New zone information

  5. Click on Order fee-based.

To make your DNS zone useful, you need to add DNS records. In this guide, we’ll create some common record types that you’ll typically need.

In this guide we will create a TXT-record to allow Google mail servers to send mails for our newly created domain. This is among other things done with an SPF-entry.

  1. On the sidebar click on DNS.
  2. Click on your newly created zone.
  3. You will see the zone overview.
  4. On the left pane click on Resource records.
  5. On the top bar click on Create resource record.
  6. On the new pane enter all needed information:
    • Name: Leave the name-field blank.
    • Description: Optionally enter a Description.
    • TTL: Change the TTL to 600.
    • Type: Select TXT.
    • Record data: Paste v=spf1 include:_spf.google.com ~all.
  7. On the bottom of the pane, click on Create.

Before you can test your DNS zone, you need to update the nameservers at your domain registrar to use STACKIT DNS.

  1. Log in to your domain registrar’s control panel.
  2. Find the nameserver configuration for your domain.
  3. Replace the existing nameservers with the STACKIT nameservers you noted down in the previous step.
  4. Save the changes.

Test your DNS zone from your local machine

Section titled “Test your DNS zone from your local machine”

Once you’ve configured your DNS records and updated the nameservers at your registrar, you can test the DNS resolution from your local machine.

To verify that your TXT record is working correctly, follow these steps:

Replace my-getting-started-zone.stackit.rocks with the name of your zone.

  1. Open a PowerShell.

  2. Execute the following command:

    Terminal window
    nslookup -type=TXT my-getting-started-zone.stackit.rocks.
  3. Verify the result: Look for a line that starts with ;; ANSWER SECTION:

    Non-authoritative answer:
    my-getting-started-zone.stackit.rocks text =
    "v=spf1 include:_spf.google.com ~all"

    If you can find it and if you see a line with your SPF-record, than your creation was successful.

Now your DNS zone is set up and ready to serve DNS queries for your domain. You can manage and update your DNS records at any time through the STACKIT Portal or with the other options described in this chapter.

From here you can explore more advanced DNS features:

  • Learn about handling the product in the How-Tos.
  • Start with inter-topic guides in the Tutorials section.