question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Comments for Pi-hole v5

See original GitHub issue

Pi-hole v5 allows to add comments. The following command is not documented yet but works 😉 See: https://github.com/pi-hole/pi-hole/commit/15a9d662ac5e1aab12a7c025a48d75971b3687f0

pihole -w "test.com" --comment "Test comment"

image

I could add such functionality if there is interest. We would just need to add comments to the whitelist.txt file, too. What do you think?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
andmpelcommented, May 16, 2020

I’ve figured out how to modify the script to incorporate the --comment field to all the whitelist domains.

modify the whitelist.sh script and add "–comment “anudeepND/whitelist” in the following line as shown below and execute the script to have all top the whitelisted domains from the script imported with a comment of “anudeepND/whitelist”

${GRAVITY_UPDATE_COMMAND} $(cat /etc/pihole/whitelist.txt | xargs) --comment "anudeepND/whitelist" > /dev/null

0reactions
andmpelcommented, Sep 1, 2020

Can’t wait to test it out! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pi-hole v5.0 is here! : r/pihole - Reddit
1.8K votes, 494 comments. ... "The Pi-hole® is a DNS sinkhole that protects your devices from unwanted ... r/pihole - Pi-hole v5.0 is...
Read more >
Pi-hole v5.0 is here!
Improved debug log that shows your blocklists and groups in a tabular format, including comments and enable/disable status. Slightly changed ...
Read more >
Add comments to domains on the CLI - Pi-hole Userspace
Problem with Beta 5.0: I was messing around with the sqlite db, but noticed there was no whitelist table. Does anyone have any...
Read more >
Overview - Pi-hole documentation
The comment field is optional and can be empty. Pi-hole's FTL DNS reads the tables through the various view, omitting any disabled domains....
Read more >
Pi-hole FTL v5.18.2, Web v5.16 and Core v5.13 released
Pi-hole FTL v5.18.2, Web v5.16 and Core v5.13 released. Adam Warner 2022-10-10 Updates 0. As always, please read through the changelog ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found