Re: [Dnsmasq-discuss] Is there a way to return an alias in preference to real host name?

2020-08-03 Thread Petr Menšík
> > However it would be even better if the names 'ben' and 'oki' were > returned when I use 'host', 'arp-scan' or similar commands. Is there > a way of getting dnsmasq to do this (preferably without losing the > ability to use the long, unmemorable, names as well)? > -- Petr Menšík S

Re: [Dnsmasq-discuss] [PATCH] return responses without qname

2020-07-22 Thread Petr Menšík
s at the dnsmasq instance with random ids > and you're more-or-less guaranteed to fail a reasonable proportion of > DNS queries in progress. > > > Cheers, > > Simon. > > > > > > On 20/07/2020 15:04, Petr Menšík wrote: >> Hi, >> >>

Re: [Dnsmasq-discuss] [PATCH v2] DHCPv6: Honor assigning IPv6 address based on MAC address

2020-07-22 Thread Petr Menšík
On 7/22/20 3:44 PM, Pali Rohár wrote: > Hello Petr! > > On Wednesday 22 July 2020 14:42:16 Petr Menšík wrote: >> More below... >> >> On 7/22/20 9:40 AM, Pali Rohár wrote: >>> Hello Petr! >>> >>> On Tuesday 21 July 2020 14:23:51 Petr

Re: [Dnsmasq-discuss] [PATCH v2] DHCPv6: Honor assigning IPv6 address based on MAC address

2020-07-22 Thread Petr Menšík
(unspoken words + >>>> >>>> http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2020q2/014018.html >>>> ) >>>> >>>> >>>>> So please let me know if now this email was correctly received. >>>> >>>> Reci

Re: [Dnsmasq-discuss] [PATCH v2] DHCPv6: Honor assigning IPv6 address based on MAC address

2020-07-22 Thread Petr Menšík
More below... On 7/22/20 9:40 AM, Pali Rohár wrote: > Hello Petr! > > On Tuesday 21 July 2020 14:23:51 Petr Menšík wrote: >> I think more correct would be using the same DUID on both systems. > > Problem is that DUID generation is under control of operating system and

Re: [Dnsmasq-discuss] Make dnsmasq distinguish local IPs

2020-07-22 Thread Petr Menšík
ost" without any issues. What is dropping responses? Would firewall tweak allow it without extra configuration? > > Sounds complicated, but this is what I'd like to get done, so it would > work with both IPv6 AND IPv4. > > Cheers, > -- > László Károlyi > http://linkedin.com/in

Re: [Dnsmasq-discuss] Make dnsmasq distinguish local IPs

2020-07-21 Thread Petr Menšík
Cheers, > -- > László Károlyi > http://linkedin.com/in/karolyi > > On 2020-07-21 14:42, Petr Menšík wrote: >> I would check what addresses it is listening on. I think it considers >> all loopback addresses its own. Probably because it would accept queries >>

Re: [Dnsmasq-discuss] Make dnsmasq distinguish local IPs

2020-07-21 Thread Petr Menšík
. This was something I did pay extra attention to > get it working from the get-go. See: > > Citing my configs here makes no sense as you can see it's working already. > > Cheers, > -- > László Károlyi > http://linkedin.com/in/karolyi > > On 2020-07-20 16:12, Petr Menší

Re: [Dnsmasq-discuss] [PATCH v2] DHCPv6: Honor assigning IPv6 address based on MAC address

2020-07-21 Thread Petr Menšík
How to >> reproduce that semi-brokenness?' >> >> >>> src/rfc3315.c | 55 +++++++ >>> 1 file changed, 47 insertions(+), 8 deletions(-) >>> >>> diff --git a/src/rfc3315

Re: [Dnsmasq-discuss] Make dnsmasq distinguish local IPs

2020-07-20 Thread Petr Menšík
q and the internal name resolution between the > jails, which now it is able to support. > > So my request would be to fix this functionality and make dnsmasq able > to differentiate between local IPs, in order to be able to use them for > DNS resolution. > > Cheers, > -- &g

[Dnsmasq-discuss] [PATCH] return responses without qname

2020-07-20 Thread Petr Menšík
asq/pull/6 -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB >From 621b77989071f74fab752bd91841131b858cd250 Mon Sep 17 00:00:00 2001 From: Petr Mensik Date: Wed, 22 Apr 2020 13:00:30 +0200 Subject: [PATCH] F

Re: [Dnsmasq-discuss] OpenWrt - dnsmasq - debugging delayed responses

2020-07-20 Thread Petr Menšík
On 7/20/20 7:48 AM, Arseny Vakhrushev wrote: >> On Jul 16, 2020, at 05:53, Daryl Richards > > wrote: >> >> On 2020-07-15 9:13 p.m., Arseny Vakhrushev wrote: >>> Hello all, >>> I'm trying to debug delayed DHCP responses in OpenWrt 19.07.3. The machine >>> is connected

Re: [Dnsmasq-discuss] dnsmasq 2.81-3 segmentation fault for no apparent reason

2020-07-15 Thread Petr Menšík
nsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB __

Re: [Dnsmasq-discuss] [PATCH] Accept PKG_CONFIG from environment

2020-07-15 Thread Petr Menšík
; > -PKG_CONFIG = pkg-config > +PKG_CONFIG ?= pkg-config > INSTALL = install > MSGMERGE = msgmerge > MSGFMT = msgfmt > -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB _

Re: [Dnsmasq-discuss] Run multiple processes (with diff port #'s, interface bindings) concurrently?

2020-07-08 Thread Petr Menšík
s later by running multiple 'dnsmasq > --conf-file=' commands. > > environment: > Ubuntu 20.04 > dnsmasq 2.80 > > Thanks, > ~J > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lis

Re: [Dnsmasq-discuss] host(1) queries to AAAA, MX records; making authoritative server

2020-07-07 Thread Petr Menšík
; > Clarifying: >> When asking Cloudflare (with GoDaddy as source/authoritative server), >> host(1) does not complain. > > ...even when there is no nor MX record. > > > ___ > Dnsmasq-discuss mailing list > Dnsm

Re: [Dnsmasq-discuss] --all-servers option

2020-05-28 Thread Petr Menšík
1.9772: 61442* 1/1/1 A > 172.21.100.33 (112) > > Best regards > David Just for my curiosity, why do you want both servers to be used? Default configuration tries random server first and retries only when it does not respond. Would it work for you that way? Best regards, Petr -- Petr Menš

Re: [Dnsmasq-discuss] dnsmasq and NXNSAttack

2020-05-22 Thread Petr Menšík
: > Is dnsmasq vulnerable to NXNSAttack? > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > -- Petr Menšík Software Engineer Red Hat, http://

Re: [Dnsmasq-discuss] [PATCH] dnsmasq unit tests!

2020-05-15 Thread Petr Menšík
/InfrastructureServices/dnsmasq/actions On 5/12/20 10:51 PM, Geert Stappers wrote: > On Mon, May 04, 2020 at 05:02:38PM +0200, Petr Menšík wrote: >> Hello everyone, >> >> we have merged support for multiple IPv6 addresses to our release in >> RHEL. We tried to ensure it does not break anyt

Re: [Dnsmasq-discuss] [PATCH] dnsmasq unit tests!

2020-05-14 Thread Petr Menšík
My previous message is waiting for moderation, since my patch is a big one. On 5/12/20 10:51 PM, Geert Stappers wrote: > On Mon, May 04, 2020 at 05:02:38PM +0200, Petr Menšík wrote: ... > > I think it is great to have unittests. > > > > > > >

Re: [Dnsmasq-discuss] ignore mac address for one of the dhcp

2020-05-11 Thread Petr Menšík
e. >>> >>> How can I make dnsmasq only serve IP on the lan side for this specific >> mac >>> address? >> >> Tell more about what you have. >> >> The switch is a Netgear GS908E. It has 8 ports. I setup 2 vlan, one for > dmz, one for

Re: [Dnsmasq-discuss] Regression in 2.81 related to support for multiple IPv6 addresses - [PATCH 1/1] Fix regression in s_config_in_context() method

2020-05-07 Thread Petr Menšík
hcp_config > { >if (!context) /* called via find_config() from lease_update_from_configs() > */ > return 1; > - > + > + /* No address present in config == in context */ > + if (!(config->flags & (CONFIG_ADDR | CONFIG_ADDR6))) > +return 1; > + > #ifdef HAV

[Dnsmasq-discuss] [PATCH] dnsmasq unit tests!

2020-05-04 Thread Petr Menšík
. https://github.com/beakerlib/beakerlib 3. https://github.com/InfrastructureServices/dnsmasq/tree/unittests/tests -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB >From 9395cc84f93c63573ba28e4e349c44adb5dbb34d

Re: [Dnsmasq-discuss] [PATCH] Regression in 2.81 related to support for multiple IPv6 addresses

2020-05-01 Thread Petr Menšík
gt;mac, state->mac_len, state->mac_type, NULL, > run_tag_if(state->tags))) && > + state->mac, state->mac_len, state->mac_type, NULL, > run_tag_if(state->tags), CONFIG_ADDR6)) && >have_config(config, CONFIG_NAME)) >

Re: [Dnsmasq-discuss] [PATCH] DHCPv6 - List or Range reservation for single host

2020-03-10 Thread Petr Menšík
On 3/8/20 5:02 PM, Simon Kelley wrote: > On 06/03/2020 22:10, Petr Menšík wrote: >> Hi Simon, >> >> I have been adapting this feature to earlier releases and discovered one >> error with prefixed address assignment. When it is calculating number of >> addresse

Re: [Dnsmasq-discuss] [PATCH] DHCPv6 - List or Range reservation for single host

2020-03-06 Thread Petr Menšík
nfirm the last commit fixed the bug. >> >> I also re-ran some of the other smoke tests and everything works as >> expected. >> >> Thanks! >> > > > That's great. I'm trying to catch up on all the loose ends and release > 2.81 ASAP. > > > C

[Dnsmasq-discuss] DNS query random ports

2018-08-10 Thread Petr Menšík
not follow OS policy for source outgoing port and choses its own range by itself? 1. http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=baf553db0cdb50707ddab464fb3eff7786ea576c -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: 65C6C973 From

Re: [Dnsmasq-discuss] DNSSEC passtrough

2018-07-03 Thread Petr Menšík
t;flags & > F_DNSSECOK))) > > where the F_DNSSECOK bit is only used when validation is enabled. > > I think fixing that should make it work the way Petr wants, and I've > pushed the fix as > > > http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=a997ca0da0

[Dnsmasq-discuss] DNSSEC passtrough

2018-06-29 Thread Petr Menšík
, so dig +dnssec would pass signatures without additional configuration? -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: 65C6C973 ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk

Re: [Dnsmasq-discuss] Partial IP addresses in ptr-record fields

2018-03-21 Thread Petr Menšík
ord field at all? > > Thanks  > Juho Pohjala  > > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > -- Petr Menšík Software Enginee

Re: [Dnsmasq-discuss] [PATCH] nettle hash lookup

2018-03-16 Thread Petr Menšík
mon. > > > On 15/03/18 16:40, Petr Menšík wrote: >> Hi again, >> >> I reworked the original patch to contain fallback for older version of >> nettle. It will work fine on more recent version (should be a bit faster >> than original code), but still will c

Re: [Dnsmasq-discuss] [PATCH] nettle hash lookup

2018-03-15 Thread Petr Menšík
Hi again, I reworked the original patch to contain fallback for older version of nettle. It will work fine on more recent version (should be a bit faster than original code), but still will compile for older libraries. On 02/26/2018 09:12 PM, Petr Menšík wrote: > Hi again, > > We at F

Re: [Dnsmasq-discuss] Using a variable in the address option in dnsmasq.conf

2018-03-05 Thread Petr Menšík
> <mailto:wkitt...@gmail.com>> wrote: > > On 03/02/2018 07:46 AM, Petr Menšík wrote: > > and then generate your file any way you need. For example in bash > > > > echo "# Autogenerated file, do not edit by hand" > > > /etc/dnsmasq.

Re: [Dnsmasq-discuss] Using a variable in the address option in dnsmasq.conf

2018-03-02 Thread Petr Menšík
; ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.

Re: [Dnsmasq-discuss] [PATCH] cname no longer accepts trailing dot

2018-02-27 Thread Petr Menšík
(a): > On Monday 26 February 2018 19:59:53 Petr Menšík wrote: >> -for (arg += strlen(arg)+1; *arg == ' '; arg++); >> +for (arg += arglen+1; *arg && isspace(*arg); arg++); > > Hi! > > Just one note about this change. Function isspace() is implem

[Dnsmasq-discuss] [PATCH] nettle hash lookup

2018-02-26 Thread Petr Menšík
be supported as well? Best regards, -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: 65C6C973 From d7bcf644ac2e7ccfa0a1a9e42d92507ce6e9bb6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemen...@redhat.com> Date: Mon, 26 Fe

[Dnsmasq-discuss] [PATCH] cname no longer accepts trailing dot

2018-02-26 Thread Petr Menšík
fixes also 30858e3b9b12500825a5dc4cd67902c3201c1b25. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1498667 -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: 65C6C973 From 69f713eed3b765be3acb0f0e63baf936c6d30ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5

Re: [Dnsmasq-discuss] libidn2 issues with underscores on FreeBSD?

2017-08-09 Thread Petr Menšík
t; > http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=69a815aa8f4b91570b562a54b43c3d44ac533e06 > > Cheers, > > Simon > > > > On 07/07/17 15:12, Petr Menšík wrote: >> Hi, I was the original contributor of IDN2 support. >> I have to agree IDN2 doe

Re: [Dnsmasq-discuss] Caching with custom upstream domain

2017-07-13 Thread Petr Menšík
6.205 > ... repeats ... > > I've searched for any documentation regarding caching behavior for > custom upstream domains and I haven't found anything. > > Any ideas? > > Thanks, > Paulo > > > _______ > Dnsmasq-dis

Re: [Dnsmasq-discuss] cross-queries from VLANs.

2017-07-07 Thread Petr Menšík
Hi Mario, I think you should use bind-dynamic and spawn more instances of dnsmasq for each interface instead. Each would contain only information it can know about. One instance could have server= entries pointing to dynamic allocated domains of other instances, so queries to that one would know

Re: [Dnsmasq-discuss] libidn2 issues with underscores on FreeBSD?

2017-07-07 Thread Petr Menšík
Hi, I was the original contributor of IDN2 support. I have to agree IDN2 does filter underscores out. On Fedora 25: $ idn2 --version idn2 (libidn2) 2.0.2 $ idn2 -l _xmpp-server._tcp.domain.com xmpp-server.tcp.domain.com Not even transitional mode helps $ idn2 -T _xmpp-server._tcp.domain.com

Re: [Dnsmasq-discuss] [PATCH] Logging of dhcp_script output

2017-05-10 Thread Petr Menšík
Dne 10.5.2017 v 00:14 Simon Kelley napsal(a): > On 09/05/17 18:49, Petr Menšík wrote: >> Hi Simon, >> >> sorry for a delay. We concluded that we do not like die on parse error >> even for dhcp script. It does always start up now unless script returns >> nonz

[Dnsmasq-discuss] [PATCH] libidn2 support

2017-05-09 Thread Petr Menšík
Hi Simon, hi everyone. Fedora wants to move from IDN 2003 to IDN 2008 support. Dnsmasq already supports IDN, but only older version. There is really little of IDN to support. I made a patch that allows explicit support for libidn2 along with original libidn. Because simple packaging, I could not

Re: [Dnsmasq-discuss] [PATCH] Logging of dhcp_script output

2017-05-09 Thread Petr Menšík
Hi Simon, sorry for a delay. We concluded that we do not like die on parse error even for dhcp script. It does always start up now unless script returns nonzero exit status. With this change, it would never start, until you were able to figure out what is wrong with your script. Then fix the

Re: [Dnsmasq-discuss] Optional Subdomains

2017-03-14 Thread Petr Menšík
Hi Shakil, I think you can use multiple names in --host-record. You can then use it even without --domain option. Example: --host-record=abc.office.xyz.com,abc.office,192.168.121.1,fefc:1234::5 Dne 14.3.2017 v 15:57 Shakil Shaikh napsal(a): > Hi, > > I have registered the domain xyz.com. > >

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-03-14 Thread Petr Menšík
name> as encompassing _all_ addresses associated with the interface OK? > > > > Cheers, > > Simon. > > > > > >> [1] >> http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=3f2873d42c4d > 7e7dba32b6e64a3687d43928bc8e > >> Che

Re: [Dnsmasq-discuss] Support of labels in --interface

2017-02-22 Thread Petr Menšík
:* is now required for previous behavior in manual. > > > > Cheers, > > Simon. > Cheers, Petr > > > > > > > [1] > > http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=3f2873d42 > > c4d > > 7e7dba32b6e64a3687d43928bc8e > > > ___