gatorback
Regular Contributor
I am interested in tests that can diagnose the 'advance method' adblock procedure:
http://www.snbforums.com/threads/adblocking-with-combined-hosts-file.15309/
Per the procedure, these files were installed:
The last entry, dnsmasq.conf.add is not executable so I added execute permissions and restarted the dnsmasq service:
I flushed the DNS cache in my win7 box:
I assume that the blocked sites are listed here and are redirected 0.0.0.0
ping or nslookup did not resolve to 0.0.0.0 I did reboot the device however, no improvement.
Diagnostic Questions
1) Is my expectation of nslookup or ping resolving to 0.0.0.0 correct?
2) Is there a command that can verify that dnsmasq.conf.add has entered the hosts.blocked entries to the DNS memory table? Maybe there is a command to display what is in the DNS memory table?
3) Are there any other diagnostics that can be performed to isolate / identify the issue?
4) Is there any other info I can provide?
Thank you for actionable and constructive suggestions.
http://www.snbforums.com/threads/adblocking-with-combined-hosts-file.15309/
Per the procedure, these files were installed:
Code:
root@ROUTER:/tmp/home/root# ls -l /jffs/scripts/services-start
-rwxr-xr-x 1 root root 141 Oct 13 23:49
/jffs/scripts/services-start
root@ROUTER:/tmp/home/root# ls -l /jffs/configs/dnsmasq.conf.add
-rw-r--r-- 1 root root 168 Oct 13 23:52
/jffs/configs/dnsmasq.conf.add
root@ROUTER:/tmp/home/root# ls -l /jffs/scripts/update-hosts.sh
-rwxr-xr-x 1 root root 946 Oct 13 23:54
/jffs/scripts/update-hosts.sh
root@ROUTER:/tmp/home/root# ls -l /tmp/mnt/sda1/hosts/whitelist.txt
-rw-rw-rw- 1 root root 11 Oct 14 00:07
/tmp/mnt/sda1/hosts/whitelist.txt
root@ROUTER:/tmp/home/root# ls -l /tmp/mnt/sda1/hosts/blacklist.txt
-rw-rw-rw- 1 root root 0 Oct 14 00:07
/tmp/mnt/sda1/hosts/blacklist.txt
root@ROUTER:/tmp/home/root# ls -l /jffs/configs/dnsmasq.conf.add
-rw-r--r-- 1 root root 168 Oct 13 23:52
The last entry, dnsmasq.conf.add is not executable so I added execute permissions and restarted the dnsmasq service:
Code:
root@ROUTER:/tmp/home/root# chmod 755 /jffs/configs/dnsmasq.conf.add
root@ROUTER:/tmp/home/root# ls -l /jffs/configs/dnsmasq.conf.add
-rwxr-xr-x 1 root root 168 Oct 13 23:52
/jffs/configs/dnsmasq.conf.add
root@ROUTER:/tmp/home/root# service restart_dnsmasq
I flushed the DNS cache in my win7 box:
Code:
ipconfig /flushdns
I assume that the blocked sites are listed here and are redirected 0.0.0.0
Code:
tail -n 11 /tmp/mnt/sda1/hosts/hosts.blocked
ping or nslookup did not resolve to 0.0.0.0 I did reboot the device however, no improvement.
Diagnostic Questions
1) Is my expectation of nslookup or ping resolving to 0.0.0.0 correct?
2) Is there a command that can verify that dnsmasq.conf.add has entered the hosts.blocked entries to the DNS memory table? Maybe there is a command to display what is in the DNS memory table?
3) Are there any other diagnostics that can be performed to isolate / identify the issue?
4) Is there any other info I can provide?
Thank you for actionable and constructive suggestions.
Last edited: