0

Domains Blacklist and Whitelist --> can you create a 'import txt' button?

Hi to all my dear,

we all needed a new option to  IMPORT a text file  

with a list of domains (one domain per line) in both the blocklist and the whitelist sections.

Currently, you can only add one unique domain at a time and cannot add multiple domains at once.

For example:

if I have 50 domains to allow (in Whitelist),

and 50 domains to deny (in Blacklist),

please realize that fiddling with 100 unique entries isn't ideal. 

Actually need to insert 'one by one' = Copy 100 times + Paste 100 times + Press Enter 100 times.

If I had the option to import two domain list files, it would be much simpler.

7 replies

null
    • Sasa.1
    • 2 wk ago
    • Reported - view

    My question is: would it be possible to implement a button to import a list of domains and not just one at a time? It's really frustrating.

      • jroks123
      • 2 wk ago
      • Reported - view

       

      The web UI only supports single-domain entry right now, but the API already exists and can be used for bulk denylist/allowlist management and automation.

      https://nextdns.github.io/api/

      • jroks123
      • 2 wk ago
      • Reported - view

      Also you could check out https://github.com/rhijjawi/NextDNS-API

      this is a tool written to solve this problem 

      • Sasa.1
      • 9 days ago
      • Reported - view

       

      Hi jroks123, and thank you so much for reading and writing for me. I really appreciate it.
      I didn't know there was a hidden API in the account section. I'm a very intuitive person, and in the end, as often happens, I did something all my own to manage the two lists I was interested in. So, let's just say I've solved the problem. Now I can import from a text file, delete multiple domains, etc. Obviously, as you can see, I developed it directly in Italian. :)

      So in just 15 seconds I upload 50 domains.

      • Sasa.1
      • 9 days ago
      • Reported - view
    • jroks123
    • 7 days ago
    • Reported - view

     That's fantastic work! 

    Does it ping the service each time to add or delete domains? Or are you sending in batch API calls? Either way works. But that's great work!

      • Sasa.1
      • 9 hrs ago
      • Reported - view

       

      Hi jroks123, nice to hear from you and thanks :) I knew you'd like it!

      Actually, I'll answer your two questions with a unique answer, since YES is for 'The system sends a request to the service every time it needs to add or delete domains' and YES for 'these are batch API calls'.

      So the API is triggered when I 'load' both lists, when I add or remove.

      The API is triggered 'on request' and for each operation I ask it to do.

Content aside

  • 9 hrs agoLast active
  • 7Replies
  • 68Views
  • 2 Following