This guide is for Ubuntu 20.04 or higher installed as host OS on a local cluster.
Set up DNS with Dnsmasq
Make sure you have an ip address and the domain you want to use ready.
We're going to be using dnsmasq so we can use wildcards.
First, install dnsmasqsudo apt install dnsmasq
Now let's update the DNS configuration
edit the file
and add to the end# This option is also commented above in the file, but we add it to the end for ease of use.bind-interfaces# The line below comes from the domain you want to use and what ip you want to point it toaddress=/.onepanel.test/192.168.99.0
Restart dnsmasqsudo systemctl restart dnsmasq
Make dnsmasq dns server reachable
First, install and enable
resolvconfsudo apt-get install resolvconfsudo systemctl enable resolvconfsudo systemctl start resolvconf
Then, edit the
/etc/resolvconf/resolv.conf.d/tail file to make sure we keep the
Make sure the changes persist
Finally, reboot your machine.