[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-12-05 Thread Launchpad Bug Tracker
This bug was fixed in the package dnsmasq - 2.80-1.1ubuntu1.6

---
dnsmasq (2.80-1.1ubuntu1.6) focal; urgency=medium

  * src/cache.c: Apply 162e5e0062ce923c494cc64282f293f0ed64fc10 from
upstream GIT to fix bug in DNS non-terminal code, added in 2.80,
which could sometimes cause a NODATA rather than an NXDOMAIN
reply (LP: #1995260).

 -- Miriam España Acebal   Tue, 15 Nov 2022
10:35:15 +0100

** Changed in: dnsmasq (Ubuntu Focal)
   Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Fix Released

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
  This can lead to erroneous actions by clients who need to determine
  whether a domain name exists or not.

  [ Test Plan ]

  In a focal VM, install dnsmasq (apt install dnsmasq) if it wasn't
  installed yet.

  #0 Disabling systemd-resolved service and enabling resolution through
  dnsmasq.

  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service

  #1 Bad case

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb

  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...

  # dpkg -l | grep dnsmasq
  ii  dnsmasq2.80-1.1ubuntu1.6 all  
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-base   2.80-1.1ubuntu1.6 amd64
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-utils  2.80-1.1ubuntu1.6 amd64
Utilities for manipulating DHCP leases

  #2.2 Testing OK

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)

  [ Where problems could occur ]

  It changes the program's behaviour by classifying as NXDOMAIN what
  used to be NODATA in some situations, so if a user had a workaround
  for this (in the form of a script or other kind of automatization) it
  will probably start to malfunction.

  The last rebuilding of the package for Focal was in May, so if any new
  dependencies or libs have been upgraded on this Ubuntu series this can
  impact the new rebuild.

  [ Other Info ]

  The patch is applied upstream and originated from a bug filed on
  Fedora side: https://bugzilla.redhat.com/show_bug.cgi?id=1674067

  [Original Report]
  ---
  We upgraded our openstack containers which host dnsmasq services from bionic 
to focal. With this we got an update of dnsmasq from 2.79 to 2.80 which 
introduced a bug in our setup where dnsmasq returns NODATA instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-29 Thread Christian Ehrhardt 
FYI proposed migration tests should be happy as soon as the migration-
reference run for ubuntu-fan completed (but queues are long)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Fix Committed

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
  This can lead to erroneous actions by clients who need to determine
  whether a domain name exists or not.

  [ Test Plan ]

  In a focal VM, install dnsmasq (apt install dnsmasq) if it wasn't
  installed yet.

  #0 Disabling systemd-resolved service and enabling resolution through
  dnsmasq.

  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service

  #1 Bad case

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb

  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...

  # dpkg -l | grep dnsmasq
  ii  dnsmasq2.80-1.1ubuntu1.6 all  
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-base   2.80-1.1ubuntu1.6 amd64
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-utils  2.80-1.1ubuntu1.6 amd64
Utilities for manipulating DHCP leases

  #2.2 Testing OK

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)

  [ Where problems could occur ]

  It changes the program's behaviour by classifying as NXDOMAIN what
  used to be NODATA in some situations, so if a user had a workaround
  for this (in the form of a script or other kind of automatization) it
  will probably start to malfunction.

  The last rebuilding of the package for Focal was in May, so if any new
  dependencies or libs have been upgraded on this Ubuntu series this can
  impact the new rebuild.

  [ Other Info ]

  The patch is applied upstream and originated from a bug filed on
  Fedora side: https://bugzilla.redhat.com/show_bug.cgi?id=1674067

  [Original Report]
  ---
  We upgraded our openstack containers which host dnsmasq services from bionic 
to focal. With this we got an update of dnsmasq from 2.79 to 2.80 which 
introduced a bug in our setup where dnsmasq returns NODATA instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1995260/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-28 Thread Christian Ehrhardt 
@SRU team - please consider accepting and merging the test hint [1] to
resolve the current blocker for this SRU.

[1]: https://code.launchpad.net/~paelzer/britney/+git/hints-
ubuntu/+merge/433770

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Fix Committed

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
  This can lead to erroneous actions by clients who need to determine
  whether a domain name exists or not.

  [ Test Plan ]

  In a focal VM, install dnsmasq (apt install dnsmasq) if it wasn't
  installed yet.

  #0 Disabling systemd-resolved service and enabling resolution through
  dnsmasq.

  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service

  #1 Bad case

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb

  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...

  # dpkg -l | grep dnsmasq
  ii  dnsmasq2.80-1.1ubuntu1.6 all  
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-base   2.80-1.1ubuntu1.6 amd64
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-utils  2.80-1.1ubuntu1.6 amd64
Utilities for manipulating DHCP leases

  #2.2 Testing OK

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)

  [ Where problems could occur ]

  It changes the program's behaviour by classifying as NXDOMAIN what
  used to be NODATA in some situations, so if a user had a workaround
  for this (in the form of a script or other kind of automatization) it
  will probably start to malfunction.

  The last rebuilding of the package for Focal was in May, so if any new
  dependencies or libs have been upgraded on this Ubuntu series this can
  impact the new rebuild.

  [ Other Info ]

  The patch is applied upstream and originated from a bug filed on
  Fedora side: https://bugzilla.redhat.com/show_bug.cgi?id=1674067

  [Original Report]
  ---
  We upgraded our openstack containers which host dnsmasq services from bionic 
