I'd like to setup dnsmasq as an authoritative DNS server, but can't find any good guides for it. So could somebody please post a sample configuration of dnsmasq as an authoritative DNS server (with some basic options, such as A records)? I'd also like to know the path of the configuration, just so I set it up properly.
EDIT: Some clarification on my use case:
I intend to setup an authoritative DNS server so I can have automatic renewal of Let's Encrypt certificates using the DNS-01 challenge.
What I do not understand:
I've breifly read over http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html, but I don't understand which options are required for a basic configuration in authoritative only mode, nor how to configure the options.

  • Did you look at thekelleys.org.uk/dnsmasq/docs/setup.html ? Commented May 1, 2018 at 13:33
  • Yes, but I don't understand much of it, so that's why I'm asking for a sample configuration.
    – Giraffer
    Commented May 1, 2018 at 13:54
  • Start by explaining what you do not understand then... go back to the basics, state your question with all details on your use case. Commented May 1, 2018 at 14:17
  • @PatrickMevzek I've updated my question. If it still needs improvement, please post another comment telling me what information I should include. Thanks in advance!
    – Giraffer
    Commented May 1, 2018 at 14:42

1 Answer 1

# Do not read /etc/resolv.conf

# Do not read /etc/hosts

# e.g. 
# Define the zone
# Set SOA record
# Set A record
# Set MX record
# Set TXT record

I found a good example. https://www.onderka.com/computer-und-netzwerk/autoritativer-dns-server-mit-dnsmasq/

By the way, do you know acme-dns? https://github.com/joohoi/acme-dns

It's more suitable for automatic renewals of Let's Encrypt certificates.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .