What's new

AdGuardHome [RELEASE] Asuswrt-Merlin-AdGuardHome-Installer (AMAGHI)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Sounds like you need to refresh each device on your network if they are not already listening to the router for dns.
For example my desktop is using the router as gateway. If I install adguard and disconnect from the wifi and reconnect again, the gateway is not set anymore and I cant resolve dns. If I uninstall adguard and reconnect it is set again and I'm having no trouble resolving dns. Is this expected behaviour?
 
For example my desktop is using the router as gateway. If I install adguard and disconnect from the wifi and reconnect again, the gateway is not set anymore and I cant resolve dns. If I uninstall adguard and reconnect it is set again and I'm having no trouble resolving dns. Is this expected behaviour?
One guy said he had to put the ip address of his router in lan dns 1 on the dhcp page to get his router to connect, also make sure your wan dns 1 and 2 are set to auto
 
This is awesome, thank you guys for getting this up and running.

Couple of tips for anyone getting ready to install:
1. Be patient. The install takes a while, the router may hit 100% cpu and sit there (quite a while meaning more than a few minutes
2. Adguard admin name and password is for the new adguard control page, i.e. the page running on the router, NOT an adguard account on their website.

Both are mentioned earlier in the thread, I'm just repeating it here because those items caused me some concern / i.e. I wasn't sure if everything was OK, but it is :)
 
One guy said he had to put the ip address of his router in lan dns 1 on the dhcp page to get his router to connect, also make sure your wan dns 1 and 2 are set to auto

Yeah I also tried this. I just noticed in the cases where it doesnt work (so after installing adguard) the advertised dns is ipv6. Setting the dns1 or dns2 to the routers IP doesnt change anything unfortunately. Testing it with 9.9.9.9 on the other hand advertises it (as ipv4) so I dont really know whats going on here.

About the other questions: as I already said I have basically no idea about networking ^^ but I dont think I'm using double nat after what I just googled. I'm using the ISP modem where only my router is connected via lan and all the other devices connect to the router. No other dns, uninstalling unbound also doesnt change anything.
 
Yeah I also tried this. I just noticed in the cases where it doesnt work (so after installing adguard) the advertised dns is ipv6. Setting the dns1 or dns2 to the routers IP doesnt change anything unfortunately. Testing it with 9.9.9.9 on the other hand advertises it (as ipv4) so I dont really know whats going on here.

About the other questions: as I already said I have basically no idea about networking ^^ but I dont think I'm using double nat after what I just googled. I'm using the ISP modem where only my router is connected via lan and all the other devices connect to the router. No other dns, uninstalling unbound also doesnt change anything.
Okay so it chops down it whether you are properly configuring unbound as the upstream resolver. For example, if unbound is listening on 127.0.0.1 at port 5553, then you have to place that as the upstream address plus the specific port.
 
Yeah I also tried this. I just noticed in the cases where it doesnt work (so after installing adguard) the advertised dns is ipv6. Setting the dns1 or dns2 to the routers IP doesnt change anything unfortunately. Testing it with 9.9.9.9 on the other hand advertises it (as ipv4) so I dont really know whats going on here.

About the other questions: as I already said I have basically no idea about networking ^^ but I dont think I'm using double nat after what I just googled. I'm using the ISP modem where only my router is connected via lan and all the other devices connect to the router. No other dns, uninstalling unbound also doesnt change anything.
So the only custom script that the script modifies is dnsmasq.postconf in /jffs/scripts. What is your contents of this file?

cat /jffs/scripts/dnsmasq.postconf

Also

What is the content of

cat /etc/dnsmasq.conf
 
I just read the other thread, this guy had to set DNS1 and DNS2. Setting both to the router IP also works for me.

Settings only one of it or just "Advertise router's IP in addition to user-specified DNS" to yes doesnt help. Sorry for all this messages and big thanks for your patience and work :)
 
I just read the other thread, this guy had to set DNS1 and DNS2. Setting both to the router IP also works for me.

Settings only one of it or just "Advertise router's IP in addition to user-specified DNS" to yes doesnt help. Sorry for all this messages and big thanks for your patience and work :)
I wonder if there is a glitch on one of the router models because I have been unable to replicate the same issue? What model router are you using?
 
Yea I am still on the previous version.
Pinging @RMerlin
Have you noticed any issues with clients reconnecting and not having dns?
I just had a problem with my client losing DNS.

Description
Router AX68U
Merlin: 386.4
amtm - obviously updated to latest version
Other: YazFi & YazFi DHCP & Entware

Installed AdGuard - everything worked for a while, then suddenly no more DNS resolution.

Upon investigation, realized that my phone & laptop no longer had any DNS entries
DHCP setting: Blank except radio button to "Advertise router's IP in addition to user-specified DNS" is set to Yes

Problem:
On client, there were zero DNS entries.

Solution:
Set router IP address to in LAN | DHCP | Server 1 field.

Now client shows DNS, internet works again
 
I just had a problem with my client losing DNS.

Description
Router AX68U
Merlin: 386.4
amtm - obviously updated to latest version
Other: YazFi & YazFi DHCP & Entware

Installed AdGuard - everything worked for a while, then suddenly no more DNS resolution.

Upon investigation, realized that my phone & laptop no longer had any DNS entries
DHCP setting: Blank except radio button to "Advertise router's IP in addition to user-specified DNS" is set to Yes

Problem:
On client, there were zero DNS entries.

Solution:
Set router IP address to in LAN | DHCP | Server 1 field.

Now client shows DNS, internet works again
That is something some of the users have been reporting. Can you do me two favors? What firmware version are you using ? and what does the entries of /etc/dnsmasq.conf look like before you added the router ip to lan dns 1. ? ( take the lan dhcp 1 option away for a minute and report the non-private entries in your /etc/dnsmasq.conf file..) If you want to PM me that is fine too.
 
That is something some of the users have been reporting. Can you do me two favors? What firmware version are you using ? and what does the entries of /etc/dnsmasq.conf look like before you added the router ip to lan dns 1. ? ( take the lan dhcp 1 option away for a minute and report the non-private entries in your /etc/dnsmasq.conf file..)
Of course, assuming you mean this:
Firmware Version:386.4

BEFORE removal of DHCP - DNS option:
<--START-->

# cat /etc/dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=pptp*
no-dhcp-interface=pptp*
no-resolv
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
bogus-priv
domain-needed
dhcp-range=lan,192.168.51.2,192.168.51.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.51.1
dhcp-option=lan,6,192.168.51.1,0.0.0.0
dhcp-option=lan,252,"\n"
dhcp-authoritative
interface=br1
dhcp-range=br1,192.168.101.2,192.168.101.254,255.255.255.0,86400s
dhcp-option=br1,3,192.168.101.1
interface=br2
dhcp-range=br2,192.168.102.2,192.168.102.254,255.255.255.0,86400s
dhcp-option=br2,3,192.168.102.1
address=/use-application-dns.net/
address=/_dns.resolver.arpa/
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
script-arp
edns-packet-max=1280

addn-hosts=/jffs/addons/YazDHCP.d/.hostnames # YazDHCP_hostnames
dhcp-hostsfile=/jffs/addons/YazDHCP.d/.staticlist # YazDHCP_staticlist
dhcp-optsfile=/jffs/addons/YazDHCP.d/.optionslist # YazDHCP_optionslist

### Start of script-generated configuration for interface wl0.2 ###
interface=wl0.2
dhcp-range=wl0.2,192.168.3.2,192.168.3.254,255.255.255.0,86400s
dhcp-option=wl0.2,3,192.168.3.1
dhcp-option=wl0.2,6,192.168.50.129,192.168.50.147
dhcp-option=wl0.2,44,192.168.51.1
### End of script-generated configuration for interface wl0.2 ###
port=553
local=/192.in-addr.arpa/
local=/10.in-addr.arpa/


<--END-->

AFTER removal of DHCP - DNS options:
<--START-->
# cat /etc/dnsmasq.conf
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=pptp*
no-dhcp-interface=pptp*
no-resolv
servers-file=/tmp/resolv.dnsmasq
no-poll
no-negcache
cache-size=1500
min-port=4096
bogus-priv
domain-needed
dhcp-range=lan,192.168.51.2,192.168.51.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.51.1
dhcp-option=lan,252,"\n"
dhcp-authoritative
interface=br1
dhcp-range=br1,192.168.101.2,192.168.101.254,255.255.255.0,86400s
dhcp-option=br1,3,192.168.101.1
interface=br2
dhcp-range=br2,192.168.102.2,192.168.102.254,255.255.255.0,86400s
dhcp-option=br2,3,192.168.102.1
address=/use-application-dns.net/
address=/_dns.resolver.arpa/
dhcp-name-match=set:wpad-ignore,wpad
dhcp-ignore-names=tag:wpad-ignore
dhcp-script=/sbin/dhcpc_lease
script-arp
edns-packet-max=1280

addn-hosts=/jffs/addons/YazDHCP.d/.hostnames # YazDHCP_hostnames
dhcp-hostsfile=/jffs/addons/YazDHCP.d/.staticlist # YazDHCP_staticlist
dhcp-optsfile=/jffs/addons/YazDHCP.d/.optionslist # YazDHCP_optionslist

### Start of script-generated configuration for interface wl0.2 ###
interface=wl0.2
dhcp-range=wl0.2,192.168.3.2,192.168.3.254,255.255.255.0,86400s
dhcp-option=wl0.2,3,192.168.3.1
dhcp-option=wl0.2,6,192.168.50.129,192.168.50.147
dhcp-option=wl0.2,44,192.168.51.1
### End of script-generated configuration for interface wl0.2 ###
port=553
local=/192.in-addr.arpa/
local=/10.in-addr.arpa/
<--END-->
 
After I removed the DHCP - DNS entry, switched networks, and on re-joining the problem was back.
So definitely, the DHCP - DNS option must be filled in, the radial button is no longer enough.

Let me know if there's something else you'd like me to test. Happy to help.
 
After I removed the DHCP - DNS entry, switched networks, and on re-joining the problem was back.
So definitely, the DHCP - DNS option must be filled in, the radial button is no longer enough.

Let me know if there's something else you'd like me to test. Happy to help.
does the same issue persist with ipv6? can you check if IPV6 are getting their dns address on the clients?
 
dhcp-option=lan,6,0.0.0.0
@RMerlin did you change anything in the code for how DHCP is handled. on 386.3 I don't see a line for DNS advertisement for ipv4 inside dnsmasq when router is set to advertise itself as DNS and dhcp dns 1 and 2 are left blank. On 386.4 , it throws in the

dhcp-option=lan,6,0.0.0.0

for dns.

This seems to oddly change the behavior of DNSMASQ, epecially if the port is changed to allow another DNS server to occupy port 53.
 
Just updated to v1.0.1 and things work now with no entry in the DHCP - DNS option, just the radio button set to yes, everything works.

Thanks! :)
 
@RMerlin did you change anything in the code for how DHCP is handled. on 386.3 I don't see a line for DNS advertisement for ipv4 inside dnsmasq when router is set to advertise itself as DNS and dhcp dns 1 and 2 are left blank. On 386.4 , it throws in the

dhcp-option=lan,6,0.0.0.0

for dns.

This seems to oddly change the behavior of DNSMASQ, epecially if the port is changed to allow another DNS server to occupy port 53.
No changes to that code in years:

Code:
merlin@ubuntu-dev:~/amng/release/src/router/rc$ git blame -L 1704 -- services.c
2e104e83cd1 (Eric Sauvageau      2017-08-27 01:27:50 -0400  1704)               /* DNS server and additional router address */
2e104e83cd1 (Eric Sauvageau      2017-08-27 01:27:50 -0400  1705)               value = nvram_safe_get("dhcp_dns1_x");
2e104e83cd1 (Eric Sauvageau      2017-08-27 01:27:50 -0400  1706)               value2 = nvram_safe_get("dhcp_dns2_x");
2e104e83cd1 (Eric Sauvageau      2017-08-27 01:27:50 -0400  1707)               if ((*value && inet_addr(value)) || (*value2 && inet_addr(value2)))
10bc8c9e7ed (Eric Sauvageau      2017-09-03 21:38:39 -0400  1708)                       fprintf(fp, "dhcp-option=lan,6%s%s%s%s%s\n",
10bc8c9e7ed (Eric Sauvageau      2017-09-03 21:38:39 -0400  1709)                                    (*value && inet_addr(value) ? "," : ""),
10bc8c9e7ed (Eric Sauvageau      2017-09-03 21:38:39 -0400  1710)                                    (*value && inet_addr(value) ? value : ""),
10bc8c9e7ed (Eric Sauvageau      2017-09-03 21:38:39 -0400  1711)                                    (*value2 && inet_addr(value2) ? "," : ""),
10bc8c9e7ed (Eric Sauvageau      2017-09-03 21:38:39 -0400  1712)                                    (*value2 && inet_addr(value2) ? value2 : ""),
10bc8c9e7ed (Eric Sauvageau      2017-09-03 21:38:39 -0400  1713)                                    (nvram_match("dhcpd_dns_router","1") ? ",0.0.0.0" : ""))

However dnsmasq got updated from 2.84 to 2.86.

.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top