To configure MaraDNS on Debian/Ubuntu, you will need to edit the /etc/maradns/mararc
configuration file. Here are the basic steps:
Open a terminal window.
Open the /etc/maradns/mararc
configuration file using your favorite text editor. For example, you can use the following command to open the file with the Nano editor:
sudo nano /etc/maradns/mararc
ipv4_bind
: This option specifies the IP address that MaraDNS should listen on for incoming requests. By default, it listens on all available IP addresses. If you want to restrict it to a specific IP address, you can set this option to that address.
ipv6_bind
: This option is similar to ipv4_bind
, but for IPv6 addresses.
chroot_dir
: This option specifies the directory that MaraDNS should chroot to when it starts up. This can be a security measure to prevent unauthorized access to system files.
csv2
: This option is used to configure MaraDNS as a recursive DNS server. You can specify one or more “upstream” DNS servers that MaraDNS should use to resolve queries that it can’t answer itself.
Save your changes to the configuration file and exit the text editor.
Restart the MaraDNS service to apply the new configuration by running the following command:
sudo service maradns restart
That’s it! MaraDNS should now be configured according to your preferences. You can test it by using a DNS query tool, such as nslookup
or dig
.