Re: [Dnsmasq-discuss] Doing a split zone config

2021-03-29 Thread Dirk Fieldhouse

On 29/03/2021 15:19, Roland Giesler wrote:

...>

I only want to overwrite the A record and want the other records to be
resolved from the public DNS.

I'm quite surprised that there haven't been many requests for this before,
since it's such a logical function imho.

Isn't -A/host.dom.ain/new_address (equivalently --address=...) what you
want?

Or --host-record=host.dom.ain,new_address if you want a matching PTR as
well?

/df

--
London SW6
UK

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Doing a split zone config

2021-03-29 Thread Lonnie Abelbeck



> On Mar 29, 2021, at 9:19 AM, Roland Giesler  wrote:
> 
> On Mon, 29 Mar 2021 at 08:52, Geert Stappers via Dnsmasq-discuss 
>  wrote:
> On Sun, Mar 28, 2021 at 10:11:01PM +0200, Roland Giesler wrote:
> > Is it possible to set up a split zone in dnsmasq?
> >

Yes, you can.

For split-horizon DNS, I define local IPv4 and IPv6 hosts in the /etc/hosts 
file.  dnsmasq can look at /etc/hosts first and will use it if found, else it 
will look upstream.

Lonnie



___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Doing a split zone config

2021-03-29 Thread Roland Giesler
On Mon, 29 Mar 2021 at 08:52, Geert Stappers via Dnsmasq-discuss <
dnsmasq-discuss@lists.thekelleys.org.uk> wrote:

> On Sun, Mar 28, 2021 at 10:11:01PM +0200, Roland Giesler wrote:
> > Is it possible to set up a split zone in dnsmasq?
> >
> > I mean a want more than just a host override, effectively only an A
> record
> > to be overridden and the other records blocked.
> >
> > So if I query abc.xyz from the internet I would get a public ip address
> and
> > the same for the mx record.  If I however query "dig abc.xyz" from the
> LAN
> > i would get my override record, 192.168.1.2.
> >
> > If I were to query "dig abc.xyz mx", I would get no response.  Is there
> a
> > way in which I can tell dnsmasq to give me the mx record
>
> Snippet from the dnsmasq manual page:
>
>-m, --mx-host=[[,],]
>   Return  an MX record named  pointing to the given
>   hostname (if given),
>
> > from the authoritative dns server?
>
> Query that authoritative DNS and enter the returned value
> in the dnsmasq configuration.
>
> I have seen that, but it does the exact opposite of what I'm looking for.
If I add a manual record in there, then it has to be manually updated when
the public mx record changes.

I only want to overwrite the A record and want the other records to be
resolved from the public DNS.

I'm quite surprised that there haven't been many requests for this before,
since it's such a logical function imho.


> > thanks
>
> I'm looking forward to the feedback.
>
>
> > *Roland *
>
>
> Groeten
> Geert Stappers
> --
> Silence is hard to parse
>
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Doing a split zone config

2021-03-29 Thread Geert Stappers via Dnsmasq-discuss
On Sun, Mar 28, 2021 at 10:11:01PM +0200, Roland Giesler wrote:
> Is it possible to set up a split zone in dnsmasq?
> 
> I mean a want more than just a host override, effectively only an A record
> to be overridden and the other records blocked.
> 
> So if I query abc.xyz from the internet I would get a public ip address and
> the same for the mx record.  If I however query "dig abc.xyz" from the LAN
> i would get my override record, 192.168.1.2.
> 
> If I were to query "dig abc.xyz mx", I would get no response.  Is there a
> way in which I can tell dnsmasq to give me the mx record

Snippet from the dnsmasq manual page:

   -m, --mx-host=[[,],]
  Return  an MX record named  pointing to the given
  hostname (if given),

> from the authoritative dns server?

Query that authoritative DNS and enter the returned value
in the dnsmasq configuration.

 
> thanks

I'm looking forward to the feedback.

 
> *Roland *


Groeten
Geert Stappers
-- 
Silence is hard to parse

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss