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

Invalid header field value for "X-Device-Model" #939

Closed
brainsik opened this issue May 10, 2024 · 0 comments
Closed

Invalid header field value for "X-Device-Model" #939

brainsik opened this issue May 10, 2024 · 0 comments
Labels
🐞 bug Something isn't working

Comments

@brainsik
Copy link

Context

  • CLI Version: nextdns version 1.43.3
  • Platform: FreeBSD 15.0-CURRENT (pfSense 24.03)

The nextdns daemon will get into a state where it can no longer resolve queries on the local host, though continues to work fine with remote hosts querying it.

This problem does not happen with version 1.42.0 (the version before the device model code was added?).

Here's some examples:

$ nextdns upgrade
Error: Get "https://nextdns.io/install": dial tcp: lookup nextdns.io on 127.0.0.1:53: server misbehaving
$ tail -n1 /var/log/system.log
May 10 12:51:55 ng41 nextdns[73245]: Query 127.0.0.1 UDP A nextdns.io. dfb516 (qry=39/res=28) 0ms : doh resolve: net/http: invalid header field value for "X-Device-Model" 
$ host example.com
Host example.com not found: 3(NXDOMAIN)
$ tail -n1 /var/log/system.log
May 10 12:50:03 ng41 nextdns[73245]: Query 127.0.0.1 UDP A example.com. dfb516 (qry=29/res=29) 5ms : doh resolve: net/http: invalid header field value for "X-Device-Model" 

Looking through some recent commits, it appears the device model is determined from this:

$ sysctl -n kern.version
FreeBSD 15.0-CURRENT #0 plus-RELENG_24_03-n256311-e71f834dd81: Fri Apr 19 00:28:14 UTC 2024
    root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/obj/amd64/Y4MAEJ2R/var/jenkins/workspace/pfSense-Plus-snapshots-24_03-main/sources/FreeBSD-src-plus-RELENG_24_03/amd64.amd64/sys/pfSense

Strangely, this doesn't always happen. Sometimes things work fine. Sometimes restarting the nextdns daemon will fix it. It's really unclear when and how this happens.

@brainsik brainsik added the 🐞 bug Something isn't working label May 10, 2024
@rs rs closed this as completed in d678cd9 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant