[PATCH 0/4] Some DNS stub resolver fixes/enhancements

Florian Weimer fweimer@redhat.com
Fri Jun 14 06:20:34 GMT 2024


This series started out with a fix for bug 31890, but the new tests
found other bugs.

The “-” option processing in this context is desirable so that it's
possible to override strict-error in /etc/resolv.conf with
RES_OPTIONS=-strict-error on the command line.

I ran the testsuite with the default changed to RES_STRICTERR (in both
places), and there were no new failures, except for the res_init
reporting of the default.

Tested on x86_64-linux-gnu.

Thanks,
Florian

Florian Weimer (4):
  resolv: Allow short error responses to match any query (bug 31890)
  resolv: Do not wait for non-existing second DNS response after error
    (bug 30081)
  resolv: Support clearing option flags with a “-” prefix (bug 14799)
  resolv: Implement strict-error stub resolver option (bug 27929)

 NEWS                                  |  16 +++
 resolv/Makefile                       |   6 ++
 resolv/res_init.c                     |  29 +++---
 resolv/res_send.c                     |  74 +++++++++-----
 resolv/resolv.h                       |   1 +
 resolv/tst-resolv-res_init-skeleton.c |  20 ++++
 resolv/tst-resolv-semi-failure.c      | 142 ++++++++++++++++++++++++++
 resolv/tst-resolv-short-response.c    | 124 ++++++++++++++++++++++
 8 files changed, 375 insertions(+), 37 deletions(-)
 create mode 100644 resolv/tst-resolv-semi-failure.c
 create mode 100644 resolv/tst-resolv-short-response.c


base-commit: 868ab8923a2ec977faafec97ecafac0c3159c1b2
-- 
2.45.2



More information about the Libc-alpha mailing list