This article will show to configure a simple lightweight local DNS with DNSMASQ in Oracle Linux 7.
This is handy for a small private network and quite useful for a oracle homelab, especially to resolv hostname and domain name.
In this article, you'll need ...
... Oracle Linux 7 installed (see oel7 installation here)
... root access is needed
we are going to configure dnsmasq for the following hostname
As root, use the following commands:
If you need to add more nameservers, do as below.
Then simply add entries to
/etc/hosts file to make dnsmasq to resolve hostname
If you are using the Linux firewall, you need to open port 53 specifically.
For the iptables firewall, use the following commands.
For the firewalld firewall, use the following commands to open the port for the current runtime and permanently to persist through reboots.
Please leave comments and suggestions,
Enjoyed this article? Please like it or share it.