Here is my final config that seems to work with current Firmware Version:384.8 :
RT-AC88U-C1E8:/jffs/configs# cat dnsmasq.conf.add
no-resolv
strict-order
address=/google.com/216.239.38.120
address=/google.fr/216.239.38.120
address=/explicit.bing.net/216.239.38.120...
Now I want to do better : forward my name request to a opendns family shield DNS : 208.67.222.123, 208.67.220.123.
here is my dnsmasq.conf.add
RT-AC88U-C1E8:/jffs/configs# cat dnsmasq.conf.add
no-resolv
strict-order
server=208.67.222.123
server=208.67.220.123...
It seems to work!
crosh> ping www.google.com
PING www.google.com (216.239.38.120) 56(84) bytes of data.
64 bytes from forcesafesearch.google.com (216.239.38.120): icmp_seq=1 ttl=53 time=4.29 ms
64 bytes from forcesafesearch.google.com (216.239.38.120): icmp_seq=2 ttl=53 time=4.68 ms
64 bytes...
Work from the router
RT-AC88U-C1E8:/tmp/home/root# ping www.google.com
PING www.google.com (216.239.38.120): 56 data bytes
64 bytes from 216.239.38.120: seq=0 ttl=54 time=3.593 ms
64 bytes from 216.239.38.120: seq=1 ttl=54 time=3.440 ms
64 bytes from 216.239.38.120: seq=2 ttl=54 time=3.225 ms...
But does not work from my pc:
crosh> ping www.google.com
PING www.google.com (216.58.209.228) 56(84) bytes of data.
64 bytes from par10s29-in-f4.1e100.net (216.58.209.228): icmp_seq=1 ttl=53 time=4.30 ms
64 bytes from par10s29-in-f4.1e100.net (216.58.209.228): icmp_seq=2 ttl=53 time=4.82 ms
^C...
I have finally tested on the 384.8 firmware. It does not work for me.
RT-AC88U-C1E8:/jffs/configs# cat dnsmasq.conf.add
no-resolv
strict-order
server=208.67.222.123
server=208.67.220.123
address=/www.google.com/216.239.38.120
address=/www.google.fr/216.239.38.120...
Look I have enabled dns filtering:
But look google safe searching is disabled: the answer should be 216.239.38.120
parent@duveau-MS-7751:~$ dig @8.8.8.8 www.google.com
; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> @8.8.8.8 www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer...
Yes but this disables the google safe search enforcemement, I have achieved by using the following lines:
cat /jffs/configs/dnsmasq.conf.add
no-resolv
strict-order
address=/www.google.com/216.239.38.120
address=/www.google.fr/216.239.38.120
address=/google.com/216.239.38.120...