DNS options during slow pageloads??

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
greengeek
Posts: 1393
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 537 times
Been thanked: 193 times

DNS options during slow pageloads??

Post by greengeek »

Sometimes I find that websites either load slowly or not at all - and I wonder if DNS is at fault.

When this problem occurs I open a terminal and "ping 8.8.8.8" - which I believe is the Google dns server.
If that seems to be responding ok i then "ping 1.1.1.1" - which I believe is the Cloudflare dns server.

Tonight when I did this - i saw that the responses from Cloudflare were very much faster than the responses from the Google dns server.

So my question is: if I would like my browser to use Cloudflare rather than some other preset - how do I do this? Do i need to reconfigure and reset my router? Or is there some setting in Puppy that may override what the router is serving up?

I should already know this but my old brain is getting hazier and hazier as time goes on... :lol:

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: DNS options during slow pageloads??

Post by Jasper »

@greengeek

I have had similar issues over the past 72 hours :thumbdown:

You can change the DNS inside your browser, all of them will allow you do so.

Image

Alternatively, you can place a script in your Startup directory to specify your preferred DNS resolver.

Image

Finally, your router should have an option to set the DNS too.

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: DNS options during slow pageloads??

Post by Jasper »

@greengeek

If your homepage is lagging try using a lighter one eg:

Code: Select all


https://www.duckduckgo.com/lite

User avatar
wizard
Posts: 1993
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2667 times
Been thanked: 694 times

Re: DNS options during slow pageloads??

Post by wizard »

@greengeek

I should already know this but my old brain is getting hazier and hazier as time goes on.

:welcome: :D

You can also set your DNS server if you use a static IP address.

wizard

Big pile of OLD computers

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: DNS options during slow pageloads??

Post by williams2 »

You can bypass lookup of a dns server
by using the /etc/hosts file

for example, in a terminal:

Code: Select all

# nslookup puppylinux.com
Server:		127.0.0.1
Address:	127.0.0.1:53

Non-authoritative answer:
Name:	puppylinux.com
Address: 162.241.244.127

So, if you edit /etc/hosts adding the line

162.241.244.127 puppylinux.com

then it will first look in the hosts file for the url address
and if found, it won't need to get the address from a dns server.
The hosts file should be much faster than a dns server on the internet.

The internet connection probably needs to be restarted
for the change to take effect.

This may or may not work if you have a vpn configured,
or if running dnsmasq, or you configure your browser
to use a specific dns server.

Even if your dns server is broken and not responding,
the modified hosts file would allow you to access the forum.

If the address for puppylinux.com gets changed,
you would need to put the new address in hosts,
or it won't work (access to the forum would be effectively blocked)

User avatar
greengeek
Posts: 1393
Joined: Thu Jul 16, 2020 11:06 pm
Has thanked: 537 times
Been thanked: 193 times

Re: DNS options during slow pageloads??

Post by greengeek »

williams2 wrote: Tue Aug 20, 2024 6:35 pm

So, if you edit /etc/hosts adding the line

162.241.244.127 puppylinux.com

then it will first look in the hosts file for the url address
and if found, it won't need to get the address from a dns server.

I have it in my mind that in the old days we could enter the IP address of the old murga forum direct into the url field and get straight to the forum when dns servers were dodgy - but I just tried this with 162.241.244.127 and got a 404.

Am I doing this wrong?

Have things changed as a result of IPV6?

Or is that host file method you describe the proper way of going straight to an IP?

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: DNS options during slow pageloads??

Post by williams2 »

A newer browser like Firefox
might by default block a url that is a numeric address.
Malware sites and ad servers often are referenced with a numeric address.

My links text browser also isn't working with numeric web addresses.

The hosts file should link urls to numeric addresses,
for example, 127.0.0.1 localhost
but should work with www addresses as well as local addresses.

I'm not sure what has changed, it used to work.

User avatar
rockedge
Site Admin
Posts: 6571
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2779 times
Been thanked: 2650 times
Contact:

Re: DNS options during slow pageloads??

Post by rockedge »

The original Murga forum was on a virtual private server and it hosted just the forum phpBB2.

This version of the forum is running on a shared host server so multiple users are on each shared server. This might be the cause of the 404.

Carl_rey
Posts: 1
Joined: Mon Aug 26, 2024 11:02 am

Re: DNS options during slow pageloads??

Post by Carl_rey »

To make your browser use Cloudflare instead of Google, you don’t necessarily need to fiddle with your router. You just need to change the DNS settings directly in your system’s network settings. Replace the existing DNS addresses with Cloudflare’s (1.1.1.1 and 1.0.0.1), and it should speed things up.
It’s a bit like when you want to massively follow on Twitter, you don’t need to recreate an account, you just adjust the settings to get what you’re looking for! :lol: :lol: And don’t worry about memory, even an old hard drive can get its speed back with the right setting!

Post Reply

Return to “Users”