[Dnsmasq-discuss] Minimal config: small # of A records, no upstream server
Geert Stappers
stappers at stappers.nl
Thu Jul 2 18:57:34 BST 2020
On Thu, Jul 02, 2020 at 06:16:49AM -0500, Johnny Utahh wrote:
> On 2020-07-02 2:18 AM, Geert Stappers wrote:
> > On Wed, Jul 01, 2020 at 10:06:36PM -0500, Johnny Utahh wrote:
> > > Hello,
> > >
> > > Do I need to make any edits/additions to the dnsmasq.conf below to support
> > > the following scenario?
> > >
> > > Ubuntu 20.04
> > > dnsmasq 2.80
> > >
> > > Details:
> > >
> > > I want to provide a _minimal_ DNS server. It *only* serves a few A records
> > > (from /etc/hosts).
> > >
> > > A key point: I want to make sure it does NOTHING else. No
> > > upstream-DNS-server/service connection. Any DNS requests sent to said server
> > > outside of the /etc/hosts A-record list will fail. Further: no DHCP, tftp,
> > > or any others. All of the other bells and whistles I do not know about: I
> > > want them disabled, too. Just plain old proper DNS records serving and
> > > associated error-condition handling.
> > >
> > > Additionally, the dnsmasq-based DNS server will bind/interface/respond-to
> > > only `eth8`.
> > >
> > >
> > > /etc/dnsmasq.conf:
> > > interface=eth8
> > > no-dhcp-interface=eth8
> > >
> > That is indeed not enough for the desired use case.
> >
>
> Thanks, quite good to know. What edits or additions (to the following
> `/etc/dnsmasq.conf` or any other file) are needed to serve this use case?
Something that tells Dnsmasq to do non default things.
server=127.0.0.1#13131
The idea is that dnsmasq does go searching for an upstream DNS. That it
uses localhost port 13131. With nothing at 13131 should result in
a "nothing here" and thus ending the DNS resolve attempt. If that truely
gets back to the DNS client as "hostname not found" is unknown to me.
In other words: Default behaviour of dnsmasq is to use the DNS available
to the host. Original Poster doesn't want that, so should do something
extra to prevent. But be aware that I never have travelled that road.
Euh yes, I would like to hear how it went.
> > Regards
> > Geert Stappers
> > While testing a new community member.
New members are welcome.
It is a duty of the whole community to let them blend in.
Regards
Geert Stappers
--
Silence is hard to parse
More information about the Dnsmasq-discuss
mailing list