Comments (3)
Please provide an example of the use case you're attempting to solve and configuration.
from blacklist.
Hi britannic,
Thanks for checking in on this. Let's say I create the following TLD block list.
# TLDs to block
fit
gdn
ryukyu
I save it on a web server at hxxp://www.mydomainlist.com/tld.txt.
Then I configure the blacklist with the following commands:
configure
set service dns forwarding blacklist domains source myTLDs description 'Blacklist top-level domains'
set service dns forwarding blacklist domains source myTLDs url 'hxxp://www.mydomainlist.com/tld.txt'
commit;save;exit
I expect to see, but can't locate, a domains.myTLDs.blacklist.conf in the /etc/dnsmasq.d/ folder.
In the past, I've blocked top-level domains before with the example provided here and using a file like this one. It has worked well for a couple of years.
# TLDs to block
address=/fit/0.0.0.0
address=/gdn/0.0.0.0
address=/ryukyu/0.0.0.0
I'm just hoping to switch over to your program completely.
from blacklist.
@mygeek911, thanks for the detail. TLD redirection is supported by dnsmasq, so this will be an enhancement request, since the current program logic is set up to detect TLD + subdomain at a minimum. You're welcome to make a pull request and submit code changes if you need it quickly. If you only have a few TLDs to redirect, it may be simpler to just maintain the dnsmasq file using the task scheduler with your web server.
from blacklist.
Related Issues (20)
- Debian repo is inaccessible HOT 2
- Cannot allocate memory when using a large number of hosts HOT 2
- `/etc/init.d/dnsmasq restart` failed when trying to whitelist HOT 1
- Blocks Slack attachments HOT 1
- bug + github page mismatch ? HOT 1
- Commit local blacklist file without Internet access? HOT 1
- Remove ads from youtube app on TV HOT 1
- Add support for ERPro-8 / ER-8 HOT 2
- Installation error HOT 2
- troubleshooting HOT 1
- 'The specified configuration node is not valid' when setting global domain HOT 1
- dlb.oisd.nl certificate issue HOT 1
- No config files in /etc/dnsmasq.d after apt install HOT 2
- FAQ Cleanup suggestion HOT 1
- Time for an update build? HOT 3
- Re-order/number release list HOT 1
- Compatibility Typo HOT 1
- githubSteveBlack host file instructions, double quote error on ER4 v2.0.9-hotfix.6. HOT 1
- Package update needed...
- GPG signing key fails to install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blacklist.