Turning off DNS Caching
Moderator: Moderators
Re: Turning off DNS Caching
https://www.youtube.com/watch?v=_NqHpRHl8gQ
Make sure you use SSH not Telnet if you’re on 1.10 or later.
Make sure you use SSH not Telnet if you’re on 1.10 or later.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Turning off DNS Caching
These choices work for me, he probably put it in the wrong place.Lantis wrote:Failsafe mode, then remove those two options. Reboot and see if it’s ok. Otherwise a full failsafe reset.
It won’t be a brick.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users
Re: Turning off DNS Caching
When you get into failsafe mode, what you wrote to @Lantis, run the command via PuTTY:pmerrill wrote:Ok, so can you provide a link about how to boot into failsafe mode?Lantis wrote:Failsafe mode, then remove those two options. Reboot and see if it’s ok. Otherwise a full failsafe reset.
It won’t be a brick.
Code: Select all
mtd -r erase rootfs_data
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users
Re: Turning off DNS Caching
Why erase everything if only two lines caused a problem? It is worth trying to get those first
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Turning off DNS Caching
I guess these two lines can't be the case - it's a dhcp v4 file and shouldn't have the catastrophic effect that the router won't boot.Lantis wrote:Why erase everything if only two lines caused a problem? It is worth trying to get those first
EDIT: And if the router normally boot up, wouldn't it be enough to set up a static IP on the PC and fix the lines?
But good, let's try to erase the two lines first.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users
Re: Turning off DNS Caching
Ok, got into failsafe mode ok. Changed the two lines back to the way they were, powered off the router, powered it back on and works fine now.
The changes I made were in the /etc/config/dhcp file in the dnsmasq section.
It's an Archer C7 V2 if that helps but it was those 2 lines that caused the problem.
The changes I made were in the /etc/config/dhcp file in the dnsmasq section.
It's an Archer C7 V2 if that helps but it was those 2 lines that caused the problem.
Paul
Gargoyle 1.11.x on TP-Link Archer C7 V2 H/W
Gargoyle 1.11.x on TP-Link Archer C7 V2 H/W
Re: Turning off DNS Caching
No idea, not my area of expertise and I’ve never looked into it. But it must now be comforting to know that you can recover your router if it goes wrong again 

https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Turning off DNS Caching
This is really weird, it should work: https://oldwiki.archive.openwrt.org/doc/uci/dhcp
This option is included in OpenWrt LuCI:


Nothing, everyone can be wrong, so sorry
.
This option is included in OpenWrt LuCI:


Nothing, everyone can be wrong, so sorry

Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0
http://gargoyle.romanhk.cz custom builds by gargoyle users
Re: Turning off DNS Caching
Not to worry, no harm done. What was curious was that with the changes the router booted fine, all the lights were flashing like it was working but no way could I connect and there was no access to the internet either.RomanHK wrote:This is really weird, it should work: https://oldwiki.archive.openwrt.org/doc/uci/dhcp
This option is included in OpenWrt LuCI:
Nothing, everyone can be wrong, so sorry.
I'll keep doing some research and see if I can sort it out.
Paul
Gargoyle 1.11.x on TP-Link Archer C7 V2 H/W
Gargoyle 1.11.x on TP-Link Archer C7 V2 H/W
Re: Turning off DNS Caching
So this is getting very strange now and given my personality, I ain't giving up! So here's the curious thing, if I login to the router and do nslookup twitch.tv I can see it return 195.46.39.1, which is a block page from safedns.
If I go to my PC and I do nslookup twitch.tv from cmd, then I get
> nslookup twitch.tv
Server: Gargoyle.lan
Address: 192.168.1.1
Non-authoritative answer:
Name: twitch.tv
Addresses: 151.101.130.167
151.101.66.167
151.101.194.167
151.101.2.167
So then I went back to the router and executed
# killall -1 dnsmasq
which I understand will clear the router DNS cache
I then did a lookup of twitch.tv again and it came back with the same 195.46.39.1 and yet nslookup twitch.tv from my PC (via cmd window) still returns 151.101.66.167. Yet, if I enter twitch.tv from my google browser on my phone connected to wifi, it comes back with "This site can't be reached".
Ideas???
If I go to my PC and I do nslookup twitch.tv from cmd, then I get
> nslookup twitch.tv
Server: Gargoyle.lan
Address: 192.168.1.1
Non-authoritative answer:
Name: twitch.tv
Addresses: 151.101.130.167
151.101.66.167
151.101.194.167
151.101.2.167
So then I went back to the router and executed
# killall -1 dnsmasq
which I understand will clear the router DNS cache
I then did a lookup of twitch.tv again and it came back with the same 195.46.39.1 and yet nslookup twitch.tv from my PC (via cmd window) still returns 151.101.66.167. Yet, if I enter twitch.tv from my google browser on my phone connected to wifi, it comes back with "This site can't be reached".
Ideas???
Paul
Gargoyle 1.11.x on TP-Link Archer C7 V2 H/W
Gargoyle 1.11.x on TP-Link Archer C7 V2 H/W