Page 1 of 1

How to modify dns?

Posted: Fri May 27, 2022 7:58 am
by debianfan

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


Re: How to modify dns?

Posted: Fri May 27, 2022 8:08 am
by bigpup

What specific operating system you using?

what exactly are you wanting to do?

Read the file /etc/README.txt


Re: How to modify dns?

Posted: Fri May 27, 2022 10:01 am
by BologneChe

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


Re: How to modify dns?

Posted: Fri May 27, 2022 9:52 pm
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.


Re: How to modify dns?

Posted: Sat May 28, 2022 2:15 am
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


Re: How to modify dns?

Posted: Sat May 28, 2022 2:24 am
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


Re: How to modify dns?

Posted: Sat May 28, 2022 5:54 am
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?


Re: How to modify dns?

Posted: Sat May 28, 2022 6:18 am
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.


Re: How to modify dns?

Posted: Sat May 28, 2022 9:09 am
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.


Re: How to modify dns?

Posted: Mon May 30, 2022 6:15 am
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?


Re: How to modify dns?

Posted: Wed Jun 01, 2022 6:34 am
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


Re: How to modify dns?

Posted: Sat Jun 18, 2022 2:35 am
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)