• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

c-ares / c-ares / 11757185004
92%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2024 02:58PM UTC
Jobs 1
Files 178
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Nov 2024 02:55PM UTC coverage: 91.23% (+0.007%) from 91.223%
11757185004

push

github

bradh352
Some upstream DNS servers are non-compliant with EDNS options

Some DNS servers don't properly ignore unknown EDNS options as the spec says they must, and instead will return EFORMERR.

See discussion roughly starting here: https://github.com/alpinelinux/docker-alpine/issues/366#issuecomment-2462530681

In this case the DNS server is known to support EDNS in general (as version prior to c-ares 1.33 worked which used EDNS), but when adding the EDNS DNS Cookie extension, they return EFORMERR.  This is in violation of [RFC6891 6.1.2](https://datatracker.ietf.org/doc/html/rfc6891#section-6.1.2):
> Any OPTION-CODE values not understood by a responder or requestor MUST be ignored.

The server in this example actual echo's back the EDNS record further causing confusion that makes you think they might understand the record.

We need to catch an EFORMERR and re-attempt the query without EDNS completely since they are really non-compliant with EDNS.  We may support additional EDNS extensions in the future and don't want to have to probe each individual extension with a braindead server.

Fixes #911
Authored-By: Brad House (@bradh352)

32 of 34 new or added lines in 2 files covered. (94.12%)

22095 of 24219 relevant lines covered (91.23%)

11864.46 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
83.56
-0.03% src/lib/ares_process.c
Jobs
ID Job ID Ran Files Coverage
1 11757185004.1 09 Nov 2024 02:58PM UTC 939
59.58
GitHub Action Run
Source Files on build 11757185004
  • Tree
  • List 178
  • Changed 126
  • Source Changed 0
  • Coverage Changed 54
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 60b2727e on github
  • Prev Build on main (#11756348925)
  • Next Build on main (#11757784121)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc