SMARTDNS Guide

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 18, 19, 20  Next
Author Message
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6435
Location: UK, London, just across the river..

PostPosted: Tue Jan 25, 2022 19:55    Post subject: Reply with quote
you have to disable the GUI SmartDNS option
and than call it form start up script...

add this to start up script:

smartdns -c /jffs/etc/smartdns.conf


its worth reading thought all the thread... Cool

you can also run SmartDNS via /opt (entware installation) but you have to disable GUI option again...as it will always point to the wrong location...as in your case

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55779 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14208
Location: Texas, USA

PostPosted: Tue Jan 25, 2022 20:37    Post subject: Reply with quote
Not required anymore:

https://svn.dd-wrt.com/changeset/43979
https://github.com/mirror/dd-wrt/commit/6b34c7fe8c1aa08aa9edf749d4d13376dbb78553

There are likely other associated commits, but the custom config option was added and works on boot.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
hifiboy
DD-WRT Novice


Joined: 18 Nov 2021
Posts: 45

PostPosted: Tue Jan 25, 2022 22:23    Post subject: Reply with quote
I tried with the gui smart dns disabled and with smartdns -c /jffs/etc/smartdns.conf as start up command.
Some below outcomes:

root@DD-WRT:~# top -bn1 | grep -m1 smartdns
2067 2063 root S 1380 0.2 1 0.0 grep -m1 smartdns

C:\Users\KS>tracert google.com
Unable to resolve target system name google.com.
admin@DESKTOP-F5RJL31:/mnt/c/Users/KS$ dig twitter.com@192.168.1.1

; <<>> DiG 9.16.22-Debian <<>> twitter.com@192.168.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 27921
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; EDE: 14 (Not Ready)
;; QUESTION SECTION:
;twitter.com\@192.168.1.1. IN A

;; Query time: 0 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Tue Jan 25 22:10:24 GMT 2022
;; MSG SIZE rcvd: 58

The config file looks like is still not used. not wth the gui smart DNS enabled or disabled. Still not working
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6435
Location: UK, London, just across the river..

PostPosted: Tue Jan 25, 2022 22:31    Post subject: Reply with quote
kernel-panic69 wrote:
Not required anymore:

https://svn.dd-wrt.com/changeset/43979
https://github.com/mirror/dd-wrt/commit/6b34c7fe8c1aa08aa9edf749d4d13376dbb78553

There are likely other associated commits, but the custom config option was added and works on boot.


TBH i abandoned SamrtDNS as it started to brake up and DNS was not consistent...flooded with nxdomain replays, later i was aimed to try the entware option via /opt, but moved back to good old Stubby...witch is rock solid and light...i do like Unbound and DNScrypt too...but not many decent servers for DNScrypt v2 sadly...
May give a SmartDNS another go soon...will see..

by the look at your pictures, did you add this line to dnsmasq...as it seams you are missing it..you must disable dns-cache:

cache-size=0

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55779 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Wed Feb 23, 2022 12:19    Post subject: Reply with quote
kernel-panic69 wrote:
Not required anymore:

https://svn.dd-wrt.com/changeset/43979
https://github.com/mirror/dd-wrt/commit/6b34c7fe8c1aa08aa9edf749d4d13376dbb78553

There are likely other associated commits, but the custom config option was added and works on boot.


Hey, my post here https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=323896&postdays=0&postorder=asc&start=58 takes advantage of those commits. Unfortunately some people can't seem to get it working. Personally I've been running on that setup for a long time.

Why can't we have a "Custom SmartDNS Config" field/textarea in the UI so people can configure and save SmartDNS settings to the NVRAM instead of a file?

Thank you.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6435
Location: UK, London, just across the river..

PostPosted: Fri Feb 25, 2022 8:30    Post subject: Reply with quote
as KP-69 pointed on the new builds BS added a custom config check function, so on boot firmware will check if there is a custom config in jffs regarding SmartDNS settings and read/execute it...
Custom config in GUI option will require more space and increase firmware size i guess...if its working as it should now, no problem...

so adding this to start up script is obsolete / not required anymore...(probably wont hurt if you keep it, unless it causes a trouble anyway)

smartdns -c /jffs/etc/smartdns.conf

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55779 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Fri Feb 25, 2022 12:00    Post subject: Reply with quote
Once again:

Alozaros wrote:
on boot firmware will check if there is a custom config in jffs regarding SmartDNS settings and read/execute it...


I'm going that in my guide.

The thing is that we've "custom config" text areas for multiple services such as dnsmasq, dhcpd6/radv, dhcpd (v4), adblocking etc. why can't we have it for SmartDNS?

What's the point in discriminating specifically against SmartDNS if all the other services can/are configured with NVRAM?

Thank you.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
naruto_uzumaki
DD-WRT Novice


Joined: 17 Oct 2020
Posts: 13

PostPosted: Tue May 03, 2022 13:09    Post subject: Reply with quote
Alozaros wrote:
smartdns -c /jffs/etc/smartdns.conf


How are you guys getting smartdns to work with the custom config without restarting smartdns (manual/script)? I’m on the latest firmware.

On my RT-AC88U, smartdns always uses the default at /tmp/smartdns.conf as it takes longer than 20s to bring up /jffs.
wabe
DD-WRT Guru


Joined: 17 Jun 2006
Posts: 889

PostPosted: Thu May 05, 2022 20:28    Post subject: Reply with quote
naruto_uzumaki wrote:
Alozaros wrote:
smartdns -c /jffs/etc/smartdns.conf


How are you guys getting smartdns to work with the custom config without restarting smartdns (manual/script)? I’m on the latest firmware.

On my RT-AC88U, smartdns always uses the default at /tmp/smartdns.conf as it takes longer than 20s to bring up /jffs.

Seems strange that jffs takes that long to mount! I have a couple of AC68Us and no problem to get them to run the custom configuration from jffs. Maybe there are errors in your config file?

_________________
Netgear R7000 on Build 55109
Asus AC-AC68U rev. C1 (AP) on Build 55109
Asus AC-68U rev. A1 on Build 54604
Asus AC-68U rev. A1 on Build 53339
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Thu May 05, 2022 21:19    Post subject: Reply with quote
naruto_uzumaki wrote:
Alozaros wrote:
smartdns -c /jffs/etc/smartdns.conf


How are you guys getting smartdns to work with the custom config without restarting smartdns (manual/script)? I’m on the latest firmware.

On my RT-AC88U, smartdns always uses the default at /tmp/smartdns.conf as it takes longer than 20s to bring up /jffs.


No longer needed. Now you can store the entire SmartDNS config in NVRAM. Install r48786 or later.

Check the posts here (that eventually got to a SmartDNS update): https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=332021

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
naruto_uzumaki
DD-WRT Novice


Joined: 17 Oct 2020
Posts: 13

PostPosted: Thu May 05, 2022 22:04    Post subject: Reply with quote
wabe wrote:
Seems strange that jffs takes that long to mount! I have a couple of AC68Us and no problem to get them to run the custom configuration from jffs. Maybe there are errors in your config file?


Instead of relying on startup, I’m now using the firewall command script to restart smartdns and avahi. This seems to work consistently now eg.

service smartdns restart
itwontbewe
DD-WRT User


Joined: 29 Sep 2020
Posts: 260
Location: United States

PostPosted: Thu May 12, 2022 14:14    Post subject: Reply with quote
fyi there is now an Additional SmartDNS Options box
jffs is no longer needed

GUI
Services/Services
Additional SmartDNS Options

i just added
Quote:
server-tls 1.0.0.1:853 -host-name: one.one.one.one
server-tls 9.9.9.9:853 -host-name: dns.quad9.net


Last edited by itwontbewe on Sun Jun 12, 2022 18:18; edited 1 time in total
hifiboy
DD-WRT Novice


Joined: 18 Nov 2021
Posts: 45

PostPosted: Thu May 19, 2022 13:26    Post subject: Reply with quote
Does this mean the smart DNS can now be started with GUI options?
itwontbewe
DD-WRT User


Joined: 29 Sep 2020
Posts: 260
Location: United States

PostPosted: Thu May 19, 2022 13:44    Post subject: Reply with quote
using it from gui has worked a majority of the time. i believe the issue some people were having was with usb taking time to load. adding the below to startup solved that issue
Code:
is-mounted.sh /jffs
stopservice smartdns
startservice smartdns


now jffs is no longer needed

you can test with
Code:
server-tls 1.0.0.1:853 -host-name: one.one.one.one

and going to this link
https://1.1.1.1/help

after that use the dns of your choice


Last edited by itwontbewe on Sun Jun 12, 2022 18:19; edited 2 times in total
hifiboy
DD-WRT Novice


Joined: 18 Nov 2021
Posts: 45

PostPosted: Thu May 19, 2022 20:05    Post subject: Reply with quote
Now works fully with GUI. This is excellent Very Happy
I tested cloudfare DNS and teted via https://1.1.1.1/help. It shows use of DOT. however, for adguard family dot DNS, the same test doesn't show DOT enabled but adguard site test shows DOT enabled.

Four questions:

Possibly the adguards DOT dns is not fully DOT as cloudfare doesnt acknoweldge it?

Can we use DOT and Dns OVER https in the same additional smartdns options fileds?

There are two setting in the basic setup GUI page of ddwrt , unbound DNS and forced DOT. Are they also related to smart DNS config?

Also to achieve optimal settings, does DNSmasq needs to be disabled in GUI if running Smart DNS and is there a way to enable DNSECC in additional smart dns option?
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 18, 19, 20  Next Display posts from previous:    Page 6 of 20
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum