How to clear Pale Moon's DNS cache?

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
ron_1
Moon Magic practitioner
Moon Magic practitioner
Posts: 2987
Joined: 2012-06-28, 01:20

How to clear Pale Moon's DNS cache?

Unread post by ron_1 » 2024-11-14, 23:42

Operating system: Devuan GNU/Linux 5
Browser version: 33.4.1
32-bit or 64-bit browser?: 64-bit

How to clear Pale Moon's DNS cache? I found instructions for Firefox that said go to about:networking, then click on DNS, then click the button that says Clear DNS Cache, but Pale Moon has no such button.

EDIT
Looking into this more, I came across this old thread: https://forum.palemoon.org/viewtopic.php?f=46&t=31478
I didn't untick the box in uBo that disables prefetching when I saw this thread when it was new. So does this mean that Pale Moon on my system has no DNS cache? (I'm sure this is a dumb question, but I'm going on the philosophy that no question is dumb.)

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37531
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: How to clear Pale Moon's DNS cache?

Unread post by Moonchild » 2024-11-15, 09:52

There's currently no good way to do this (there's no way to programmatically clear the DNS cache since it's normally not needed).
I'll add this as an enhancement to the platform, shouldn't be too hard to do this.

The default is for them to expire after 3 minutes (for those not having a TTL supplied by the DNS server), which you can adjust as a workaround to a small number with network.dnsCacheExpiration. Alternatively you can disable/enable PB mode or change your network and it should also clear. It's kludgy, I know, so this is a good request if it's necessary to clear the cache for some reason.

EDIT: Filed and solved Issue #2652 (UXP). It'll be in 33.5.0
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
ron_1
Moon Magic practitioner
Moon Magic practitioner
Posts: 2987
Joined: 2012-06-28, 01:20

Re: How to clear Pale Moon's DNS cache?

Unread post by ron_1 » 2024-11-15, 21:11

Moonchild wrote:
2024-11-15, 09:52
EDIT: Filed and solved Issue #2652 (UXP). It'll be in 33.5.0
Thanks.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37531
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: How to clear Pale Moon's DNS cache?

Unread post by Moonchild » 2024-11-15, 21:27

ron_1 wrote:
2024-11-14, 23:42
I didn't untick the box in uBo that disables prefetching when I saw this thread when it was new. So does this mean that Pale Moon on my system has no DNS cache? (I'm sure this is a dumb question, but I'm going on the philosophy that no question is dumb.)
To answer this: DNS prefetching isn't the same as DNS caching -- they are flipsides in a way. The uBo setting affects prefetching (looking up hosts before navigating) - the thing here affects caching (post-navigation "remembering" of the lookup)
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite