/etc/resolv.conf
After the modification, the next time you reconnect to the Internet, it will change.
How to modify dns?
Moderator: Forum moderators
- 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?
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
- 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?
Hi!
Depending on your browser, you can change it in its settings (DNS via HTTPS).
Born to lose; live to win
Re: How to modify dns?
/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?
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?
/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?
- 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?
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
- 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?
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 (55.24 KiB) Viewed 2097 times
Re: How to modify dns?
OscarTalks wrote: ↑Sat May 28, 2022 9:09 amThe 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?
- 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?
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
- 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?
debianfan wrote: ↑Mon May 30, 2022 6:15 amOscarTalks wrote: ↑Sat May 28, 2022 9:09 amThe 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!