Re: [Dnsmasq-discuss] Is leasquery supported in Dnsmasq

2023-02-24 Thread Nicolas Cavallari

On 24/02/2023 10:13, Rashi Krishna wrote:

Hi all.

I just wanted to know if leasequery is supported in Dnsmasq. I tried
sending a leasequery to the server, but I couldn't get any response.


There does not seem to be any leasequery (RFC 4388) support in dnsmasq.

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


Re: [Dnsmasq-discuss] How to set no gateway

2023-02-24 Thread Matus UHLAR - fantomas

On 24.02.23 04:54, Donald Muller wrote:

This may or may not be a dnsmasq question/issue. If not, sorry for the noise.


I have two networks.  One is a 1GB routable network.  The other is a 2.5GB 
private, non-routable network.  The DHCP server (dnsmasq) is attached to 
both networks and all addresses are assigned via DHCP.  The address on the 
private network all have reservations.  DHCP is working fine and addresses 
are properly assigned.  The issue I am having is that I don't want the 
private network to have a default gateway.  Is there a way via DHCP to 
tell the client to net set a default gateway when the IP configuration 
information is sent?


I have this in dnsmasq.conf file:

# Override the default route supplied by dnsmasq and send no default
# route at all. Note that this only works for the options sent by
# default (1, 3, 6, 12, 28) the same line will send a zero-length option
# for all other option numbers.
#dhcp-option=3

perhaps this helps
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
42.7 percent of all statistics are made up on the spot.

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


[Dnsmasq-discuss] Is leasquery supported in Dnsmasq

2023-02-24 Thread Rashi Krishna
Hi all.

I just wanted to know if leasequery is supported in Dnsmasq. I tried
sending a leasequery to the server, but I couldn't get any response.

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


Re: [Dnsmasq-discuss] Query on "strict-order"

2023-02-24 Thread Simon Kelley




On 23/02/2023 13:58, Gomathi Shankar P S wrote:

Hi Simon,
Thanks for the response.

We have updated resolv.dnsmasq file with couple of false nameservers 
(just to experiment) at the top. With pinging /google.com 
/, we could observe that the dnsmasq (with 
*strict-order*) is reaching out to first nameserver and then to next 
nameserver and it gives up as both nameservers failed to respond.
With the immediate ping again, dnsmasq reached to third nameserver this 
time which resolved /google.com /.
We have tested the same with *dnsmasq* *v2.86* and we could see the same 
behavior.


Could you please confirm that dnsmasq (with *strict-order*) reaches out 
only to the top two nameservers one by one and gives up if both fail to 
respond? We are expecting dnsmasq to reach all the nameservers one by 
one until it gets the response.


Unfortunately, exactly what happens depends on how the client behaves. 
The first attempt at the query by the client gets sent to the first 
server, the second attempt goes to the second server, and so on. Most 
clients give up after one retry, so only the first two servers get 
queries. If you configure your clients to make more retries you'll see 
more upstream servers get hit.


There's a fundamental limitation of the DNS UDP protocol: there's 
nothing that dnsmasq can send to the client which means "I'm still 
working, please wait". If the client doesn't see an answer during its 
timeout period, it will give up and it makes no difference if dnsmasq is 
still working down a long list of servers.


This is why strict-order is generally a bad idea: without strict order 
dnsmasq can send the query to all available servers in parallel, and it 
does much better at finding one which works.


Cheers,

Simon.



I agree that having unreliable upstream servers are not recommended but 
sometimes our nameservers fail to respond due to other issues.


Thanks
Gomathi Shankar P S


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


Re: [Dnsmasq-discuss] Is leasquery supported in Dnsmasq

2023-02-24 Thread Rashi Krishna
Thanks for the update. If I want to add the code myself, do you have any
pointers to where to get started from?

Thanks again,
Rashi

On Fri, 24 Feb, 2023, 16:23 Nicolas Cavallari, <
nicolas.cavall...@green-communications.fr> wrote:

> On 24/02/2023 10:13, Rashi Krishna wrote:
> > Hi all.
> >
> > I just wanted to know if leasequery is supported in Dnsmasq. I tried
> > sending a leasequery to the server, but I couldn't get any response.
>
> There does not seem to be any leasequery (RFC 4388) support in dnsmasq.
>
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] How to set no gateway

2023-02-24 Thread Donald Muller



> -Original Message-
> From: Dnsmasq-discuss 
> On Behalf Of Matus UHLAR - fantomas
> Sent: Friday, February 24, 2023 5:46 AM
> To: dnsmasq-discuss@lists.thekelleys.org.uk
> Subject: Re: [Dnsmasq-discuss] How to set no gateway
> 
> On 24.02.23 04:54, Donald Muller wrote:
> > This may or may not be a dnsmasq question/issue. If not, sorry for the
> noise.
> 
> > I have two networks.  One is a 1GB routable network.  The other is a 2.5GB
> > private, non-routable network.  The DHCP server (dnsmasq) is attached to
> > both networks and all addresses are assigned via DHCP.  The address on
> the
> > private network all have reservations.  DHCP is working fine and addresses
> > are properly assigned.  The issue I am having is that I don't want the
> > private network to have a default gateway.  Is there a way via DHCP to
> > tell the client to net set a default gateway when the IP configuration
> > information is sent?
> 
> I have this in dnsmasq.conf file:
> 
> # Override the default route supplied by dnsmasq and send no default
> # route at all. Note that this only works for the options sent by
> # default (1, 3, 6, 12, 28) the same line will send a zero-length option
> # for all other option numbers.
> #dhcp-option=3
> 
> perhaps this helps

Thank you for responding Matus. It worked perfectly!

This behavior should really be documented.

Don

> --
> Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> 42.7 percent of all statistics are made up on the spot.
> 
> ___
> 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] How to set no gateway

2023-02-24 Thread Donald Muller



> -Original Message-
> From: Dnsmasq-discuss 
> On Behalf Of Geert Stappers
> Sent: Friday, February 24, 2023 4:18 PM
> To: dnsmasq-discuss@lists.thekelleys.org.uk
> Subject: Re: [Dnsmasq-discuss] How to set no gateway
> 
> On Fri, Feb 24, 2023 at 04:54:28AM +, Donald Muller wrote:
> >
> > I have two networks. One is a 1GB routable network. The other is a 2.5GB
> > private, non-routable network. The DHCP server (dnsmasq) is attached
> > to both networks and all addresses are assigned via DHCP. The address
> > on the private network all have reservations. DHCP is working fine
> > and addresses are properly assigned. The issue I am having is that I
> > don't want the private network to have a default gateway. Is there a
> > way via DHCP to tell the client to net set a default gateway when the
> > IP configuration information is sent?
> 
> Usually, if not always, goes default gateway in the reply DHCP packets.
> 
> For the "private network"  play with configuring 0.0.0.0  or a
> non-existing host on that network as default gateway.
> 

I tried 0.0.0.0 and before I discovered that the man page states - "The special 
address 0.0.0.0 is taken to mean "the address of the machine running dnsmasq"."

Matus UHLAR provide the solution by specifying 

DHCP-OPTION=3

With no parameters.


> 
> > This may or may not be a dnsmasq question/issue.
> 
> Please make it a dnsmasq thingy by reporting what works for you.
> 
> 
> > If not, sorry for the noise.
> 
> Just transmit what you consider as a valid message
> and let the recieving end decide whether it is noise.
> 
> 
> 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] Is leasequery supported in Dnsmasq

2023-02-24 Thread Geert Stappers
On Sat, Feb 25, 2023 at 12:40:06AM +0530, Rashi Krishna wrote:
> On Fri, 24 Feb, 2023, 16:23 Nicolas Cavallari wrote:
> > On 24/02/2023 10:13, Rashi Krishna wrote:
> > > Hi all.
> > >
> > > I just wanted to know if leasequery is supported in Dnsmasq. I tried
> > > sending a leasequery to the server, but I couldn't get any response.
> >
> > There does not seem to be any leasequery (RFC 4388) support in dnsmasq.
> >
> Thanks for the update. If I want to add the code myself, do you have any
> pointers to where to get started from?


git clone git://thekelleys.org.uk/dnsmasq.git
cd dnsmasq
make
git checkout -b rfc4388


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


Re: [Dnsmasq-discuss] How to set no gateway

2023-02-24 Thread Geert Stappers
On Fri, Feb 24, 2023 at 04:54:28AM +, Donald Muller wrote:
> 
> I have two networks. One is a 1GB routable network. The other is a 2.5GB
> private, non-routable network. The DHCP server (dnsmasq) is attached
> to both networks and all addresses are assigned via DHCP. The address
> on the private network all have reservations. DHCP is working fine
> and addresses are properly assigned. The issue I am having is that I
> don't want the private network to have a default gateway. Is there a
> way via DHCP to tell the client to net set a default gateway when the
> IP configuration information is sent?

Usually, if not always, goes default gateway in the reply DHCP packets.

For the "private network"  play with configuring 0.0.0.0  or a
non-existing host on that network as default gateway.


> This may or may not be a dnsmasq question/issue.

Please make it a dnsmasq thingy by reporting what works for you.


> If not, sorry for the noise.

Just transmit what you consider as a valid message
and let the recieving end decide whether it is noise.


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