nextdns
nextdns copied to clipboard
command to remove "conditional config" from config file
is there note/help specifically stating how to remove conditional config? I'm looking for ways to remove "00:1c:42:2e:60:4a=67890" line from the config file using Nextdns client.
We need to add a config del, for now you have to edit the file manually.
OK, then I'll manually remove it.
Sorry to ask a n00b quesiton but. Where is the config file on a pfsense box?
nevermind found it /usr/local/etc:nextdns.config
Looks like the document(wiki) didn't mention the config path, and it can vary based on different environment, on Ubuntu, it's /etc/nextdns.conf. @rs is it something that you can mention on the document, or printed from the log? Thanks.
The default config path is platform specific.
Then print it somewhere will be really useful 👍
In some cases it is not a file but the system's configuration API.
Oh, wow, almost forgot that I saw the case somewhere ... then it's very hard for end-users to know, but need to guess, unless we're familiar with NextDNS cli inside 😅
Maybe just clearly let the user know that the config is stored via system's configuration API, or it's a file somewhere, no matter what?
Most users don't care where the config is, they would just use the config set/del commands if needed.
Oh yes, the implementation of del command would give me one less reason to know it!
you have the nextdns config edit for that.
Just trying to scripting the process, so that I can do the s\ame thing on different places, the edit function will be limited in this case, currently that's what I'm manually do it.
We could add a list counter-part that would save the config it gets from stdin.
Install vi or set your EDITOR env to your editor of choice.