How to modify dns?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
debianfan
Posts: 60
Joined: Wed Dec 01, 2021 4:44 am
Has thanked: 9 times
Been thanked: 2 times

How to modify dns?

Post by debianfan »

/etc/resolv.conf
After the modification, the next time you reconnect to the Internet, it will change.

User avatar
bigpup
Moderator
Posts: 6975
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 902 times
Been thanked: 1520 times

Re: How to modify dns?

Post by bigpup »

What specific operating system you using?

what exactly are you wanting to do?

Read the file /etc/README.txt

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
BologneChe
Posts: 510
Joined: Sun Aug 23, 2020 12:29 am
Location: Stoneham, Québec
Has thanked: 318 times
Been thanked: 140 times

Re: How to modify dns?

Post by BologneChe »

Hi!
Depending on your browser, you can change it in its settings (DNS via HTTPS).

Born to lose; live to win

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

Re: How to modify dns?

Post by williams2 »

/etc/resolv.conf
After the modification, the next time you reconnect to the Internet, it will change.

If you are trying to set a dns name server,
you can put the address in /etc/resolv.conf.head (create the file if it's not there)
like this:

nameserver 1.1.1.1

1.1.1.1 is CloudFlare's public dns server. It should work, even if your isp's dns server is not working.

Note: There might be a gui in Puppy that can be configured to set your dns server,
which could possibly conflict with editing /etc/resolv.conf.head manually. Or not.

debianfan
Posts: 60
Joined: Wed Dec 01, 2021 4:44 am
Has thanked: 9 times
Been thanked: 2 times

Re: How to modify dns?

Post by debianfan »

williams2 wrote: Fri May 27, 2022 9:52 pm

/etc/resolv.conf
After the modification, the next time you reconnect to the Internet, it will change.

If you are trying to set a dns name server,
you can put the address in /etc/resolv.conf.head (create the file if it's not there)
like this:

nameserver 1.1.1.1

1.1.1.1 is CloudFlare's public dns server. It should work, even if your isp's dns server is not working.

Note: There might be a gui in Puppy that can be configured to set your dns server,
which could possibly conflict with editing /etc/resolv.conf.head manually. Or not.

Thanks Reply! But building /etc/resolv.conf.head has no effect, doesn't work. Only modifying /etc/resolv.conf has an effect, but it will be automatically modified on the next connection. Internet connection is: frisbee

williwaw
Posts: 1930
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 170 times
Been thanked: 364 times

Re: How to modify dns?

Post by williwaw »

you could use a script to overwrite the generated conf with your own
make it sleep some before overwriting if you place it in /root/startup

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

Re: How to modify dns?

Post by williams2 »

/etc/resolv.conf.head has no effect, doesn't work

It works for my BionicPup64 using frisbee.

Code: Select all

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

Non-authoritative answer:
Name:	google.com
Address: 142.251.32.110

which shows that my dns server is 127.0.0.1
127.0.0.1 is the address of my dnsmasq caching dns server on my own computer,
which I set in /etc/resolv.conf.head

What version of Puppy are you running?

an example script:

Code: Select all

#!/bin/sh
rfkill block wlan
sleep 2
echo 'nameserver 1.1.1.1
nameserver 8.8.8.8' > /etc/resolv.conf.head
rfkill unblock wlan

This script turns off the wlan device (your wifi device might have a different name)
then wait for 2 seconds to let things settle,
then creates a new /etc/resolv.conf.head file containing the dns server addresses that You want to use,
then turns on the wlan wifi device,
which should copy the lines in /etc/resolv.conf.head to /etc/resolv.conf
and use the dns addresses in /etc/resolv.conf

Have you configured a static dns address, as opposed to dhcpcd?
Are you using ip4 or ip6?

User avatar
bigpup
Moderator
Posts: 6975
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 902 times
Been thanked: 1520 times

Re: How to modify dns?

Post by bigpup »

If you are trying to have a set static IP
The Network Wizard has option to do that.

Frisbee is probably just doing a auto dns setup from info provided by whoever is providing your service each time you boot up.

Turn off (un-select) auto DHCP in Frisbee ->Network Interfaces
Then you can make static settings.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: How to modify dns?

Post by OscarTalks »

The network manager (Frisbee in this case) will normally have the facility to manage DNS and if this is set it will persist when rebooting or re-connecting. If using SNS, the manual DNS option may not be available. (Not sure if it has been added to more recent versions of SNS?)

Here is Frisbee in Slacko 7.0 (32bit)
As mentioned above, with an interface selected, untick the "Auto DHCP" box
The fields for manually entering the desired DNS will become available.

Attachments
dns-frisbee.jpg
dns-frisbee.jpg (55.24 KiB) Viewed 2096 times
debianfan
Posts: 60
Joined: Wed Dec 01, 2021 4:44 am
Has thanked: 9 times
Been thanked: 2 times

Re: How to modify dns?

Post by debianfan »

OscarTalks wrote: Sat May 28, 2022 9:09 am

The network manager (Frisbee in this case) will normally have the facility to manage DNS and if this is set it will persist when rebooting or re-connecting. If using SNS, the manual DNS option may not be available. (Not sure if it has been added to more recent versions of SNS?)

Here is Frisbee in Slacko 7.0 (32bit)
As mentioned above, with an interface selected, untick the "Auto DHCP" box
The fields for manually entering the desired DNS will become available.

Thanks for the reply, but is there a new version of Frisbee? After my Frisbee is started, there is an icon in the taskbar, but when I click the right mouse button, it disappears. It didn't before, so it disappears and I can't configure it. Is there a new version of Frisbee that can be downloaded?

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: How to modify dns?

Post by OscarTalks »

debianfan wrote: Mon May 30, 2022 6:15 am

Is there a new version of Frisbee that can be downloaded?

Frisbee is maintained by forum member rerwin these days. If you are having issues with it, best to contact him. There is a thread with a download link, but if the Frisbee GUI is not appearing or the thing is crashing, there may be some sort of configuration problem and re-installing or upgrading the version may not cure that. Anyway, look here:-
viewtopic.php?t=445

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: How to modify dns?

Post by Phoenix »

debianfan wrote: Mon May 30, 2022 6:15 am
OscarTalks wrote: Sat May 28, 2022 9:09 am

The network manager (Frisbee in this case) will normally have the facility to manage DNS and if this is set it will persist when rebooting or re-connecting. If using SNS, the manual DNS option may not be available. (Not sure if it has been added to more recent versions of SNS?)

Here is Frisbee in Slacko 7.0 (32bit)
As mentioned above, with an interface selected, untick the "Auto DHCP" box
The fields for manually entering the desired DNS will become available.

Thanks for the reply, but is there a new version of Frisbee? After my Frisbee is started, there is an icon in the taskbar, but when I click the right mouse button, it disappears. It didn't before, so it disappears and I can't configure it. Is there a new version of Frisbee that can be downloaded?

You need to hold it you see: it might select the top first and when you let go, it quits. So hold it. (Also you can access via Network Wizard)

IRC: firepup | Time to hack Puppy!

Post Reply

Return to “Beginners Help”