[Dnsmasq-discuss] Minimal config: small # of A records, no upstream server
Johnny Utahh
lists.thekelleys.org.uk at johnnyutahh.com
Thu Jul 2 12:48:18 BST 2020
Does the following serve the use case (mentioned below)?
I've updated my .conf, results below. I'm now intending records be read
from `/etc/dnsmasq_a_records` and _not_ `/etc/hosts`.
/etc/dnsmasq.conf:
port=[myport]
no-resolv
no-poll
interface=eth8
no-dhcp-interface=eth8
no-hosts
addn-hosts=/etc/dnsmasq_a_records
domain=[mydomain.tld]
On 2020-07-02 6:16 AM, Johnny Utahh wrote:
> On 2020-07-02 2:18 AM CDT, Geert Stappers wrote:
>> 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?
>
> /etc/dnsmasq.conf:
> interface=eth8
> no-dhcp-interface=eth8
>
>
> 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.
>>
>>
>>
>> Regards
>> Geert Stappers
>> While testing a new community member.
>
> --
> //
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
--
//
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200702/fb24b367/attachment.html>
More information about the Dnsmasq-discuss
mailing list