In our last first guide, we have seen how to setup IDM server on Red Hat Enterprise Linux 7 using IPA. By following in this guide let’s create our reverse zone and first DNS entry for one of the server.

Initially while setting up we used auto reserve option to create the reserver zone. In case if it not created or you may need to create different zone lets see how to do the same.

Find previous articles related to the series:

Abbreviations Used:

  • GUIGraphical User Interface
  • CLICommand Line Interface
  • PTRPointer Record or Reverse Record
  • FQDNFully qualified domain name


Step 1: Create Reverse DNS Zone from GUI.

To create the reserve DNS zone click on top menu “Network Services”

creating dns zone in IPA server
creating DNS zone in IPA server

And select DNS Zones, It will list the existing zones. Here in our setup, we are able to see “linuxsysadmins.local” which we created during the initial setup.

IPA DNS server zone creation
IPA DNS server zone creation

To create a Reserve zone click “Add” in right side top corner.

Add DNS reverse zone in IDM server
Add DNS reverse zone in IDM server

It will pop-up a window to create a Reverse zone. By entering the IP range including subnet and click on “Add” will create the reverse zone.

IPA server PTR record auto creation
IPA server PTR record auto creation

By clicking on DNS Zones we are able to list the existing one along with created reverse zone and ready to use.

List created PRT zone in Red Hat IPA server
List created PRT zone in Red Hat IPA server

Network Services –> DNS Zones –> Add –> Reverse Zone IP Network –> Add.

Step 1:1 Create new DNS Zone with Reverse lookup from CLI.

To create a DNS zone from command line we have to use “IPA” command by following available options and argument. Let’s create and new zone with Reverse Zone.

# ipa dnszone-add nixsysadmins.local
# ipa dnszone-add 192.168.108.0/24
Create DNS zone using IPA command
Create a DNS zone using IPA command

To confirm the same navigate to Network Services –> DNS –> DNS zones it will be listed here as shown in the figure.

DNS zones created from IPA command line
DNS zones created from IPA command line

It’s super easy to create from CLI though.

Step 2: Creating the first DNS entry in the IPA server (GUI).

To create our first DNS entry click on the existing zone “linuxsysadmins.local“.

Creating DNS record in a zone
Creating a DNS record in a zone

By following enter the details to create the DNS entry.

Adding DNS resource Record
Adding DNS Resource Record
  1. Click “Add” to start creating DNS.
  2. Name to resolve with any IP “docker”.
  3. Choose Record type to create “A” record. (To point the Hostname to IP)
  4. IP address for name record to resolve.
  5. Check to create a reverse (PRT) record without additional steps.
  6. Click “Add” to create the DNS entry.

Once created it will be listed in DNS resource record page.

Created DNS record in a zone
Created DNS record in a zone

By checking “Create Reverse” PRT will be created. Let us verify and confirm the same.

Verify DNS PTR record creation
Verify DNS PTR record creation

Network Services –> DNS –> DNS Zones –> Click on 107.168.192.in-addr.arpa

Click on PTR record to get more information.

  1. Click on Reverse Zone (107.168.192.in-addr.arpa.)
  2. Record name used for reverse lookup.
  3. Record type (PTR).
  4. IP address resolves an FQDN.

Step 2:1 Creating the first DNS entry in the IPA server (CLI).

To create a new DNS record from CLI we have to use with IPA command. First, create forward lookup by following create PTR record.

# ipa dnsrecord-add nixsysadmins.local repo --a-rec 192.168.108.10
# ipa dnsrecord-add 108.168.192.in-addr.arpa 10 --ptr-rec repo.nixsysadmins.local
Create DNS records using IPA command from CLI
Create DNS records using IPA command from CLI

Verify by clicking on created Forward and reverse entry from the graphical interface.

Created forward lookup DNS record
Created forward lookup DNS record
DNS PTR record created using IPA command from CLI
DNS PTR record created using IPA command from CLI

We have successfully created a DNS entry from IPA CLI.


Step 3: Configure Static IP and resolve DNS name.

Configure 192.168.107.120 IP to anyone of the Physical or virtual machine to verify the DNS.

In below figure, we are able to see the Transient Hostname as “docker.linuxsysadmins.local”.

Created DNS record resolves and IP address
Created DNS record resolves an IP address

That’s it, we have successfully created DNS zones and creating DNS records from GUI and CLI in an IPA server.

Conclusion:

Have seen two ways of creating DNS zones and DNS records in IPA server, let’s see more in next topic. Subscribe with us to get more related topics through email.

Babin Lonston
Overall 14+ Years of experience in IT field, 7+ years of experience in Linux administration with Virtualization & Cloud technologies. Love documentation and being Numismatics for a long time.

How to install Docker on Red Hat Enterprise Linux and CentOS Linux 7

Previous article

How to search for docker images and launch a container

Next article

You may also like

Comments

Leave a reply

Your email address will not be published.