to focal. With this we got an update of dnsmasq from 2.79 to 2.80 which 
introduced a bug in our setup where dnsmasq returns NODATA instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1995260/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-28 Thread Christian Ehrhardt 
Great finding Miriam,
I've looked into it and fully agree.
Since I had all the data at that moment I filed bug 1998184 for ubuntu-fan.
Based on that we need to mask the tests and we can ignore them here in regard 
to this SRU (until fixed in ubuntu-fan).

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Fix Committed

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
  This can lead to erroneous actions by clients who need to determine
  whether a domain name exists or not.

  [ Test Plan ]

  In a focal VM, install dnsmasq (apt install dnsmasq) if it wasn't
  installed yet.

  #0 Disabling systemd-resolved service and enabling resolution through
  dnsmasq.

  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service

  #1 Bad case

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb

  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...

  # dpkg -l | grep dnsmasq
  ii  dnsmasq2.80-1.1ubuntu1.6 all  
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-base   2.80-1.1ubuntu1.6 amd64
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-utils  2.80-1.1ubuntu1.6 amd64
Utilities for manipulating DHCP leases

  #2.2 Testing OK

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)

  [ Where problems could occur ]

  It changes the program's behaviour by classifying as NXDOMAIN what
  used to be NODATA in some situations, so if a user had a workaround
  for this (in the form of a script or other kind of automatization) it
  will probably start to malfunction.

  The last rebuilding of the package for Focal was in May, so if any new
  dependencies or libs have been upgraded on this Ubuntu series this can
  impact the new rebuild.

  [ Other Info ]

  The patch is applied upstream and originated from a bug filed on
  Fedora side: https://bugzilla.redhat.com/show_bug.cgi?id=1674067

  [Original Report]
  ---
  We upgraded our openstack containers which host dnsmasq services from bionic 
to focal. With this we got an update of dnsmasq from 2.79 to 2.80 which 
introduced a bug in our setup where dnsmasq returns NODATA instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1995260/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : 

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-28 Thread Miriam España Acebal
I switched the lines from the command above for the local series
variable, and now the test passes:

autopkgtest [17:48:12]: test lxd: [---
II: Auto-init LXD...
qemu-system-x86_64: Slirp: external icmpv6 not supported yet
II: Creating Fan Bridge...
configuring fan underlay:10.0.0.0/16 overlay:250.0.0.0/8
II: Create LXD profile for Fan Bridge...
configuring LXD for underlay:10.0.0.0/16 overlay:250.0.0.0/8 (fan-250)
Profile fan-250 created
II: Test LXD...
master: detected primary route through ens3
master: DNS: systemd(10.0.2.3)
local lxd test: creating test container (Ubuntu:20.04) ...
Creating fanatic-test
Starting fanatic-test   
lxd test: Waiting for addresses on eth0 ...
lxd test: Waiting for addresses on eth0 ...
lxd test: Waiting for addresses on eth0 ...
lxd test: Waiting for addresses on eth0 ...
slave: detected primary route through eth0
slave: waiting for systemd resolver...
sd_bus_open_system: No such file or directory
slave: DNS: systemd(250.2.15.1)
test master: ping test (250.2.15.202) ...
test slave: ping test (250.2.15.1) ...
test master: ping test ... PASS
test master: short data test (250.2.15.1 -> 250.2.15.202) ...
test slave: ping test ... PASS
test slave: short data test (250.2.15.202 -> 250.2.15.1) ...
test master: short data ... PASS
test master: long data test (250.2.15.1 -> 250.2.15.202) ...
test slave: short data ... PASS
test slave: long data test (250.2.15.202 -> 250.2.15.1) ...
test slave: long data ... PASS
test master: long data ... PASS
local lxd test: destroying test container ...
local lxd test: test complete PASS (master=0 slave=0)
II: Undefining LXD profile for Fan Bridge...
de-configuring LXD underlay:10.0.0.0/16 overlay:250.0.0.0/8
Profile fan-250 deleted
fan-250: flags=4163  mtu 1450
inet 250.2.15.1  netmask 255.0.0.0  broadcast 0.0.0.0
inet6 fe80::e493:42ff:fed3:34ec  prefixlen 64  scopeid 0x20
ether e6:93:42:d3:34:ec  txqueuelen 1000  (Ethernet)
RX packets 5684  bytes 166505628 (166.5 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 5922  bytes 167845841 (167.8 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

II: Removing Fan Bridge...
de-configuring fan underlay:10.0.0.0/16 overlay:250.0.0.0/8
PASS
autopkgtest [17:49:19]: test lxd: ---]
autopkgtest [17:49:20]: test lxd:  - - - - - - - - - - results - - - - - - - - 
- -
lxd  PASS
autopkgtest [17:49:21]:  summary
command1 PASS
lxd  PASS

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Fix Committed

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
  This can lead to erroneous actions by clients who need to determine
  whether a domain name exists or not.

  [ Test Plan ]

  In a focal VM, install dnsmasq (apt install dnsmasq) if it wasn't
  installed yet.

  #0 Disabling systemd-resolved service and enabling resolution through
  dnsmasq.

  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service

  #1 Bad case

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb

  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...

  # dpkg -l | grep dnsmasq
  ii  dnsmasq  

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-28 Thread Miriam España Acebal
That's weird, because it seems that systemd-resolve is not present in
the lxd image:

lxd test: Waiting for addresses on eth0 ...
slave: detected primary route through eth0
/bin/sh: 29: systemd-resolve: not found
slave: waiting for systemd resolver...
/bin/sh: 29: systemd-resolve: not found

and the error is happening also with previous dnsmasq version:

Setting up dnsmasq-base (2.80-1.1ubuntu1.5) ...
ERROR: ld.so: object 'libeatmydata.so' from LD_PRELOAD cannot be preloaded 
(cannot open shared object file): ignored.
Setting up ubuntu-fan (0.12.13ubuntu0.1) ...
[...]
FAIL: Error on LXD test

I put +xv to the fanatic script of the ubuntu-fan package to see how the
image was created, and I got this:

+ storage_opt=--storage default
+ echo local lxd test: creating test container (Ubuntu:lts) ...
+ lxc launch ubuntu:lts fanatic-test --storage default -p fan-250
Creating fanatic-test
Starting fanatic-test 

and creating it manually :

❯ lxc launch ubuntu:lts fanatic-test-lts

Creating fanatic-test-lts
Starting fanatic-test-lts 
❯ lxc shell fanatic-test-lts
root@fanatic-test-lts:~# 
root@fanatic-test-lts:~# 
root@fanatic-test-lts:~# 
root@fanatic-test-lts:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 22.04.1 LTS
Release:22.04
Codename:   jammy

It's jammy, not focal. And systemd-resolve is not present on Jammy:


root@fanatic-test-lts:~# systemd-
systemd-analyze systemd-escape  systemd-run
systemd-ask-passwordsystemd-hwdb
systemd-socket-activate
systemd-cat systemd-id128   
systemd-stdio-bridge
systemd-cglssystemd-inhibit systemd-sysext
systemd-cgtop   systemd-machine-id-setupsystemd-sysusers
systemd-cryptenroll systemd-mount   systemd-tmpfiles
systemd-delta   systemd-notify  
systemd-tty-ask-password-agent
systemd-detect-virt systemd-pathsystemd-umount
root@fanatic-test-lts:~# systemd-resolve
systemd-resolve: command not found
root@fanatic-test-lts:~# 

the Ubunutu series is harcoded in the fanatic script at line 1015

#local series=$( lsb_release -sr )
local series='lts'

so it should be modified according to the series to which the package
under test belongs (in this case, focal), but for Jammy and beyond the
use of systemd-resolve in dns_lookup_forwarder() function at line 708
should be changed too.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Fix Committed

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
  This can lead to erroneous actions by clients who need to determine
  whether a domain name exists or not.

  [ Test Plan ]

  In a focal VM, install dnsmasq (apt install dnsmasq) if it wasn't
  installed yet.

  #0 Disabling systemd-resolved service and enabling resolution through
  dnsmasq.

  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service

  #1 Bad case

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb

  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...

  # dpkg -l | grep dnsmasq
  ii  dnsmasq   

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-25 Thread Maximilian Stinsky
I tested the patch inside a ubuntu focal vm and can verify that the bug
is fixed.

Testing that has been done:
Enable proposed repository and install dnsmasq version 2.80-1.1ubuntu1.6:

cat  /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service

  #1 Bad case

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb

  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...

  # dpkg -l | grep dnsmasq
  ii  dnsmasq2.80-1.1ubuntu1.6 all  
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-base   2.80-1.1ubuntu1.6 amd64
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-utils  2.80-1.1ubuntu1.6 amd64
Utilities for manipulating DHCP leases

  #2.2 Testing OK

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)

  [ Where problems could occur ]

  It changes the program's behaviour by classifying as NXDOMAIN what
  used to be NODATA in some situations, so if a user had a workaround
  for this (in the form of a script or other kind of automatization) it
  will probably start to malfunction.

  The 

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-25 Thread Andreas Hasenack
Hello Maximilian, or anyone else affected,

Accepted dnsmasq into focal-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/dnsmasq/2.80-1.1ubuntu1.6 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: dnsmasq (Ubuntu Focal)
   Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-focal

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Fix Committed

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
  This can lead to erroneous actions by clients who need to determine
  whether a domain name exists or not.

  [ Test Plan ]

  In a focal VM, install dnsmasq (apt install dnsmasq) if it wasn't
  installed yet.

  #0 Disabling systemd-resolved service and enabling resolution through
  dnsmasq.

  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service

  #1 Bad case

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb

  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...

  # dpkg -l | grep dnsmasq
  ii  dnsmasq2.80-1.1ubuntu1.6 all  
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-base   2.80-1.1ubuntu1.6 amd64
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-utils  2.80-1.1ubuntu1.6 amd64
Utilities for manipulating DHCP leases

  #2.2 Testing OK

  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)

  [ Where problems could occur ]

  It changes the program's behaviour by classifying as NXDOMAIN what
  used to be NODATA in some situations, so if a user had a workaround
  for this (in the form of a script or other kind of automatization) it
  will probably start to malfunction.

  The last rebuilding of the package for Focal was in May, so if any new
  dependencies or 

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-24 Thread Andreas Hasenack
** Description changed:

  [SRU]
  
  [ Impact ]
  
  Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
  This can lead to erroneous actions by clients who need to determine
  whether a domain name exists or not.
  
  [ Test Plan ]
  
- In a focal VM, install dnsmasq (apt install dnsmasq-base) if it wasn't
+ In a focal VM, install dnsmasq (apt install dnsmasq) if it wasn't
  installed yet.
  
  #0 Disabling systemd-resolved service and enabling resolution through
  dnsmasq.
  
  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service
  
  #1 Bad case
  
  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record
  
  #2 Good case
  
  #2.1 Installing new package
  
  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb
  
  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...
  
  # dpkg -l | grep dnsmasq
  ii  dnsmasq2.80-1.1ubuntu1.6 all  
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-base   2.80-1.1ubuntu1.6 amd64
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-utils  2.80-1.1ubuntu1.6 amd64
Utilities for manipulating DHCP leases
  
  #2.2 Testing OK
  
  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  
  [ Where problems could occur ]
  
- It changes the program's behaviour by classifying as NXDOMAIN what used to be 
NODATA in some situations, so if a user had a workaround for this (in the form 
of a script or other kind of automatization) it will probably start to 
malfunction.
-  
- The last rebuilding of the package for Focal was in May, so if any new 
dependencies or libs have been upgraded on this Ubuntu series this can impact 
the new rebuild.
+ It changes the program's behaviour by classifying as NXDOMAIN what used
+ to be NODATA in some situations, so if a user had a workaround for this
+ (in the form of a script or other kind of automatization) it will
+ probably start to malfunction.
+ 
+ The last rebuilding of the package for Focal was in May, so if any new
+ dependencies or libs have been upgraded on this Ubuntu series this can
+ impact the new rebuild.
  
  [ Other Info ]
  
  The patch is applied upstream and originated from a bug filed on Fedora
  side: https://bugzilla.redhat.com/show_bug.cgi?id=1674067
  
  [Original Report]
  ---
  We upgraded our openstack containers which host dnsmasq services from bionic 
to focal. With this we got an update of dnsmasq from 2.79 to 2.80 which 
introduced a bug in our setup where dnsmasq returns NODATA instead of NXDOMAIN.
  
  This is already fixed upstream with the following commit [1].
  
  The Ubuntu dnsmasq 2.80 package should get a backport with a release for
  the focal packages which includes this bug fix.
  
  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  In Progress

Bug description:
  

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-23 Thread Miriam España Acebal
** Description changed:

  [SRU]
  
  [ Impact ]
  
- Sometimes dnsmasq is incorrectly is returning NODATA instead of
- NXDOMAIN. This can lead to erroneous actions by clients who need to
- determine whether a domain name exists or not.
+ Sometimes dnsmasq is incorrectly returning NODATA instead of NXDOMAIN.
+ This can lead to erroneous actions by clients who need to determine
+ whether a domain name exists or not.
  
  [ Test Plan ]
  
  In a focal VM, install dnsmasq (apt install dnsmasq-base) if it wasn't
  installed yet.
  
- 
- #0 Disabling systemd-resolved service and enabling resolution through dnsmasq.
+ #0 Disabling systemd-resolved service and enabling resolution through
+ dnsmasq.
  
  # systemctl disable --now systemd-resolved.service
  # rm -f /etc/resolv.conf
  # cat > /etc/resolv.conf << __EOF__
  nameserver 8.8.8.8
  __EOF__
  # systemctl start dnsmasq.service
- 
  
  #1 Bad case
  
  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record
  
  #2 Good case
  
  #2.1 Installing new package
  
  # ls -1 *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
  dnsmasq_2.80-1.1ubuntu1.6_all.deb
  
  # dpkg -i *.deb
  (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
  Processing triggers for man-db (2.9.1-1) ...
  Processing triggers for systemd (245.4-4ubuntu3.18) ...
  
- 
  # dpkg -l | grep dnsmasq
  ii  dnsmasq2.80-1.1ubuntu1.6 all  
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-base   2.80-1.1ubuntu1.6 amd64
Small caching DNS proxy and DHCP/TFTP server
  ii  dnsmasq-utils  2.80-1.1ubuntu1.6 amd64
Utilities for manipulating DHCP leases
  
  #2.2 Testing OK
  
  # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  
  [ Where problems could occur ]
  
- It correctly changes the program's behaviour in this kind of situation,
- so users that didn't recognize this as an error can see an increment in
- their dns cached records, so, in the end, it's not a problem.
+ It changes the program's behaviour by classifying as NXDOMAIN what used to be 
NODATA in some situations, so if a user had a workaround for this (in the form 
of a script or other kind of automatization) it will probably start to 
malfunction.
+  
+ The last rebuilding of the package for Focal was in May, so if any new 
dependencies or libs have been upgraded on this Ubuntu series this can impact 
the new rebuild.
  
  [ Other Info ]
  
  The patch is applied upstream and originated from a bug filed on Fedora
  side: https://bugzilla.redhat.com/show_bug.cgi?id=1674067
  
  [Original Report]
  ---
  We upgraded our openstack containers which host dnsmasq services from bionic 
to focal. With this we got an update of dnsmasq from 2.79 to 2.80 which 
introduced a bug in our setup where dnsmasq returns NODATA instead of NXDOMAIN.
  
  This is already fixed upstream with the following commit [1].
  
  The Ubuntu dnsmasq 2.80 package should get a backport with a release for
  the focal packages which includes this bug fix.
  
  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  In Progress

Bug description:
  

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-18 Thread Miriam España Acebal
** Description changed:

  [SRU]
  
  [ Impact ]
  
- Sometimes dnsmasq is incorrectly converting NXDOMAIN responses from
- authoritative dns servers into NODATA. This prevents the name resolution
- for normally working records fails in third party plugins/applications,
- as autopath (coredns).
+ Sometimes dnsmasq is incorrectly is returning NODATA instead of
+ NXDOMAIN. This can lead to erroneous actions by clients who need to
+ determine whether a domain name exists or not.
  
  [ Test Plan ]
  
- In a focal VM, before disabling systemd-resolved
- (https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-
- in-ubuntu), install dnsmasq (apt install dnsmasq-base) if it wasn't
+ In a focal VM, install dnsmasq (apt install dnsmasq-base) if it wasn't
  installed yet.
  
- #0 Enabling and checking name resolution through dnsmasq
  
- root@F-dnsmasq:~# sudo lsof -i -P -n | grep LISTEN
- sudo: unable to resolve host F-dnsmasq: Temporary failure in name resolution
- sshd  221root3u  IPv4 120681  0t0  TCP *:22 (LISTEN)
- sshd  221root4u  IPv6 120692  0t0  TCP *:22 (LISTEN)
- root@F-dnsmasq:~# dnsmasq --server 8.8.8.8
- root@F-dnsmasq:~# sudo lsof -i -P -n | grep LISTEN
- sudo: unable to resolve host F-dnsmasq: Name or service not known
- sshd   221root3u  IPv4 120681  0t0  TCP *:22 (LISTEN)
- sshd   221root4u  IPv6 120692  0t0  TCP *:22 (LISTEN)
- dnsmasq   1485  nobody5u  IPv4 183531  0t0  TCP *:53 (LISTEN)
- dnsmasq   1485  nobody7u  IPv6 183533  0t0  TCP *:53 (LISTEN)
+ #0 Disabling systemd-resolved service and enabling resolution through dnsmasq.
  
- root@F-dnsmasq:~# ping www.google.com
- PING [www.google.com](http://www.google.com/) (142.250.200.68) 56(84) bytes 
of data.
- 64 bytes from [mad07s24-in-f4.1e100.net](http://mad07s24-in-f4.1e100.net/) 
(142.250.200.68): icmp_seq=1 ttl=114 time=16.5 ms
- 64 bytes from [mad07s24-in-f4.1e100.net](http://mad07s24-in-f4.1e100.net/) 
(142.250.200.68): icmp_seq=2 ttl=114 time=19.4 ms
- ^C
- --- [www.google.com](http://www.google.com/) ping statistics ---
- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms
- rtt min/avg/max/mdev = 16.468/17.927/19.387/1.459 ms
+ # systemctl disable --now systemd-resolved.service
+ # rm -f /etc/resolv.conf
+ # cat > /etc/resolv.conf << __EOF__
+ nameserver 8.8.8.8
+ __EOF__
+ # systemctl start dnsmasq.service
+ 
  
  #1 Bad case
  
- root@F-dnsmasq:~# for i in srv txt  a  a txt srv; do host -t $i 
test.foo. 127.0.0.1 | tail -n 1; done
+ # for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record
  
  #2 Good case
  
  #2.1 Installing new package
  
-  root@F-dnsmasq:~# l *.deb
- dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb 
- dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb  
dnsmasq_2.80-1.1ubuntu1.6_all.deb
- root@F-dnsmasq:~# dpkg -i *.deb
- (Reading database ... 32079 files and directories currently installed.)
+ # ls -1 *.deb
+ dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb
+ dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb
+ dnsmasq_2.80-1.1ubuntu1.6_all.deb
+ 
+ # dpkg -i *.deb
+ (Reading database ... 32073 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
- Job for dnsmasq.service failed because the control process exited with error 
code.
- See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
- invoke-rc.d: initscript dnsmasq, action "start" failed.
- ● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
- Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: 
enabled)
- Active: failed (Result: exit-code) since Tue 2022-11-15 11:42:49 UTC; 8ms ago
- Process: 1641 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, 
status=0/SUCCESS)
- Process: 1642 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, 
status=2)
- 
- Nov 15 11:42:49 F-dnsmasq systemd[1]: Starting dnsmasq - A lightweight DHCP 
and caching DNS server...
- Nov 15 11:42:49 F-dnsmasq dnsmasq[1641]: dnsmasq: syntax check OK.
- Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: dnsmasq: failed to 

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-17 Thread Sergio Durigan Junior
** Merge proposal linked:
   
https://code.launchpad.net/~mirespace/ubuntu/+source/dnsmasq/+git/dnsmasq/+merge/433106

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  In Progress

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly converting NXDOMAIN responses from
  authoritative dns servers into NODATA. This prevents the name
  resolution for normally working records fails in third party
  plugins/applications, as autopath (coredns).

  [ Test Plan ]

  In a focal VM, before disabling systemd-resolved
  (https://askubuntu.com/questions/907246/how-to-disable-systemd-
  resolved-in-ubuntu), install dnsmasq (apt install dnsmasq-base) if it
  wasn't installed yet.

  #0 Enabling and checking name resolution through dnsmasq

  root@F-dnsmasq:~# sudo lsof -i -P -n | grep LISTEN
  sudo: unable to resolve host F-dnsmasq: Temporary failure in name resolution
  sshd  221root3u  IPv4 120681  0t0  TCP *:22 (LISTEN)
  sshd  221root4u  IPv6 120692  0t0  TCP *:22 (LISTEN)
  root@F-dnsmasq:~# dnsmasq --server 8.8.8.8
  root@F-dnsmasq:~# sudo lsof -i -P -n | grep LISTEN
  sudo: unable to resolve host F-dnsmasq: Name or service not known
  sshd   221root3u  IPv4 120681  0t0  TCP *:22 (LISTEN)
  sshd   221root4u  IPv6 120692  0t0  TCP *:22 (LISTEN)
  dnsmasq   1485  nobody5u  IPv4 183531  0t0  TCP *:53 (LISTEN)
  dnsmasq   1485  nobody7u  IPv6 183533  0t0  TCP *:53 (LISTEN)

  root@F-dnsmasq:~# ping www.google.com
  PING [www.google.com](http://www.google.com/) (142.250.200.68) 56(84) bytes 
of data.
  64 bytes from [mad07s24-in-f4.1e100.net](http://mad07s24-in-f4.1e100.net/) 
(142.250.200.68): icmp_seq=1 ttl=114 time=16.5 ms
  64 bytes from [mad07s24-in-f4.1e100.net](http://mad07s24-in-f4.1e100.net/) 
(142.250.200.68): icmp_seq=2 ttl=114 time=19.4 ms
  ^C
  --- [www.google.com](http://www.google.com/) ping statistics ---
  2 packets transmitted, 2 received, 0% packet loss, time 1002ms
  rtt min/avg/max/mdev = 16.468/17.927/19.387/1.459 ms

  #1 Bad case

  root@F-dnsmasq:~# for i in srv txt  a  a txt srv; do host -t $i 
test.foo. 127.0.0.1 | tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

   root@F-dnsmasq:~# l *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb 
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb  
dnsmasq_2.80-1.1ubuntu1.6_all.deb
  root@F-dnsmasq:~# dpkg -i *.deb
  (Reading database ... 32079 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Job for dnsmasq.service failed because the control process exited with error 
code.
  See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
  invoke-rc.d: initscript dnsmasq, action "start" failed.
  ● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
  Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: 
enabled)
  Active: failed (Result: exit-code) since Tue 2022-11-15 11:42:49 UTC; 8ms ago
  Process: 1641 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, 
status=0/SUCCESS)
  Process: 1642 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, 
status=2)

  Nov 15 11:42:49 F-dnsmasq systemd[1]: Starting dnsmasq - A lightweight DHCP 
and caching DNS server...
  Nov 15 11:42:49 F-dnsmasq dnsmasq[1641]: dnsmasq: syntax check OK.
  Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: dnsmasq: failed to create listening 
socket for port 53: Address already in use
  Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: failed to create listening socket 
for port 53: Address already in use
  Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: FAILED to start up
  Nov 15 11:42:49 F-dnsmasq systemd[1]: dnsmasq.service: Control process 
exited, code=exited, status=2/INVALIDARGUMENT
  Nov 15 11:42:49 F-dnsmasq systemd[1]: dnsmasq.service: Failed with 

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-16 Thread Miriam España Acebal
** Changed in: dnsmasq (Ubuntu Focal)
   Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  In Progress

Bug description:
  [SRU]

  [ Impact ]

  Sometimes dnsmasq is incorrectly converting NXDOMAIN responses from
  authoritative dns servers into NODATA. This prevents the name
  resolution for normally working records fails in third party
  plugins/applications, as autopath (coredns).

  [ Test Plan ]

  In a focal VM, before disabling systemd-resolved
  (https://askubuntu.com/questions/907246/how-to-disable-systemd-
  resolved-in-ubuntu), install dnsmasq (apt install dnsmasq-base) if it
  wasn't installed yet.

  #0 Enabling and checking name resolution through dnsmasq

  root@F-dnsmasq:~# sudo lsof -i -P -n | grep LISTEN
  sudo: unable to resolve host F-dnsmasq: Temporary failure in name resolution
  sshd  221root3u  IPv4 120681  0t0  TCP *:22 (LISTEN)
  sshd  221root4u  IPv6 120692  0t0  TCP *:22 (LISTEN)
  root@F-dnsmasq:~# dnsmasq --server 8.8.8.8
  root@F-dnsmasq:~# sudo lsof -i -P -n | grep LISTEN
  sudo: unable to resolve host F-dnsmasq: Name or service not known
  sshd   221root3u  IPv4 120681  0t0  TCP *:22 (LISTEN)
  sshd   221root4u  IPv6 120692  0t0  TCP *:22 (LISTEN)
  dnsmasq   1485  nobody5u  IPv4 183531  0t0  TCP *:53 (LISTEN)
  dnsmasq   1485  nobody7u  IPv6 183533  0t0  TCP *:53 (LISTEN)

  root@F-dnsmasq:~# ping www.google.com
  PING [www.google.com](http://www.google.com/) (142.250.200.68) 56(84) bytes 
of data.
  64 bytes from [mad07s24-in-f4.1e100.net](http://mad07s24-in-f4.1e100.net/) 
(142.250.200.68): icmp_seq=1 ttl=114 time=16.5 ms
  64 bytes from [mad07s24-in-f4.1e100.net](http://mad07s24-in-f4.1e100.net/) 
(142.250.200.68): icmp_seq=2 ttl=114 time=19.4 ms
  ^C
  --- [www.google.com](http://www.google.com/) ping statistics ---
  2 packets transmitted, 2 received, 0% packet loss, time 1002ms
  rtt min/avg/max/mdev = 16.468/17.927/19.387/1.459 ms

  #1 Bad case

  root@F-dnsmasq:~# for i in srv txt  a  a txt srv; do host -t $i 
test.foo. 127.0.0.1 | tail -n 1; done
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  Host test.foo. not found: 3(NXDOMAIN)
  test.foo has no A record
  test.foo has no TXT record
  test.foo has no SRV record

  #2 Good case

  #2.1 Installing new package

   root@F-dnsmasq:~# l *.deb
  dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb 
  dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb  
dnsmasq_2.80-1.1ubuntu1.6_all.deb
  root@F-dnsmasq:~# dpkg -i *.deb
  (Reading database ... 32079 files and directories currently installed.)
  Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Selecting previously unselected package dnsmasq-utils.
  Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
  Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
  Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
  Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
  Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
  Job for dnsmasq.service failed because the control process exited with error 
code.
  See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
  invoke-rc.d: initscript dnsmasq, action "start" failed.
  ● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
  Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: 
enabled)
  Active: failed (Result: exit-code) since Tue 2022-11-15 11:42:49 UTC; 8ms ago
  Process: 1641 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, 
status=0/SUCCESS)
  Process: 1642 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, 
status=2)

  Nov 15 11:42:49 F-dnsmasq systemd[1]: Starting dnsmasq - A lightweight DHCP 
and caching DNS server...
  Nov 15 11:42:49 F-dnsmasq dnsmasq[1641]: dnsmasq: syntax check OK.
  Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: dnsmasq: failed to create listening 
socket for port 53: Address already in use
  Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: failed to create listening socket 
for port 53: Address already in use
  Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: FAILED to start up
  Nov 15 11:42:49 F-dnsmasq systemd[1]: dnsmasq.service: Control process 
exited, code=exited, status=2/INVALIDARGUMENT
  Nov 15 11:42:49 F-dnsmasq systemd[1]: dnsmasq.service: Failed with result 
'exit-code'.
  Nov 15 11:42:49 

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-15 Thread Miriam España Acebal
** Description changed:

- We upgraded our openstack containers which host dnsmasq services from
- bionic to focal. With this we got an update of dnsmasq from 2.79 to 2.80
- which introduced a bug in our setup where dnsmasq returns NODATA instead
- of NXDOMAIN.
+ [SRU]
+ 
+ [ Impact ]
+ 
+ Sometimes dnsmasq is incorrectly converting NXDOMAIN responses from
+ authoritative dns servers into NODATA. This prevents the name resolution
+ for normally working records fails in third party plugins/applications,
+ as autopath (coredns).
+ 
+ [ Test Plan ]
+ 
+ In a focal VM, before disabling systemd-resolved
+ (https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-
+ in-ubuntu), install dnsmasq (apt install dnsmasq-base) if it wasn't
+ installed yet.
+ 
+ #0 Enabling and checking name resolution through dnsmasq
+ 
+ root@F-dnsmasq:~# sudo lsof -i -P -n | grep LISTEN
+ sudo: unable to resolve host F-dnsmasq: Temporary failure in name resolution
+ sshd  221root3u  IPv4 120681  0t0  TCP *:22 (LISTEN)
+ sshd  221root4u  IPv6 120692  0t0  TCP *:22 (LISTEN)
+ root@F-dnsmasq:~# dnsmasq --server 8.8.8.8
+ root@F-dnsmasq:~# sudo lsof -i -P -n | grep LISTEN
+ sudo: unable to resolve host F-dnsmasq: Name or service not known
+ sshd   221root3u  IPv4 120681  0t0  TCP *:22 (LISTEN)
+ sshd   221root4u  IPv6 120692  0t0  TCP *:22 (LISTEN)
+ dnsmasq   1485  nobody5u  IPv4 183531  0t0  TCP *:53 (LISTEN)
+ dnsmasq   1485  nobody7u  IPv6 183533  0t0  TCP *:53 (LISTEN)
+ 
+ root@F-dnsmasq:~# ping www.google.com
+ PING [www.google.com](http://www.google.com/) (142.250.200.68) 56(84) bytes 
of data.
+ 64 bytes from [mad07s24-in-f4.1e100.net](http://mad07s24-in-f4.1e100.net/) 
(142.250.200.68): icmp_seq=1 ttl=114 time=16.5 ms
+ 64 bytes from [mad07s24-in-f4.1e100.net](http://mad07s24-in-f4.1e100.net/) 
(142.250.200.68): icmp_seq=2 ttl=114 time=19.4 ms
+ ^C
+ --- [www.google.com](http://www.google.com/) ping statistics ---
+ 2 packets transmitted, 2 received, 0% packet loss, time 1002ms
+ rtt min/avg/max/mdev = 16.468/17.927/19.387/1.459 ms
+ 
+ #1 Bad case
+ 
+ root@F-dnsmasq:~# for i in srv txt  a  a txt srv; do host -t $i 
test.foo. 127.0.0.1 | tail -n 1; done
+ Host test.foo. not found: 3(NXDOMAIN)
+ Host test.foo. not found: 3(NXDOMAIN)
+ Host test.foo. not found: 3(NXDOMAIN)
+ test.foo has no A record
+ Host test.foo. not found: 3(NXDOMAIN)
+ test.foo has no A record
+ test.foo has no TXT record
+ test.foo has no SRV record
+ 
+ #2 Good case
+ 
+ #2.1 Installing new package
+ 
+  root@F-dnsmasq:~# l *.deb
+ dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb 
+ dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb  
dnsmasq_2.80-1.1ubuntu1.6_all.deb
+ root@F-dnsmasq:~# dpkg -i *.deb
+ (Reading database ... 32079 files and directories currently installed.)
+ Preparing to unpack dnsmasq-base_2.80-1.1ubuntu1.6_amd64.deb ...
+ Unpacking dnsmasq-base (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
+ Selecting previously unselected package dnsmasq-utils.
+ Preparing to unpack dnsmasq-utils_2.80-1.1ubuntu1.6_amd64.deb ...
+ Unpacking dnsmasq-utils (2.80-1.1ubuntu1.6) ...
+ Preparing to unpack dnsmasq_2.80-1.1ubuntu1.6_all.deb ...
+ Unpacking dnsmasq (2.80-1.1ubuntu1.6) over (2.80-1.1ubuntu1.5) ...
+ Setting up dnsmasq-base (2.80-1.1ubuntu1.6) ...
+ Setting up dnsmasq-utils (2.80-1.1ubuntu1.6) ...
+ Setting up dnsmasq (2.80-1.1ubuntu1.6) ...
+ Job for dnsmasq.service failed because the control process exited with error 
code.
+ See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
+ invoke-rc.d: initscript dnsmasq, action "start" failed.
+ ● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
+ Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: 
enabled)
+ Active: failed (Result: exit-code) since Tue 2022-11-15 11:42:49 UTC; 8ms ago
+ Process: 1641 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, 
status=0/SUCCESS)
+ Process: 1642 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, 
status=2)
+ 
+ Nov 15 11:42:49 F-dnsmasq systemd[1]: Starting dnsmasq - A lightweight DHCP 
and caching DNS server...
+ Nov 15 11:42:49 F-dnsmasq dnsmasq[1641]: dnsmasq: syntax check OK.
+ Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: dnsmasq: failed to create listening 
socket for port 53: Address already in use
+ Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: failed to create listening socket 
for port 53: Address already in use
+ Nov 15 11:42:49 F-dnsmasq dnsmasq[1642]: FAILED to start up
+ Nov 15 11:42:49 F-dnsmasq systemd[1]: dnsmasq.service: Control process 
exited, code=exited, status=2/INVALIDARGUMENT
+ Nov 15 11:42:49 F-dnsmasq systemd[1]: dnsmasq.service: Failed with result 
'exit-code'.
+ Nov 15 11:42:49 F-dnsmasq systemd[1]: Failed to start dnsmasq - A lightweight 
DHCP and caching DNS server.
+ Processing triggers for dbus (1.12.16-2ubuntu2.3) ...
+ 

[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-09 Thread Miriam España Acebal
** Changed in: dnsmasq (Ubuntu)
 Assignee: (unassigned) => Miriam España Acebal (mirespace)

** Changed in: dnsmasq (Ubuntu Focal)
 Assignee: (unassigned) => Miriam España Acebal (mirespace)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Triaged

Bug description:
  We upgraded our openstack containers which host dnsmasq services from
  bionic to focal. With this we got an update of dnsmasq from 2.79 to
  2.80 which introduced a bug in our setup where dnsmasq returns NODATA
  instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1995260/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-02 Thread Athos Ribeiro
Thanks for the reproducer, Maximilian.

I added this to the server team backlog so someone can work on this one
soon.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Triaged

Bug description:
  We upgraded our openstack containers which host dnsmasq services from
  bionic to focal. With this we got an update of dnsmasq from 2.79 to
  2.80 which introduced a bug in our setup where dnsmasq returns NODATA
  instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1995260/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-02 Thread Athos Ribeiro
** Changed in: dnsmasq (Ubuntu Focal)
   Status: New => Triaged

** Tags added: bitesize server-todo

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Triaged

Bug description:
  We upgraded our openstack containers which host dnsmasq services from
  bionic to focal. With this we got an update of dnsmasq from 2.79 to
  2.80 which introduced a bug in our setup where dnsmasq returns NODATA
  instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1995260/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-01 Thread Maximilian Stinsky
Details on how to reproduce this are:
Install dnsmasq on ubuntu focal.

Start dnsmasq with for example: dnsmasq --server 8.8.8.8
Try to resolve hosts that are known to not exist on the authoritative name 
server that is used with dnsmasq.

for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)
test.foo has no A record
Host test.foo. not found: 3(NXDOMAIN)
test.foo has no A record
test.foo has no TXT record
test.foo has no SRV record

Expected is that all tests are returning NXDOMAIN but they dont because
of the bug.

Same test on a ubuntu jammy installation with dnsmasq 2.86:
for i in srv txt  a  a txt srv; do host -t $i test.foo. 127.0.0.1 | 
tail -n 1; done
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)
Host test.foo. not found: 3(NXDOMAIN)


The real world problem where we found this was with the autopath plugin from 
coredns in kubernetes. Because dnsmasq in version 2.80 sometimes returns NODATA 
the search path of autopath gets interrupted and the name resolution for 
normally working records fails. 

** Changed in: dnsmasq (Ubuntu Focal)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  New

Bug description:
  We upgraded our openstack containers which host dnsmasq services from
  bionic to focal. With this we got an update of dnsmasq from 2.79 to
  2.80 which introduced a bug in our setup where dnsmasq returns NODATA
  instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1995260/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1995260] Re: dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

2022-11-01 Thread Lucas Kanashiro
Thanks for taking the time to report this bug and trying to make Ubuntu
better. I added a task for Focal, and marked the development release as
Fix Released. Could you please provided detailed steps on how to
reproduce this issue? We would need that if we decide to try to update
Focal with the patch you mentioned.

I am setting the Focal task as Incomplete until you provide information
to reproduce the bug, once you do that please set it back to New.

** Also affects: dnsmasq (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Changed in: dnsmasq (Ubuntu)
   Status: New => Invalid

** Changed in: dnsmasq (Ubuntu)
   Status: Invalid => Fix Released

** Changed in: dnsmasq (Ubuntu Focal)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1995260

Title:
  dnsmasq focal 2.80 NODATA instead of NXDOMAIN bug

Status in dnsmasq package in Ubuntu:
  Fix Released
Status in dnsmasq source package in Focal:
  Incomplete

Bug description:
  We upgraded our openstack containers which host dnsmasq services from
  bionic to focal. With this we got an update of dnsmasq from 2.79 to
  2.80 which introduced a bug in our setup where dnsmasq returns NODATA
  instead of NXDOMAIN.

  This is already fixed upstream with the following commit [1].

  The Ubuntu dnsmasq 2.80 package should get a backport with a release
  for the focal packages which includes this bug fix.

  [1]
  
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=162e5e0062ce923c494cc64282f293f0ed64fc10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1995260/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp