In the following post, we are going to talk about how to set-up dnsmasq for OCP.

How to install and configure the dnsmasq service for OCP

Step 1. Installing the dnsmasq-service

 sudo dnf -y install dnsmasq

Step 2. Checking the dnsmasq-service

 sudo systemctl status systemd-resolved
 sudo systemctl enable systemd-resolved

Step 3. Remove the symlinked created for /etc/resolv.conf

 sudo unlink /etc/resolv.conf

Step 4. Configuring the /etc/dnsmasq.conf

A minimal configuration example is available under the /etc/dnsmasq.conf

  ls -l  /etc/dnsmasq.conf
  -rw-r--r--. 1 root dnsmasq 27981 Jun 17 13:17 /etc/dnsmasq.conf