Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pi-hole FTL v5.0 #747

Merged
merged 822 commits into from
May 10, 2020
Merged

Pi-hole FTL v5.0 #747

merged 822 commits into from
May 10, 2020
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Dec 11, 2019

  1. Configuration menu
    Copy the full SHA
    841719e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'development' into new/internal-blocking

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    c2755d8 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2019

  1. Merge pull request #642 from pi-hole/new/internal-blocking

    Per-client blocking rules, intermediate CNAME path blocking and some more
    DL6ER authored Dec 12, 2019
    Configuration menu
    Copy the full SHA
    dc2c3c9 View commit details
    Browse the repository at this point in the history
  2. Add CNAME_DEEP_INSPECT config option (default: true). It can be used …

    …to disable deep CNAME inspection. This might be beneficial for very low-end devices.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    699f25d View commit details
    Browse the repository at this point in the history
  3. Add group zero support.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    33940f2 View commit details
    Browse the repository at this point in the history
  4. Update FTL gravity.db.sql template to gravity database version 7.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    5637d13 View commit details
    Browse the repository at this point in the history
  5. Add new zero-group-specific tests (domain associated ONLY to a partic…

    …ular query is only seen by this client).
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    8058478 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #663 from pi-hole/new/CNAME_DEEP_INSPECT

    Add CNAME_DEEP_INSPECT config option
    DL6ER authored Dec 12, 2019
    Configuration menu
    Copy the full SHA
    83018ac View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2019

  1. Fix buffer overflow checking in parse_hex(). The inputs to parse_hex …

    …are never untrusted data, so not security problem.
    
    Thanks to Klaus Eisentraut <klaus.eisentraut@web.de> for finding this.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    d59b05f View commit details
    Browse the repository at this point in the history
  2. Merge branch 'development' into update/dnsmasq

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 16, 2019
    Configuration menu
    Copy the full SHA
    60c0e10 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2019

  1. Do not try to resolve client host names during the tests. This occasi…

    …onally leads to false-negatives during the CI testing (the CI cannot always resolve the hostnames).
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    d752539 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #666 from pi-hole/tweak/no_resolve

    Do not try to resolve client host names during the tests
    AzureMarker authored Dec 18, 2019
    Configuration menu
    Copy the full SHA
    b536bf0 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #664 from pi-hole/new/group_zero

    Add group zero support
    DL6ER authored Dec 18, 2019
    Configuration menu
    Copy the full SHA
    bb9f25c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    99ff0c5 View commit details
    Browse the repository at this point in the history
  5. Fix two testing errors.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 18, 2019
    Configuration menu
    Copy the full SHA
    b6d74c7 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2019

  1. Fix crash in DHCP option parsing.

    Thanks to Klaus Eisentraut <klaus.eisentraut@web.de> for finding this.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    baa69a8 View commit details
    Browse the repository at this point in the history
  2. Avoid RA code trampling on DHCPv6 messages.

    Calling lease_update_file() _can_ result in a call to  periodic_ra()
    
    Since both the DHCPv6 and RA subsystems use the same packet buffer
    this can overwrite the DHCPv6 packet. To avoid this we ensure the
    DHCPv6 packet has been sent before calling lease_update_file().
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Dec 20, 2019
    Configuration menu
    Copy the full SHA
    44ef1bb View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2019

  1. If we find during a CNAME inspection that we want to block the entire…

    … chain, the originally queried domain itself was not counted as blocked (but as (permitted). Later in the chain, when we find that this is a bad guy, we short-circuit it. We need to correct the domain counter of the domain at the head of the chain, otherwise, the data for the top lists is misleading. For this, we go back the entire path and change the original request to blocked by increasing the blocked count of this domain by one. Fortunately, each CNAME path can easily be tracked back to the original head in FTL's data so we do not need to search it. This makes the change able to happen without causing any delay.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 21, 2019
    Configuration menu
    Copy the full SHA
    e15d950 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2019

  1. Explicitly store domains as being whitelisted in FTLs cache for using…

    … this information during possible later CNAME inspection. This avoids the necessity to check the whitelist filters multiple times.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 27, 2019
    Configuration menu
    Copy the full SHA
    36c4917 View commit details
    Browse the repository at this point in the history
  2. Implement a query-wide whitelisted property that can hold the to-be-p…

    …ermitted property during an entire CNAME inspection process.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 27, 2019
    Configuration menu
    Copy the full SHA
    a4f4a09 View commit details
    Browse the repository at this point in the history
  3. Change ownership of all shared memory objects before switching user.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 27, 2019
    Configuration menu
    Copy the full SHA
    8604804 View commit details
    Browse the repository at this point in the history
  4. Set query as whitelist permitted when the domain is already known to …

    …FTL.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 27, 2019
    1 Configuration menu
    Copy the full SHA
    b0f0e9a View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2019

  1. Merge pull request #671 from pi-hole/fix/chown/shm-files

    Change ownership of all shared memory objects before switching user
    DL6ER authored Dec 28, 2019
    Configuration menu
    Copy the full SHA
    bdfd955 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #670 from pi-hole/tweak/CNAME_inspection

    Tweak CNAME whitelisting behavior
    DL6ER authored Dec 28, 2019
    Configuration menu
    Copy the full SHA
    9cc4e0d View commit details
    Browse the repository at this point in the history
  3. Merge pull request #667 from pi-hole/fix/test_suite

    Fix two testing errors
    DL6ER authored Dec 28, 2019
    Configuration menu
    Copy the full SHA
    8e46afc View commit details
    Browse the repository at this point in the history
  4. Merge pull request #668 from pi-hole/fix/deep_CNAME_blocking_top_lists

    Top lists fix for deeply blocked CNAME chains
    DL6ER authored Dec 28, 2019
    Configuration menu
    Copy the full SHA
    45b5b0e View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2019

  1. Add shared DNS cache for FTL. This cache is shared across forks and c…

    …an be used by TCP and UDP clients avoiding any doubled amount of work.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    c9c7c27 View commit details
    Browse the repository at this point in the history
  2. Add shared per-client regex array. This ensures TCP and UDP workers k…

    …now the same details about client/regex combinations. This commit also fixes an issue with regex group associations for configured clients that have no assigned group.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    4c74a29 View commit details
    Browse the repository at this point in the history
  3. Adjust tests after the last bugfix, bring gravity.db.sql schema to ve…

    …rsion 9.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    abf0e4c View commit details
    Browse the repository at this point in the history
  4. Memory alignment optimizations leading to a slightly reduced footprin…

    …t for domains and clients.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 30, 2019
    Configuration menu
    Copy the full SHA
    e81faf3 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2019

  1. Simplify FTL's blocking decision algorithm.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Dec 31, 2019
    Configuration menu
    Copy the full SHA
    a7e6d5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cbd8a2c View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2020

  1. Merge pull request #672 from pi-hole/new/shared_dns_cache

    Add shared DNS cache between forks
    DL6ER authored Jan 3, 2020
    Configuration menu
    Copy the full SHA
    ecbeb95 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2020

  1. Add --tftp-single-port option.

    simonkelley authored and DL6ER committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    1a3737e View commit details
    Browse the repository at this point in the history
  2. Update copyrights to 2020.

    simonkelley authored and DL6ER committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    469ed22 View commit details
    Browse the repository at this point in the history
  3. Don't send RAs on interfaces without a link-local address.

    Since the source address of the RAs must be the link-local address.
    simonkelley authored and DL6ER committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    97cb49f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dc9b80f View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2020

  1. Check for SERV_NO_REBIND on unqualified domains

    Hello,
    
    My home network has a DNS search domain of home.arpa and my machine's dnsmasq
    instance is configured with:
    
            server=/home.arpa/192.168.0.1
            server=//192.168.0.1
            stop-dns-rebind
            rebind-domain-ok=home.arpa
            rebind-domain-ok=// # Match unqualified domains
    
    Querying my router's FQDN works as expected:
    
            dnsmasq: query[A] gateway.home.arpa from 127.0.0.1
            dnsmasq: forwarded gateway.home.arpa to 192.168.0.1
            dnsmasq: reply gateway.home.arpa is 192.168.0.1
    
    But using an unqualified domain name does not:
    
            dnsmasq: query[A] gateway from 127.0.0.1
            dnsmasq: forwarded gateway to 192.168.0.1
            dnsmasq: possible DNS-rebind attack detected: gateway
    
    The attached patch addresses this issue by checking for SERV_NO_REBIND when
    handling dotless domains.
    
    >From 0460b07108b009cff06e29eac54910ec2e7fafce Mon Sep 17 00:00:00 2001
    From: guns <self@sungpae.com>
    Date: Mon, 30 Dec 2019 16:34:23 -0600
    Subject: [PATCH] Check for SERV_NO_REBIND on unqualified domains
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    guns authored and DL6ER committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    bb8ae74 View commit details
    Browse the repository at this point in the history
  2. Tweaks to TFTP.

    Fail on overlarge files (block numbers are limited to 16 bits)
    Honour tftp-max setting in single port mode.
    Tweak timeouts, and fix logic which suppresses errors if the
    last ACK is missing.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    847379f View commit details
    Browse the repository at this point in the history
  3. Revert tftp block number overflow check. Wrapping block nos is fine.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    8819498 View commit details
    Browse the repository at this point in the history
  4. Remove experimental DHCPv6 prefix-class support.

    The standard for this never made it beyond an internet-draft which expired
    in 2012, so it can be considered dead, I think.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    ebadc60 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2020

  1. Enhance --conf-dir to load files in a deterministic order.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    4ecc8e6 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2020

  1. Use -pipe. This flag has no effect on the generated code, but it make…

    …s the compilation process faster. It tells the compiler to use pipes instead of temporary files during the different stages of compilation. Experiments on an AMD Athlon II X2 shows that the compile time reduces from (95.4+/-2.8)s to (88.4+/-0.2)s with this option. The measured differences are averages over 20 compilations, each.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    e7aa46d View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2020

  1. Ensure NODATA and NXDOMAIN blocking mode work as expected.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    0f4270b View commit details
    Browse the repository at this point in the history
  2. Fix detection of query type.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    9c9c110 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #677 from pi-hole/fix/MODE_NXDOMAIN

    Fix for blocking modes
    DL6ER authored Jan 20, 2020
    Configuration menu
    Copy the full SHA
    021cd83 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2020

  1. Store additional data when a deep CNAME inspection identified a domai…

    …n to be blocked.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    7bb451b View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2020

  1. Merge pull request #678 from pi-hole/new/query_log_show_CNAME_blocked

    Store additional data when a deep CNAME inspection identified a domain to be blocked
    DL6ER authored Jan 23, 2020
    Configuration menu
    Copy the full SHA
    9889501 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2020

  1. Do not block queries when a domain is known to be blocked, however, t…

    …he entire CNAME chain is to be permitted.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    56b6c90 View commit details
    Browse the repository at this point in the history
  2. Store blocked status only if query was not whitelisted along the path.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 27, 2020
    Configuration menu
    Copy the full SHA
    d177399 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #681 from pi-hole/fix/deeply_whitelisted_domain

    Fix internal DNS cache twist
    dschaper authored Jan 27, 2020
    Configuration menu
    Copy the full SHA
    9a5a941 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

  1. Clarify gravity database debug message

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    6a6608f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #682 from pi-hole/tweak/clarify_gravity_comment

    Clarify gravity database debug message
    DL6ER authored Jan 28, 2020
    Configuration menu
    Copy the full SHA
    44b772b View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2020

  1. Add new CNAME-specific blocking modes [QUERY_GRAVITY_CNAME, QUERY_REG…

    …EX_CNAME, QUERY_BLACKLIST_CNAME] and store domain that was the reason for blocking during a CNAME inspection
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    7117d39 View commit details
    Browse the repository at this point in the history
  2. Pin build image to specific version.

    Don't use the `latest` tag, use the specific version.
    dschaper authored Jan 29, 2020
    Configuration menu
    Copy the full SHA
    21050e8 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #684 from pi-hole/fix/pin-image

    Pin build image to specific version.
    DL6ER authored Jan 29, 2020
    Configuration menu
    Copy the full SHA
    a90f14b View commit details
    Browse the repository at this point in the history
  4. Add new CNAME-specific blocking modes [QUERY_GRAVITY_CNAME, QUERY_REG…

    …EX_CNAME, QUERY_BLACKLIST_CNAME] and store domain that was the reason for blocking during a CNAME inspection
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    122a701 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2020

  1. Use number of distinct gravity domains as counted and stored by pihol…

    …e -g itself. This drastically reduces the runtime of reload-lists.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 2, 2020
    Configuration menu
    Copy the full SHA
    2e7e623 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2020

  1. Update tests to use gravity domain count stored in test database.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    1af4748 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2020

  1. Store ID of matching blacklist regex if this is the blocking reason.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 4, 2020
    Configuration menu
    Copy the full SHA
    5c08c56 View commit details
    Browse the repository at this point in the history
  2. Regex for which no ID is available should be sent as -1.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 4, 2020
    Configuration menu
    Copy the full SHA
    d648572 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3ecc42b View commit details
    Browse the repository at this point in the history
  4. Restructure blocking computation.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 4, 2020
    Configuration menu
    Copy the full SHA
    6562823 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2020

  1. Merge pull request #688 from pi-hole/tweak/gravity_count

    Use precomputed gravity count from database
    DL6ER authored Feb 5, 2020
    Configuration menu
    Copy the full SHA
    3639b33 View commit details
    Browse the repository at this point in the history
  2. Special debug logging.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 5, 2020
    Configuration menu
    Copy the full SHA
    66f0612 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2020

  1. Ensure we group domains read from the views by their ID to avoid impo…

    …rting identical regex filters multiple times.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 6, 2020
    Configuration menu
    Copy the full SHA
    0d9b301 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2020

  1. Do not try to measure length of NULL pointer. This avoids a crash for…

    … empty domains in server=//... configurations.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    66ba32b View commit details
    Browse the repository at this point in the history
  2. Fix the disease, not the symptom in e40d8bef3bbf2fe8e1287663b2c848170…

    …66b3434
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    2829771 View commit details
    Browse the repository at this point in the history
  3. Fix RA problems with two interfaces on same IPv6 subnet.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    df44363 View commit details
    Browse the repository at this point in the history
  4. Fix infinite-loop router advert problems.

    The previous code here, which started fast-RA whenever that local
    address associated with a DHCP context changed, is very vulnerable
    to flapping  due to dynamically created addresses in the same net.
    
    Simplify so that if a context which has never found an interface now
    finds one, that gets advertised, but not for other changes. That satisfies
    the original intention that prefixes not in place when dnsmasq starts
    should be recognised.
    
    Also totally ignore all interfaces where we are configured not to do DHCP,
    to preclude flapping of they have prefixes in common with interfaces
    where we do DHCP.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    4a67711 View commit details
    Browse the repository at this point in the history
  5. Support prefixed ranges of ipv6 addresses in dhcp-host.

    When a request matching the clid or mac address is
    recieved the server will iterate over all candidate
    addresses until it find's one that is not already
    leased to a different clid/iaid and advertise
    this address.
    
    Using multiple reservations for a single host makes it
    possible to maintain a static leases only configuration
    which support network booting systems with UEFI firmware
    that request a new address (a new SOLICIT with a new IA_NA
    option using a new IAID) for different boot modes, for
    instance 'PXE over IPv6', and 'HTTP-Boot over IPv6'. Open
    Virtual Machine Firmware (OVMF) and most UEFI firmware
    build on the EDK2 code base exhibit this behaviour.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    61bd512 View commit details
    Browse the repository at this point in the history
  6. Extend 79aba0f10ad0157fb4f48afbbcb03f094caff97a for multiple IPv6 add…

    …resses.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 7, 2020
    Configuration menu
    Copy the full SHA
    7592ad9 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2020

  1. Merge pull request #687 from pi-hole/fix/negative_blocked_queries

    Fix negative blocked queries on v5.0 beta
    DL6ER authored Feb 10, 2020
    Configuration menu
    Copy the full SHA
    d4ccbee View commit details
    Browse the repository at this point in the history
  2. Merge pull request #676 from pi-hole/tweak/gcc_pipe

    Use -pipe
    DL6ER authored Feb 10, 2020
    Configuration menu
    Copy the full SHA
    47348ea View commit details
    Browse the repository at this point in the history
  3. Merge pull request #689 from pi-hole/ltaub

    Ensure each regex is imported only once
    DL6ER authored Feb 10, 2020
    Configuration menu
    Copy the full SHA
    fb01e09 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2020

  1. Fix subtracting one from the wrong variable.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    409985b View commit details
    Browse the repository at this point in the history
  2. Rename "forwarded" counter to "upstreams" to avoid confusion in the f…

    …uture. We used sed to ensure to have caught every reference.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    c32d790 View commit details
    Browse the repository at this point in the history
  3. Finish renaming "forward destionations" to "upstreams".

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    acdd225 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'new/CNAME_inspection_details' of github.com:pi-hole/FTL…

    … into new/CNAME_inspection_details
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    56d1cba View commit details
    Browse the repository at this point in the history
  5. Merge branch 'release/v5.0' into new/CNAME_inspection_details

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    06b5f3c View commit details
    Browse the repository at this point in the history
  6. Merge pull request #691 from pi-hole/fix/negative_forwardIDs

    Fix subtracting one from the wrong variable
    DL6ER authored Feb 11, 2020
    Configuration menu
    Copy the full SHA
    c3ee98b View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2020

  1. Merge pull request #685 from pi-hole/new/CNAME_inspection_details

    Improvements to deep CNAME inspection data processing
    DL6ER authored Feb 12, 2020
    Configuration menu
    Copy the full SHA
    7ca81e3 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2020

  1. Propagate ID of responsible regex up from the child to the parent dom…

    …ain if blocking happend during CNAME inspection
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 14, 2020
    Configuration menu
    Copy the full SHA
    6adc562 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2020

  1. Add additional logging to the internal resolver is DEBUG_API is set.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    f52e83b View commit details
    Browse the repository at this point in the history
  2. Add tag filtering of dhcp-host directives.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    7e06e8b View commit details
    Browse the repository at this point in the history
  3. Fix problem with netlink socket and TCP DNS.

    When dnsmasq forks a child to handle a TCP connection, that
    child inherits the netlink socket that the main process has open.
    
    The child never uses that socket, but there's a chance that when the
    main process uses the netlink socket, the answer will go to a child
    process which has a copy of the socket. This causes the main process
    to block forever awaiting the answer which never comes.
    
    The solution is for the child process to close the netlink socket it
    inherits after the fork().  There's a nasty race because the error
    decribed above could still occur in the window between the fork()
    and the close() syscalls. That's fixed by blocking the parent awaiting
    a single byte sent though the pipe the two processes share. This byte
    is sent by the child after calling close() on the netlink socket.
    
    Thanks to Alin Năstac for spotting this.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    3ab876b View commit details
    Browse the repository at this point in the history
  4. Fix bug with prefixed wildcard addresses in 137286e9baecf6a3ba97722ef…

    …1b49c851b531810
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    dc17721 View commit details
    Browse the repository at this point in the history
  5. Restore ability to answer non-recursive requests

    Instead, check only local configured entries are answered without
    rdbit set. All cached replies are still denied, but locally configured
    names are available with both recursion and without it.
    
    Fixes commit 4139298d287eb5c57f4aa53c459cb02fc5be2495 unintended
    behaviour.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    pemensik authored and DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    f519666 View commit details
    Browse the repository at this point in the history
  6. Remove obsolete Pi-hole modification.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    4a913c8 View commit details
    Browse the repository at this point in the history
  7. Use <poll.h> instead of <sys/poll.h>

    The former should be used according to POSIX, otherwise it causes
    bunches of warnings when compiling for musl-based distros like Alpine
    Linux.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DDoSolitary authored and DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    cf8b3f0 View commit details
    Browse the repository at this point in the history
  8. dnssec: add hostname info to insecure DS warning

    Make the existing "insecure DS received" warning more informative by
    reporting the domain name reporting the issue.
    
    This may help identify a problem with a specific domain or server
    configuration.
    
    Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    ldir-EDB0 authored and DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    76c7085 View commit details
    Browse the repository at this point in the history
  9. Allow empty server spec in --rev-server, to match --server.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    053b1b4 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'release/v5.0' into update/dnsmasq

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    793da42 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #693 from pi-hole/fix/db_regexlink_id

    Propagate ID of responsible regex up in CNAME inspection
    DL6ER authored Feb 15, 2020
    Configuration menu
    Copy the full SHA
    ff840d0 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2020

  1. Try direct modification of the _res struct to enforce a specific name…

    …server. This is using an undocumented feature.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 19, 2020
    Configuration menu
    Copy the full SHA
    9b57926 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #694 from pi-hole/tweak/more_resolve_details

    Force FTL to use itself as DNS server for name lookups
    DL6ER authored Feb 19, 2020
    Configuration menu
    Copy the full SHA
    61d67ff View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2020

  1. Remove UNKNOWN DNSSEC status and import queries with UNSPECIFIED DNSS…

    …EC status (this will not cause a text to be shown on the Query Log). We do not use the UNKNOWN status anywhere else, so we can now get rid of it.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    620daa7 View commit details
    Browse the repository at this point in the history
  2. Fix incorrect database warning when imporint new CNAME blocked queries.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 20, 2020
    Configuration menu
    Copy the full SHA
    0554597 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2020

  1. Merge pull request #696 from pi-hole/tweak/dnssec_db_unspecified

    Remove UNKNOWN DNSSEC status and import queries with UNSPECIFIED DNSS…
    DL6ER authored Feb 21, 2020
    Configuration menu
    Copy the full SHA
    1b23182 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #697 from pi-hole/fix/incorrect_db_warning

    Fix incorrect database warnings
    DL6ER authored Feb 21, 2020
    Configuration menu
    Copy the full SHA
    1344c91 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2020

  1. Try to reopen gravity database when not available.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 22, 2020
    Configuration menu
    Copy the full SHA
    3e7641a View commit details
    Browse the repository at this point in the history
  2. Add busy timeout to gravity per-client group configuration importing.…

    … This may help on slow devices where updating the database is not yet finished when FTL is already trying to re-read to database tables.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Feb 22, 2020
    Configuration menu
    Copy the full SHA
    71d2c8d View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2020

  1. Merge pull request #699 from pi-hole/fix/sqlite_crash

    Try to reopen gravity database when not available
    DL6ER authored Feb 25, 2020
    Configuration menu
    Copy the full SHA
    71e8498 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2020

  1. Remove DSA signature verification from DNSSEC, as specified in RFC 8624.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    7bbac61 View commit details
    Browse the repository at this point in the history
  2. Add --script-on-renewal option.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    310fc92 View commit details
    Browse the repository at this point in the history
  3. Add support for ED448 DNSSEC signature verification.

    Note that the the current release of Nettle doesn't
    yet have support. This code will become active on the
    next Nettle release.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    43542f2 View commit details
    Browse the repository at this point in the history
  4. Support ECC-GOST DNSSEC signature algorithm.

    Requires forthcoming nettle 3.6 release.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    f02d039 View commit details
    Browse the repository at this point in the history
  5. Factor out closing all file descriptors for later optimisation.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    db54d0a View commit details
    Browse the repository at this point in the history
  6. Optimise closing file descriptors.

    Dnsmasq needs to close all the file descriptors it inherits, for security
    reasons. This is traditionally done by calling close() on every possible
    file descriptor (most of which won't be open.) On big servers where
    "every possible file descriptor" is a rather large set, this gets
    rather slow, so we use the /proc/<pid>/fd directory to get a list
    of the fds which are acually open.
    
    This only works on Linux. On other platforms, and on Linux systems
    without a /proc filesystem, we fall back to the old way.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    e26f786 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    948a5e0 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2020

  1. Implement new SQLite3 subroutine which can interpret IP addresses tha…

    …t may use Classless Inter-Domain Routing (CIDR) notation. This is also known as variable-length subnet masking (VLSM) technique.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    0ac6b5c View commit details
    Browse the repository at this point in the history
  2. Use defined macro to access 8 bit values.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    6baaf4b View commit details
    Browse the repository at this point in the history
  3. Include time.t in log.h instead of FTL.h

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    106010c View commit details
    Browse the repository at this point in the history
  4. Invalid IP addresses in the database should just cause a NO MATCH con…

    …dition.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 3, 2020
    Configuration menu
    Copy the full SHA
    351f5f6 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2020

  1. Improve debugging output, reduce code duplication.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 4, 2020
    Configuration menu
    Copy the full SHA
    0b8915a View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2020

  1. Add config setting FORCE_LOCAL_RESOLVER that can be used to prevent F…

    …TL forcing itself as the first resolver of the system
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    9f39c52 View commit details
    Browse the repository at this point in the history
  2. Do not force FTL as the first, but as the last server to be used

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    33b638c View commit details
    Browse the repository at this point in the history
  3. option.c: fix NO_DHCP6 build error

    Errors encountered if building with 'NO_DHCP6' introduced by
    commit 137286e9baecf6a3ba97722ef1b49c851b531810
    
    option.c: In function 'dhcp_config_free':
    option.c:1040:24: error: 'struct dhcp_config' has no member named 'addr6'; did you mean 'addr'?
        for (addr = config->addr6; addr; addr = tmp)
                            ^~~~~
                            addr
    option.c: In function 'one_opt':
    option.c:3227:7: error: 'struct dhcp_config' has no member named 'addr6'; did you mean 'addr'?
      new->addr6 = NULL;
           ^~~~~
           addr
    
    Wrap new code in ifdef HAVE_DHCP6
    
    Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    ldir-EDB0 authored and DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    6a6b6eb View commit details
    Browse the repository at this point in the history
  4. Ignore routes in non-main tables

    Route lookup in Linux is bounded by `ip rules` as well
    as the contents of specific routing tables.  With the
    advent of vrf's(l3mdev's) non-default tables are regularly being
    used for routing purposes.
    
    dnsmasq listens to all route changes on the box and responds
    to each one with an event.  This is *expensive* when a full
    BGP routing table is placed into the linux kernel, moreso
    when dnsmasq is responding to events in tables that it will
    never actually need to respond to, since dnsmasq at this
    point in time has no concept of vrf's and would need
    to be programmed to understand them.  Help alleviate this load
    by reducing the set of data that dnsmasq pays attention to
    when we know there are events that are not useful at this
    point in time.
    
    Signed-off-by: Donald Sharp <donaldsharp72@gmail.com>
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    donaldsharp authored and DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    06dea6d View commit details
    Browse the repository at this point in the history
  5. Trivial formatting fix.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    eda454f View commit details
    Browse the repository at this point in the history
  6. Fix parameters to setsockopt() for TCP_FASTOPEN.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    mandree authored and DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    3e8c114 View commit details
    Browse the repository at this point in the history
  7. Update decline address handling in DHCPv6 for new multi-address world.

    When dhcp-host options can have many IPv6 addresses, we need
    to deal with one of them being declined by a client. The other
    addresses are still valid.
    
    It seems that this logic never worked, even with only one address, since
    the DECLINED flag was never tested.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    6fd9e7d View commit details
    Browse the repository at this point in the history
  8. Remove compiler warnings in IPv6 checksum code in dump.c

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    8b1b92b View commit details
    Browse the repository at this point in the history
  9. Compiler warning.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    83b12c8 View commit details
    Browse the repository at this point in the history
  10. Fix compiler warning.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    3c535bf View commit details
    Browse the repository at this point in the history
  11. Commit cf8b3f0 by DDosSolarity broke compilation on alpine Linux (use…

    …d for the musl builds). Reenable compilation by pretending that <poll.h> should be used instead of <sys/poll.h>. This is what we did before the mentioned commit.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    11540ea View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2020

  1. Add all clients FTL knowns about to the network table. This requires …

    …a yet to be done modification to the web interface to hide the mock hardware addresses we generate for these devices.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 7, 2020
    Configuration menu
    Copy the full SHA
    2317c89 View commit details
    Browse the repository at this point in the history
  2. Do no add any vendor for mock hardware addresses.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 7, 2020
    Configuration menu
    Copy the full SHA
    ae3418a View commit details
    Browse the repository at this point in the history
  3. Do not create record for clients without active queries

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 7, 2020
    Configuration menu
    Copy the full SHA
    0443a5a View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2020

  1. Do not create records or update clients without active queries

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    560685a View commit details
    Browse the repository at this point in the history
  2. Add debug symbols for sqlite3. This roughly doubles the size of the r…

    …esulting binary...
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    25de973 View commit details
    Browse the repository at this point in the history
  3. Fix preparation of client statements when gravity database had to be …

    …re-opened.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    5c36610 View commit details
    Browse the repository at this point in the history
  4. Increase timeout for compilation to 30 minutes. arm-qemu currently ex…

    …ceeds to 10 mins default
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    f59c2dc View commit details
    Browse the repository at this point in the history
  5. Client statement reinitialization has been moved into gravityDB_open(…

    …). No need to call it twice in FTL_reload_all_domainlists().
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    99bd5e7 View commit details
    Browse the repository at this point in the history
  6. Diverge error handling between *BSD and Linux.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    brad0 authored and DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    58afd08 View commit details
    Browse the repository at this point in the history
  7. suppress non linux network unused var warnings

    Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    ldir-EDB0 authored and DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    3f80e24 View commit details
    Browse the repository at this point in the history
  8. rfc3315: fix incorrect logical '&&' warning

    rfc3315.c:1711:28: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
        if (!(addr_list->flags && ADDRLIST_DECLINED) ||
                               ^  ~~~~~~~~~~~~~~~~~
    
    It's a flag bit so should be bitwise '&' operator
    
    Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    ldir-EDB0 authored and DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    a688ea0 View commit details
    Browse the repository at this point in the history
  9. Add DHCPv6 ntp-server (56) option handling.

    There was discussion in the past regarding DHCPv6 NTP server option
    which needs special subclassing per RFC5908.
    
    Patch adds support for unicast, multicast IPv6 address and for FQDN string,
    preserving possibly used (as suggested earlier) hex value.
    
    Unfortunately it's still not fully free from limitations - only address list or
    only fqdn value list is possible, not mixed due current
    state option parsing & flagging.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    themiron authored and DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    ee2a53c View commit details
    Browse the repository at this point in the history
  10. Fix error in IPv6 prefix calculation.

    Error with prefixed address assignment. When it is calculating number of
    addresses from prefixlen, it rotates only 32bit int instead of 64b uint.
    Only result is assigned to 64b variable.
    
    Two examples:
    
    dhcp-host=[2000::1230:0:0/92],correct-prefix
    dhcp-host=[2000::1234:5678:0/92],incorrect-prefix
    
    If prefix length is lower than 96, the result is zero. It means
    incorrect-prefix is not refused as it should. Fix is simple, attaching
    patch with it. Just rotate 64b int.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    pemensik authored and DL6ER committed Mar 8, 2020
    Configuration menu
    Copy the full SHA
    5db4c0d View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2020

  1. Set NETLINK_NO_ENOBUFS in netlink socket, to avoid POLLERR returns.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    5b67754 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2020

  1. Update lastSeen for the network_addresses fields. Also add some more …

    …debugging output to ARP processing.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    f69930b View commit details
    Browse the repository at this point in the history
  2. Try to find network_id by querying for the usage of the same IP withi…

    …n the last 24 hours.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 14, 2020
    Configuration menu
    Copy the full SHA
    1caf634 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2020

  1. Only set numQueriesARP when client is defined.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 15, 2020
    Configuration menu
    Copy the full SHA
    c86d250 View commit details
    Browse the repository at this point in the history
  2. Ensure we add the hostname through a bound text instead of within a f…

    …ree SQL query.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 15, 2020
    Configuration menu
    Copy the full SHA
    53ea62c View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2020

  1. Also scan ARP count for new clients

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    f505afe View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2020

  1. Add support for Name Authority Pointer (NAPTR) resource record, commo…

    …nly used for applications in Internet telephony, for example, in the mapping of servers and user addresses in the Session Initiation Protocol (SIP)
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    9f05254 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #713 from pi-hole/new/NAPTR

    Add support for Name Authority Pointer (NAPTR) resource record
    DL6ER committed Mar 17, 2020
    Configuration menu
    Copy the full SHA
    3e2ef28 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2020

  1. Do not fail hard if socket descriptor cannot be written to. Just igno…

    …re it.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    62572e0 View commit details
    Browse the repository at this point in the history
  2. Add more debugging output to database opening.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    aa3cc95 View commit details
    Browse the repository at this point in the history
  3. Do not open gravity database if already connected.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    2fbdf7b View commit details
    Browse the repository at this point in the history
  4. Source all entries from kernel's neigh cache not only REACHABLE and S…

    …TALE.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    45886a1 View commit details
    Browse the repository at this point in the history
  5. Extend stop-dns-rebind to reject IPv6 LL and ULA addresses. We also r…

    …eject the loopback address if rebind-localhost-ok is NOT set.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    f004390 View commit details
    Browse the repository at this point in the history
  6. Handle old kernels that don't do NETLINK_NO_ENOBUFS.

    Deal with both old kernel header files that don't define it,
    and old kernels that don't implement it.
    
    Also generalise Linux kernel version handling.
    simonkelley authored and DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    1d35d4d View commit details
    Browse the repository at this point in the history
  7. Fixed resource leak on ubus_init failure.

    When ubus_add_object fails, the ubus_connect object is not freed, so the
    connection leaks. Add ubus_destroy to free the connection object.
    
    Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
    oldium authored and DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    340a47b View commit details
    Browse the repository at this point in the history
  8. Signal early that database is opened to prevent re-opening in sub-pro…

    …cesses.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    07c8de2 View commit details
    Browse the repository at this point in the history
  9. Handle FAILED and NOARP entries.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    18eaa08 View commit details
    Browse the repository at this point in the history
  10. Validate hostnames obtained through PTR requests made by FTL itself.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    42e4d1c View commit details
    Browse the repository at this point in the history
  11. Define MAXHOSTNAMELEN if unset (needed for musl).

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    dadf889 View commit details
    Browse the repository at this point in the history
  12. Clarify that busy timeout is not an error, just a warning.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    0be640e View commit details
    Browse the repository at this point in the history
  13. Use IMMEDIATE transaction when adding to the database. This ensures w…

    …e do not even try to collect queries when we cannot write to the database.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    302dbae View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2020

  1. Large-scale overhaul for the long-term database handling.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    af8ab3e View commit details
    Browse the repository at this point in the history
  2. Replace sqlite3_errmsg() by sqlite3_errstr() everywhere to ensure we …

    …always catch the right error.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    80fbd88 View commit details
    Browse the repository at this point in the history
  3. Inform user if queries are being hold in memory for later saving (due…

    … to database being locked).
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    2244ade View commit details
    Browse the repository at this point in the history
  4. Avoid CPU spinning if Unix socket is not available

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    ecb04ee View commit details
    Browse the repository at this point in the history
  5. Move counters definition from memory.c to shmem.c magically clears a …

    …lot of (wrong) VSCode errors. Doing this on request of a user as it is harmless.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    2b2e19d View commit details
    Browse the repository at this point in the history
  6. Import unknown clients from ARP table

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    623f079 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2020

  1. Explicitly set prepared statements to NULL when they are finalized.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    c0b1489 View commit details
    Browse the repository at this point in the history
  2. Explicitly log if we had to make assumptions because the gravity data…

    …base was not available.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    8406e1b View commit details
    Browse the repository at this point in the history
  3. Add DELAY_STARTUP setting to delay startup of the embedded dnsmasq.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    48186a6 View commit details
    Browse the repository at this point in the history
  4. Remove option FORCE_LOCAL_RESOLVER as we do not need it.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    5872ebb View commit details
    Browse the repository at this point in the history
  5. Add more comments, only print debugging output when DEBUG_DATABASE is…

    … enabled.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    8f349e1 View commit details
    Browse the repository at this point in the history
  6. Simplify SQLite 3 database extension

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    e596c55 View commit details
    Browse the repository at this point in the history
  7. Convert recently found (at most 1 hour old) mock-devices into "real" …

    …when we gather ARP/neigh information about them.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 25, 2020
    Configuration menu
    Copy the full SHA
    7759a76 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #710 from pi-hole/tweak/FORCE_LOCAL_RESOLVER

    Internal resolver tweaks
    DL6ER authored Mar 25, 2020
    Configuration menu
    Copy the full SHA
    603507c View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2020

  1. Configuration menu
    Copy the full SHA
    149f656 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #708 from pi-hole/new/CIDR_clients

    Implement subnet support for clients
    DL6ER authored Mar 28, 2020
    Configuration menu
    Copy the full SHA
    f9476dd View commit details
    Browse the repository at this point in the history
  3. Merge branch 'release/v5.0' into new/all_clients_network_table

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 28, 2020
    Configuration menu
    Copy the full SHA
    c3147cc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3a5154b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7ec7577 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2020

  1. Merge pull request #711 from pi-hole/new/all_clients_network_table

    Add all clients FTL knows about to the network table
    DL6ER authored Mar 29, 2020
    Configuration menu
    Copy the full SHA
    ec0579a View commit details
    Browse the repository at this point in the history
  2. Merge branch 'release/v5.0' into tweak/sqlite_debugging

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    abe0c5b View commit details
    Browse the repository at this point in the history
  3. Merge branch 'release/v5.0' into update/dnsmasq

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    8f9cae0 View commit details
    Browse the repository at this point in the history
  4. Fix nameserver list in auth mode.

    If dnsmasq is not acting as an authoritative nameserver (no second
    argument to --auth-server) then it should not appear in the NS RRset.
    
    This leaves simply the list of servers specified in --auth-sec-servers.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    52d9255 View commit details
    Browse the repository at this point in the history
  5. Allow overriding of ubus service name.

    Same as for the dbus, allow specifying ubus service name (namespace) on
    the command line as an optional argument to --enable-ubus option.
    
    Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    oldium authored and DL6ER committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    6142ec5 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #716 from pi-hole/new/DELAY_STARTUP

    Add DELAY_STARTUP setting to delay startup of the embedded dnsmasq
    DL6ER authored Mar 29, 2020
    Configuration menu
    Copy the full SHA
    b6364d0 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2020

  1. Merge pull request #712 from pi-hole/tweak/sqlite_debugging

    Improvements to overall database handling
    DL6ER authored Mar 31, 2020
    Configuration menu
    Copy the full SHA
    d5253f1 View commit details
    Browse the repository at this point in the history
  2. CircleCI has an unforseeable number of devices in its ARP cache. Do n…

    …ot check for a strict number of clients during the tests. No changes to the source code.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    742e742 View commit details
    Browse the repository at this point in the history
  3. Ensure blocking also works when the long-term database is not used. T…

    …his was broken before as we returned too early (the SQLite3 engine was not yet fully initialized) when the long-term database was disabled.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Mar 31, 2020
    Configuration menu
    Copy the full SHA
    ceb6f04 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #719 from pi-hole/fix/tests-circleci-arp

    Fix tests after ARP table modifications
    DL6ER authored Mar 31, 2020
    Configuration menu
    Copy the full SHA
    f4d9617 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #720 from pi-hole/fix/blocking_without_pihole-FTL.db

    Ensure blocking also works when the long-term database is not used
    DL6ER authored Mar 31, 2020
    Configuration menu
    Copy the full SHA
    81c4eac View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2020

  1. Fix possible memory leak in config.c

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    30032b0 View commit details
    Browse the repository at this point in the history
  2. Some general tweaks

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    2ed0138 View commit details
    Browse the repository at this point in the history
  3. Explicitly log failures in creating the new sqlite3 function.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    1636a81 View commit details
    Browse the repository at this point in the history
  4. Ensure we don't loose memory after ARP cache parsing.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    ff24111 View commit details
    Browse the repository at this point in the history
  5. Also return NO MATCH when invoking subnet_match() with non-TEXT argum…

    …ents.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    6d61267 View commit details
    Browse the repository at this point in the history
  6. Add a comment that gethostbyaddr() may leak memory (only once, not se…

    …en leakage of more than 110 bytes)
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    35353b2 View commit details
    Browse the repository at this point in the history
  7. Check arguments are of type SQLITE3_TEXT

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    fdb8664 View commit details
    Browse the repository at this point in the history
  8. Initialize resolver subroutines if trying to resolve for the first time

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    06497d7 View commit details
    Browse the repository at this point in the history
  9. Only check/set client status when size of the array is not exceeded. …

    …Skip otherwise.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    7fae126 View commit details
    Browse the repository at this point in the history
  10. Do not import unknown clients from the ARP cache into FTL's memory. I…

    …t is not our job to care about them if they are not doing any DNS queries.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    564b286 View commit details
    Browse the repository at this point in the history
  11. Ensure ARP strings are NULL-terminated

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    c8caf54 View commit details
    Browse the repository at this point in the history
  12. Merge pull request #723 from pi-hole/fix/arp_crash

    Fix FTL crashes in ARP table parsing
    DL6ER authored Apr 2, 2020
    Configuration menu
    Copy the full SHA
    78e0332 View commit details
    Browse the repository at this point in the history
  13. Exiting instead of aborting may be benefitial in FTL forks.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    53bc882 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    41b1296 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2020

  1. Print arguments passed to embedded dnsmasq when at least one DEBUG fl…

    …ag is set.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    e7e2dbe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f9e0413 View commit details
    Browse the repository at this point in the history
  3. Re-open gravity database (and re-prepare database statements) before …

    …accessing the database in case FTL forked.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    f1f817a View commit details
    Browse the repository at this point in the history
  4. Memorize PID of this thread to avoid re-opening the gravity database …

    …connection multiple times for the same fork
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    48dc5ea View commit details
    Browse the repository at this point in the history
  5. Implement process-private prepared gravity database client statements…

    …. This fixes an incompatibility across forks when serving TCP traffic using dedicated workers.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    3aa6edc View commit details
    Browse the repository at this point in the history
  6. Silently increase size of vector if trying to read out-of-bounds

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    1246f16 View commit details
    Browse the repository at this point in the history
  7. Explicitly include type definition of int16_t in config.h as needed b…

    …y the musl-compiler
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    1636297 View commit details
    Browse the repository at this point in the history
  8. Remove append and delete instructions as we will always identify clie…

    …nts exactly by their IDs
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    c9eb4a1 View commit details
    Browse the repository at this point in the history
  9. Musl's realloc() does not zero any memory. Do this manually.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    7d3e960 View commit details
    Browse the repository at this point in the history
  10. Free allocated memory after ordinary termination of TCP workers (TCP …

    …connection closed)
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 6, 2020
    Configuration menu
    Copy the full SHA
    536ef08 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2020

  1. Merge pull request #725 from pi-hole/fix/TCP_forks

    Restore fork-safety
    DL6ER authored Apr 7, 2020
    Configuration menu
    Copy the full SHA
    f638a7f View commit details
    Browse the repository at this point in the history
  2. Fix rare problem allocating frec for DNSSEC.

    A call to get_new_frec() for a DNSSEC query could manage to
    free the original frec that we're doing the DNSSEC query to validate.
    Bad things then happen.
    
    This requires that the original frec is old, so it doesn't happen
    in practice. I found it when running under gdb, and there have been
    reports of SEGV associated with large system-clock warps which are
    probably the same thing.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    3b627c7 View commit details
    Browse the repository at this point in the history
  3. Tweak to DNSSEC logging.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    3cfa419 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    92c582e View commit details
    Browse the repository at this point in the history
  5. Restored astrisk match for auditlog

    Signed-off-by: Kevin 'silibum' Böhme <kboehme@silibum.de>
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    silibum authored and DL6ER committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    951fe08 View commit details
    Browse the repository at this point in the history
  6. Correct, indent and simplify wildcard-compatible auditlog SQL logic.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 7, 2020
    Configuration menu
    Copy the full SHA
    a7ad39d View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2020

  1. Merge pull request #727 from pi-hole/new/audit_wildcards

    Restore audit wildcard-support
    DL6ER authored Apr 9, 2020
    Configuration menu
    Copy the full SHA
    2a90bb7 View commit details
    Browse the repository at this point in the history
  2. Modify FTL's internal resolver to work in two phases: First, try to o…

    …btain a host name by using the internal resolver (i.e., FTL). In a second step, when FTL didn't know the answer, ask the resolvers as configured by resolv.conf. We've seen that the latter is necessary to get proper name resolution in docker environments.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    b7a6fa9 View commit details
    Browse the repository at this point in the history
  3. Convert port from host to network byte order

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    dbcf514 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2020

  1. Merge pull request #728 from pi-hole/tweak/resolver_try_FTL_first_the…

    …n_others
    
    Improve internal resolver algorithm
    DL6ER authored Apr 10, 2020
    Configuration menu
    Copy the full SHA
    d395b3b View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2020

  1. src/dnsmasq/dnsmasq.c: Labeled a lonely #endif

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    stappersg authored and DL6ER committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    13edf13 View commit details
    Browse the repository at this point in the history
  2. Update dnsmasq version to pi-hole-v2.81

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 12, 2020
    Configuration menu
    Copy the full SHA
    b801c4a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7a78a1f View commit details
    Browse the repository at this point in the history
  4. Merge pull request #652 from pi-hole/update/dnsmasq

    Update embedded dnsmasq to v2.81
    PromoFaux authored Apr 12, 2020
    Configuration menu
    Copy the full SHA
    853261b View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. Don't try setsockopt of non-existing NETLINK_NO_ENOBUFS option (fixes…

    … qemu issue).
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    e119ef8 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2020

  1. Merge pull request #730 from pi-hole/fix/docker_issues

    Don't try setsockopt of non-existing NETLINK_NO_ENOBUFS option (fixes…
    PromoFaux authored Apr 19, 2020
    Configuration menu
    Copy the full SHA
    5ad55e8 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2020

  1. Revert "Don't try setsockopt of non-existing NETLINK_NO_ENOBUFS optio…

    …n (fixes qemu issue)."
    
    This reverts commit e119ef8.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    bdc5ae7 View commit details
    Browse the repository at this point in the history
  2. Convert failure of setsockopt(..., SOL_NETLINK, NETLINK_NO_ENOBUFS, .…

    …..) into warning.
    
    We call this, which avoids POLLERR returns from netlink on a loaded system,
    if the kernel is new enough to support it. Sadly, qemu-user doesn't support
    the socket option, so if it fails despite the kernel being new enough to
    support it, we just emit a warning, rather than failing hard.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    simonkelley authored and DL6ER committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    73acc1a View commit details
    Browse the repository at this point in the history
  3. Make regex matching case-insensitive by default and remove config opt…

    …ion to control this.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 20, 2020
    Configuration menu
    Copy the full SHA
    bcb4789 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2020

  1. Automatically block _esni.* subdomains of blocked domains. This can b…

    …e disabled by setting BLOCK_ESNI=false in pihole-FTL.conf
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 21, 2020
    Configuration menu
    Copy the full SHA
    1bdb5ce View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2020

  1. Simplify blocking metadata forcing code.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    83bf576 View commit details
    Browse the repository at this point in the history
  2. Add full drop-in replacement mode pihole-FTL can use to mimic the dns…

    …masq binary.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    a30e5f3 View commit details
    Browse the repository at this point in the history
  3. Add a shortcut for dnsmasq syntax test

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 22, 2020
    Configuration menu
    Copy the full SHA
    894a3c7 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2020

  1. Do not decide whether we are blocking or not based on the gravity cou…

    …nt (pre-v5.0 measure) but use the dedicated blockingstatus variable.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    fb5cfe0 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2020

  1. Merge pull request #735 from pi-hole/fix/summary_status

    Fix API summary status report
    DL6ER authored Apr 28, 2020
    Configuration menu
    Copy the full SHA
    30ea4e0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #733 from pi-hole/new/block_esni

    Automatically block _esni.* subdomains of blocked domains
    DL6ER authored Apr 28, 2020
    Configuration menu
    Copy the full SHA
    06e3a70 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #731 from pi-hole/revert/e119ef8ace49bcc1d0c099257…

    …d7774e870d4cc1c
    
    Install proper qemu fix
    DL6ER authored Apr 28, 2020
    Configuration menu
    Copy the full SHA
    de5f041 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #732 from pi-hole/tweak/regex_caseinsensitive

    Make regex matching case-insensitive by default
    DL6ER authored Apr 28, 2020
    Configuration menu
    Copy the full SHA
    fe97633 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #736 from pi-hole/new/dnsmasq_dropin_replacement

    Add dnsmasq drop-in replacement support
    DL6ER authored Apr 28, 2020
    Configuration menu
    Copy the full SHA
    5b0cfb5 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2020

  1. Deleted Swag store affiliate link

    Signed-off-by: Adam Warner <me@adamwarner.co.uk>
    ArcherN9 authored and PromoFaux committed May 1, 2020
    Configuration menu
    Copy the full SHA
    a00fdfe View commit details
    Browse the repository at this point in the history

Commits on May 3, 2020

  1. Merge pull request #742 from pi-hole/tweak/dakshsrivastava

    Remove swag store link from readme
    DL6ER authored May 3, 2020
    Configuration menu
    Copy the full SHA
    a4b26c3 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2020

  1. Invoking free_sqlite3_stmt_vec() on a NULL pointer should be a harmle…

    …ss no-op.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed May 5, 2020
    Configuration menu
    Copy the full SHA
    61fd420 View commit details
    Browse the repository at this point in the history
  2. Check for validity of prepared statements before trying to use their …

    …get property.
    
    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed May 5, 2020
    Configuration menu
    Copy the full SHA
    4750f65 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #744 from pi-hole/fix/free_sqlite3_stmt_vec_NULL

    Fix FTL crash on closing handle to corrupted databases
    DL6ER authored May 5, 2020
    Configuration menu
    Copy the full SHA
    01332f6 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2020

  1. Fix bit-order in subnet mask generation.

    Signed-off-by: DL6ER <dl6er@dl6er.de>
    DL6ER committed May 8, 2020
    Configuration menu
    Copy the full SHA
    b2bea81 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #749 from pi-hole/fix/network-byteorder

    Fix bit-order in subnet mask generation
    DL6ER authored May 8, 2020
    Configuration menu
    Copy the full SHA
    c499c17 View commit details
    Browse the repository at this point in the history