Skip to content

DNS package truncation caused DNS lookup fails #199

@chuang213

Description

@chuang213

DNS lookup failed:

root@MX5300A:~# nslookup api.prod.projectfinance.io && date
Server: 127.0.0.1
Address: 127.0.0.1:53

Non-authoritative answer:

Non-authoritative answer:

Tue Jan 20 09:58:13 PST 2026
root@MX5300A:# tail -n1 /var/log/https-dns-proxy.log
[I] 1768931893.588883 dns_server.c:189 522A: DNS response size truncated from 1495 to 880 to keep 1232 limit
root@MX5300A:
# date -d @1768931893
Tue Jan 20 09:58:13 PST 2026

reverse DNS lookup failed too

root@MX5300A:~# nslookup www.google.com
Server: 127.0.0.1
Address: 127.0.0.1:53

Non-authoritative answer:
Name: www.google.com
Address: 142.250.191.36

Non-authoritative answer:
Name: www.google.com
Address: 2607:f8b0:4005:80f::2004

root@MX5300A:~# nslookup 142.250.191.36
Server: 127.0.0.1
Address: 127.0.0.1:53

Non-authoritative answer:

running parameter:

4984 nobody 4180 S /usr/sbin/https-dns-proxy -r https://8.8.8.8/dns-query -p 5054 -b 8.8.8.8 -4 -i 3600 -u nobody -g nogroup -l /var/log/https-dns-proxy.log

versions:

root@MX5300A:~# https-dns-proxy -V
2025.10.07-r1
Using: ev/4.33 c-ares/1.34.6 libcurl/8.12.1 mbedTLS/3.6.5 nghttp2/1.63.0
Features: HTTP2 HTTPS-proxy IPv6

root@MX5300A:~# cat /etc/os-release
NAME="OpenWrt"
VERSION="24.10.4"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 24.10.4"
VERSION_ID="24.10.4"
HOME_URL="https://openwrt.org/"

2023.04.27-57a6d97ddf on OpenWrt 21 works fine

root@OpenWrt:/tmp/log# https-dns-proxy -V
2023.04.27-57a6d97ddf
root@Yanmen:/tmp/log# nslookup api.prod.projectfinance.io
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: api.prod.projectfinance.io
api.prod.projectfinance.io canonical name = 83zs7iv.impervadns.net
Name: 83zs7iv.impervadns.net
Address 1: 45.223.17.30
api.prod.projectfinance.io canonical name = 83zs7iv.impervadns.net

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions