0

Can't change profile in Openwrt

I've been using Nextdns on my Openwrt based router for quite some time (perhaps a year or so) without trouble however  I'm having trouble getting it to recognize/use a different profile ID.  From the command lineI used:

nextdns config set -profile bba678
nextdns restart

to set the new profile (this is just a test profile that I set up in the nextdns web interface) and sure enough "nextdns config" shows the correct info however when I go to the profile page in my browser my router appears to still be using the old profile. I've tried restarting my router, uninstalling / reinstalling nextdns, removing the luci interface (in case it was pulling settings from elsewhere) etc.  but I'm out of ideas.  FWIW I'm using a somewhat dated version of Openwrt and the latest version of nextdns in the repos is 1.39 if that matters.  I really don't want to update Openwrt at this time if I can avoid it but I'm open to grabbing a newer nextdns from another source of there is a chance that could help. 

Any thoughts?

5 replies

null
    • Ray.10
    • 5 days ago
    • Reported - view

    Just to add,  when I uninstalled nextdns I deleted it's config file out of /etc/config and yet when I re-installed it still appeared to be using the old settings.  Does someone know where it's config is actually being stored? 

      • R_P_M
      • 5 days ago
      • Reported - view

      On Linux it's in the "/etc/" folder itself as "nextdns.conf", it could be in the same place for OpenWRT?

      • Ray.10
      • 2 days ago
      • Reported - view

      Thanks. Openwrt works a bit differently. Config files go in /etc/config but they aren't the application's config file but rather Openwrt appears to build the "real" config from them and then pass that on to the app at startup. Funny thing is that if I run "nextdns config" from the command line then the configuration that it spits out is correct with the correct "profile=" line but it doesn't actually seem to be using that profile (ie the web interface at nextdns.io still shows me using the old one). I'm starting to wonder if I somehow linked my IP to this old profile sometime in the past via the web UI and maybe that's overriding whatever the nextdns program is trying to use.

    • Ray.10
    • 2 days ago
    • Reported - view

    Okay I've found the issue.  It turns out that I had a "add-cpe-id=" entry in my /etc/dnsmasq.conf file.  I don't know if I did that back when I first started using/experimenting with nextdns or if perhaps an old version of the installer did it but that was overriding the settings in /etc/config/nextdns

      • R_P_M
      • 2 days ago
      • Reported - view

      NextDNS installer would not have touched that particular part of dnsmasq, it's probably more likely the first thing you said (using/experimenting).

Content aside

  • yesterdayLast active
  • 5Replies
  • 28Views
  • 2 Following