Re: [Dnsmasq-discuss] Is dnsmasq supposed to listen on UDP port 0.0.0.0:67 when listen-address is specified?

2017-12-22 Thread Ignat Korchagin
I think so as well. It may create issues when someone runs 2 dnsmasq processes with different configurations (for different interfaces for example - 1 dnsmasq process per interface). Kernel may "balance" incoming UDP packets to another dnsmasq instance (which AFAIR will just ignore it), so there

Re: [Dnsmasq-discuss] Is dnsmasq supposed to listen on UDP port 0.0.0.0:67 when listen-address is specified?

2017-12-21 Thread Parke
On Thu, Dec 21, 2017 at 2:56 AM, Ignat Korchagin wrote: > FYI a good overview of SO_REUSEPORT at least in Linux is here > https://blog.cloudflare.com/the-sad-state-of-linux-socket-balancing/ Thanks. The article deals with accepting on a TCP socket, not receiving on a UDP

Re: [Dnsmasq-discuss] Is dnsmasq supposed to listen on UDP port 0.0.0.0:67 when listen-address is specified?

2017-12-21 Thread Ignat Korchagin
FYI a good overview of SO_REUSEPORT at least in Linux is here https://blog.cloudflare.com/the-sad-state-of-linux-socket-balancing/ On Thu, Dec 21, 2017 at 5:45 AM, Parke wrote: > On Wed, Dec 20, 2017 at 9:18 PM, Parke wrote: > > And there is the

Re: [Dnsmasq-discuss] Is dnsmasq supposed to listen on UDP port 0.0.0.0:67 when listen-address is specified?

2017-12-20 Thread Parke
On Wed, Dec 20, 2017 at 9:18 PM, Parke wrote: > And there is the big question of: Will each incoming UDP packet be > sent to all receiving sockets? Or just to one out of a pool of > receiving sockets? Looks like load balancing to me. >From man 7 socket on Linux:

Re: [Dnsmasq-discuss] Is dnsmasq supposed to listen on UDP port 0.0.0.0:67 when listen-address is specified?

2017-12-20 Thread Parke
On Wed, Dec 20, 2017 at 7:47 PM, Kurt H Maier wrote: > If I understand this right, I think I can replicate it with e.g. > > dnsmasq --interface=eth0 \ > --dhcp-range=192.168.0.50,192.168.0.100,12h \ > --bind-interfaces \ > --listen-address=192.168.1.50 In terms of DNS on port

Re: [Dnsmasq-discuss] Is dnsmasq supposed to listen on UDP port 0.0.0.0:67 when listen-address is specified?

2017-12-20 Thread Kurt H Maier
On Wed, Dec 20, 2017 at 06:40:10PM -0800, Parke wrote: > Hi, > > Here is a minimal, three line test.conf file: If I understand this right, I think I can replicate it with e.g. dnsmasq --interface=eth0 \ --dhcp-range=192.168.0.50,192.168.0.100,12h \ --bind-interfaces \