0

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.

4
  • Did you look at thekelleys.org.uk/dnsmasq/docs/setup.html ? 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
    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. 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
    May 1, 2018 at 14:42

1 Answer 1

4
# Do not read /etc/resolv.conf
no-resolv

# Do not read /etc/hosts
no-hosts

# e.g. 
# Define the zone
auth-zone=example.com
# Set SOA record
auth-soa=12345678,admin.example.com
# Set A record
address=/www.example.com/10.2.3.4
# Set MX record
mx-host=example.com,www.example.com,10
# Set TXT record
txt-record=_acme-challenge.www.example.com,f0o...bar

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.