Commit graph

26 commits

Author SHA1 Message Date
Dag-Erling Smørgrav 3b092e4936 ldns: Ignore commented-out lines in resolv.conf.
This merges upstream PR 238 + an additional bug fix.

PR:		278721
MFC after:	1 week
2024-05-15 12:20:15 +02:00
Dag-Erling Smørgrav 154ad8e0f8 Revert "Issue #237 : Resolver uses nameserver commented out in /etc/resolv.conf"
This reverts commit b5fb1f44ed.
2024-05-15 12:10:20 +02:00
Willem Toorop b5fb1f44ed Issue #237 : Resolver uses nameserver commented out in /etc/resolv.conf
This /etc/resolv.conf:
    # x

    # nameserver 8.8.8.8

Still configured 8.8.8.8 as nameserver, because the comment detection in `ldns_resolver_new_frm_fp_l()` didn't anticipate empty lines before the comment.
This fix removed all comment handling from `ldns_resolver_new_frm_fp_l()`. Instead a new function is introduced `ldns_fget_token_l_resolv_conf()` that skips comments that start with '#' and ';'. The old `ldns_fget_token_l()` (that is used for zonefiles too) still accepts only ';' for comments.
2024-05-15 11:52:49 +02:00
John Baldwin 2e1665ff34 ldns: Remove a set but unused variable.
Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D40695
2023-06-27 10:19:32 -07:00
Dag-Erling Smørgrav 5afab0e5e5 ldns: Upgrade to 1.8.3.
Merge commit 'cf3e3d5bd0a1fae39c74c7db5a4e8b10732d0766'

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D40226
2023-05-24 15:50:18 +00:00
Oleksandr Tymoshenko e16b207739 Fix crash in drill(1) when IP has two subsequent dots
Cherry-pick crash fix from the upstream repo

PR:		226575
Reported by:	Goran Mekić <meka@tilda.center>
Obtained from:	https://git.nlnetlabs.nl/ldns/commit/?id=98291475
MFC after:	2 weeks
2020-06-22 23:13:14 +00:00
Dag-Erling Smørgrav 43f8d28c37 Regenerate: remove GOST, enable DANE-TA now that we have OpenSSL 1.1.1.
Approved by:	re (gjb)
2018-10-11 08:14:31 +00:00
Dag-Erling Smørgrav b319ead8be Try harder to sanitize the environment before running configure.
Remove a workaround for older Unbound versions that used sbrk.

Approved by:	re (gjb)
2018-10-10 22:29:06 +00:00
Jung-uk Kim cdc5b7da02 Make libldns buildable. 2018-09-19 06:44:31 +00:00
Dag-Erling Smørgrav 986ba33c7a Upgrade LDNS to 1.7.0.
I've been holding back on this because 1.7.0 requires OpenSSL 1.1.0 or
newer for full DANE support.  But we can't wait forever, and nothing in
base uses DANE anyway, so here we go.
2018-05-12 12:00:18 +00:00
Dag-Erling Smørgrav 22889169f8 Add a script that runs configure for both ldns and drill.
Run configure for drill (I forgot to do it when I imported 1.6.17, but the
omission was harmless).  Note that running configure --with-drill at the
top level doesn't quite work for us since it is geared toward the slightly
weird upstream Makefiles, which we don't use.
2015-04-27 12:02:16 +00:00
Dag-Erling Smørgrav d98cb77670 Restore packaging subdir to enable running unmodified configure script. 2015-04-27 11:45:48 +00:00
Dag-Erling Smørgrav a5ad888aa5 Don't cast away the const qualifier. Fixes gcc build. 2014-05-16 15:32:16 +00:00
Dag-Erling Smørgrav daf4c72f7e ldns_axfr_abort is apparently an undocumented API function. Unstaticize
and add a prototype + documentation to the relevant header.
2014-05-15 20:41:16 +00:00
Dag-Erling Smørgrav ba51c05bed Remove dead files. 2014-05-15 15:22:32 +00:00
Dag-Erling Smørgrav 17d15b2511 Upgrade to latest ldns (1.6.17) and unbound (1.4.22).
MFC after:	3 weeks
2014-05-15 03:30:03 +00:00
Dag-Erling Smørgrav fdde88bc82 Build and install drill(1).
Approved by:	re (blanket)
2013-09-22 20:30:55 +00:00
Dag-Erling Smørgrav 44995aca33 Remove duplicate function declaration.
Approved by:	re (blanket)
2013-09-15 15:52:07 +00:00
Dag-Erling Smørgrav 9dcfb8beaf The Unbound developers have never met a pointer game they didn't like.
Fix needless deconsting.

Approved by:	re (blanket)
2013-09-15 15:49:17 +00:00
Dag-Erling Smørgrav 308f001bca Clean up the ntop / pton code. Part of a patch which has been submitted
upstream but not yet adopted.
2013-04-13 22:44:48 +00:00
Dag-Erling Smørgrav f722e1909c Last remaining prototype issue that still hasn't been fixed upstream. 2013-04-09 13:16:11 +00:00
Dag-Erling Smørgrav d6e492fe3d Revert local changes and pull in r3828 from upstream. 2013-04-09 13:14:39 +00:00
Dag-Erling Smørgrav c81beee50e #if out unused functions which trip up gcc but not clang. 2013-02-16 22:16:14 +00:00
Dag-Erling Smørgrav 2787e39aaa Upgrade to 1.6.16 2013-02-15 21:49:12 +00:00
Dag-Erling Smørgrav 6709dfe57a Add generated files 2013-02-15 21:33:05 +00:00
Dag-Erling Smørgrav 7b5038d71c Import LDNS and build it as an internal library. 2013-02-15 13:44:18 +00:00