mikecpt
Occasional Visitor
I had that issue when using ipv6.
Hum... Interesting I do use Ipv6, but I'm not using ipv6 resolver, In any case thanks for pointing me to that I will test
I had that issue when using ipv6.
Hum... Interesting I do use Ipv6, but I'm not using ipv6 resolver, In any case thanks for pointing me to that I will test
You set no-resolv in your dnsmasq configuration, right?
admin@RT-N66U-13C0:/jffs/configs# cat dnsmasq.conf.add
no-resolv
server=127.0.0.1#65053
admin@RT-N66U-13C0:/jffs/configs# cat dnsmasq.conf.add
no-resolv
server=10.10.50.10
admin@RT-N66U-13C0:/jffs/configs# service restart_dnsmasq
Done.
admin@RT-N66U-13C0:/jffs/configs# drill -t txt debug.opendns.com
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 42110
;; flags: qr rd ra ; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; debug.opendns.com. IN TXT
;; ANSWER SECTION:
debug.opendns.com. 0 IN TXT "server 9.lon"
debug.opendns.com. 0 IN TXT "flags 20 0 2F4 4000800000000000000"
debug.opendns.com. 0 IN TXT "originid 0"
debug.opendns.com. 0 IN TXT "actype 0"
debug.opendns.com. 0 IN TXT "source ********:15968"
debug.opendns.com. 0 IN TXT "dnscrypt enabled (.........)"
# drill -t txt debug.opendns.com -p 65053 @127.0.0.1
;; ->>HEADER<<- opcode: QUERY, rcode: NXDOMAIN, id: 62358
;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;; debug.opendns.com. IN TXT
;; ANSWER SECTION:
;; AUTHORITY SECTION:
opendns.com. 8950 IN SOA auth1.opendns.com. noc.opendns.com. 1421437379 16384 2048 1048576 2560
.....
My install is quite old on the ac68u, is there a way to install with 2 dns servers on the ac68?
Thanks.
Yes. :|Did you remember to set the wan-start script file as executable?
I'm having issues with my AC66R W/ 378.53. (Merlin)
I'm not having Internet connection, and DNSCrypt doesn't even appears in the log!
When I was, with the firmware, 5.78.52_2, everything was working OK.
I followed this guide:
https://github.com/RMerl/asuswrt-merlin/wiki/Secure-DNS-queries-using-DNSCrypt
## Use dnscrypt-proxy as a resolver
no-resolv
server=127.0.0.1#65053
server=127.0.0.1#65055
#!/bin/sh
# Run from "wan-start".
# This section starts dnscrypt-proxy to encrypt DNS requests.
logger -t $(basename $0) "started [$@]"
# Now resolve DNS name for NTP server
ntp_name=$(nvram get ntp_server0)
grep "$ntp_name" /etc/hosts > /dev/null 2>&1 || \
for ip in $(/jffs/bin/hostip $ntp_name)
do
echo $ip $ntp_name >> /etc/hosts
done
# restart NTP client to eliminate 4-5 mins delay
killall ntp && sleep 1
service restart_ntpc
# Kill any existing dnscrypt-proxy sessions to ensure we start clean
killall dnscrypt-proxy >/dev/null 2>&1 && sleep 1
/jffs/bin/dnscrypt-proxy --local-address=127.0.0.1:65053 --daemonize --resolvers-list=/jffs/configs/dnscrypt-resolvers.csv --resolver-name=opendns
/jffs/bin/dnscrypt-proxy --local-address=127.0.0.1:65055 --daemonize --resolvers-list=/jffs/configs/dnscrypt-resolvers.csv --resolver-name=dnscrypt.eu-dk
# Restarting dnsmasq will overwrite /etc/hosts
service restart_dnsmasq
Hi all,
Just thought I'd shared my wan-start script as I've now compiled and installed dnscrypt on my rt-ac68u and got it working with two dns providers.
The wan-start script below doesn't use hard-coded ntp servers and doesn't update /jffs/ either. Rather, it updates /etc/hosts directly using hostip and uses that to update the router's time.
In addition, I've copied the "dns-resolvers.csv" file to /jffs/configs/ so that it's easier to change dns providers.
The wan-start script below can easily be updated with a new dns provider and rerun to restart dnscrypt using the new dns providers. Hence, no reboot required.
The /jffs/configs/dnsmasq.conf.add remains largely the same as previously mentioned by ryzhov_al.
A huge thank you to ryzhov_al for the scripts which the below were based.
And another huge thank you for RMerlin for the awesome firmware.
/jffs/configs/dnsmasq.conf.add:
Code:## Use dnscrypt-proxy as a resolver no-resolv server=127.0.0.1#65053 server=127.0.0.1#65055
/jffs/scripts/wan-start:
Code:#!/bin/sh # Run from "wan-start". # This section starts dnscrypt-proxy to encrypt DNS requests. logger -t $(basename $0) "started [$@]" # Now resolve DNS name for NTP server ntp_name=$(nvram get ntp_server0) grep "$ntp_name" /etc/hosts > /dev/null 2>&1 || \ for ip in $(/jffs/bin/hostip $ntp_name) do echo $ip $ntp_name >> /etc/hosts done # restart NTP client to eliminate 4-5 mins delay killall ntp && sleep 1 service restart_ntpc # Kill any existing dnscrypt-proxy sessions to ensure we start clean killall dnscrypt-proxy >/dev/null 2>&1 && sleep 1 /jffs/bin/dnscrypt-proxy --local-address=127.0.0.1:65053 --daemonize --resolvers-list=/jffs/configs/dnscrypt-resolvers.csv --resolver-name=opendns /jffs/bin/dnscrypt-proxy --local-address=127.0.0.1:65055 --daemonize --resolvers-list=/jffs/configs/dnscrypt-resolvers.csv --resolver-name=dnscrypt.eu-dk # Restarting dnsmasq will overwrite /etc/hosts service restart_dnsmasq
Just copy the binary to the directory /jffs/bin/ . If the directory doesn't exist, just create it with "mkdir /jffs/bin/".How did you install dnscrypt-proxy to /jffs?
I have tried updating my running dnscrypt with your script but i get no internet on rt-a87u.Hi all,
Just thought I'd shared my wan-start script as I've now compiled and installed dnscrypt on my rt-ac68u and got it working with two dns providers.
The wan-start script below doesn't use hard-coded ntp servers and doesn't update /jffs/ either. Rather, it updates /etc/hosts directly using hostip and uses that to update the router's time.
In addition, I've copied the "dns-resolvers.csv" file to /jffs/configs/ so that it's easier to change dns providers.
The wan-start script below can easily be updated with a new dns provider and rerun to restart dnscrypt using the new dns providers. Hence, no reboot required.
The /jffs/configs/dnsmasq.conf.add remains largely the same as previously mentioned by ryzhov_al.
A huge thank you to ryzhov_al for the scripts which the below were based.
And another huge thank you for RMerlin for the awesome firmware.
/jffs/configs/dnsmasq.conf.add:
Code:## Use dnscrypt-proxy as a resolver no-resolv server=127.0.0.1#65053 server=127.0.0.1#65055
/jffs/scripts/wan-start:
Code:#!/bin/sh # Run from "wan-start". # This section starts dnscrypt-proxy to encrypt DNS requests. logger -t $(basename $0) "started [$@]" # Now resolve DNS name for NTP server ntp_name=$(nvram get ntp_server0) grep "$ntp_name" /etc/hosts > /dev/null 2>&1 || \ for ip in $(/jffs/bin/hostip $ntp_name) do echo $ip $ntp_name >> /etc/hosts done # restart NTP client to eliminate 4-5 mins delay killall ntp && sleep 1 service restart_ntpc # Kill any existing dnscrypt-proxy sessions to ensure we start clean killall dnscrypt-proxy >/dev/null 2>&1 && sleep 1 /jffs/bin/dnscrypt-proxy --local-address=127.0.0.1:65053 --daemonize --resolvers-list=/jffs/configs/dnscrypt-resolvers.csv --resolver-name=opendns /jffs/bin/dnscrypt-proxy --local-address=127.0.0.1:65055 --daemonize --resolvers-list=/jffs/configs/dnscrypt-resolvers.csv --resolver-name=dnscrypt.eu-dk # Restarting dnsmasq will overwrite /etc/hosts service restart_dnsmasq
What?The only way I could get this to work is re-compile dnscrypt-proxy and libsodium packages against /jffs/opt because these binaries are normally hard-coded to be run from /opt.
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
B | (solved) Dnscrypt blocked-names.txt automatically deleted upon modification | Asuswrt-Merlin | 4 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!