change my wifi dns to 1.1.1.1 (SOLVED)

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
User avatar
soniabu
Posts: 258
Joined: Fri Jul 24, 2020 6:14 pm
Location: Paris<-->Montreal
Has thanked: 123 times
Been thanked: 30 times

change my wifi dns to 1.1.1.1 (SOLVED)

Post by soniabu »

Hello everybody. I use Bookworm: Linux live 5.18.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux
I would like to use DNS 1.1.1.1 and I tried to modify etc/resolv.conf by entering as "nameserver 1.1.1.1"
however when I restart - after having done the save - in resolv.conf I still find nameserver 168.192 etc etc and not my nameserver 1.1.1.1.
Can anyone suggest me a solution?
thanks sonia

Last edited by soniabu on Tue Sep 06, 2022 9:45 am, edited 1 time in total.
backi
Posts: 592
Joined: Thu Jul 23, 2020 2:28 pm
Has thanked: 72 times
Been thanked: 67 times

Re: change my wifi dns to 1.1.1.1

Post by backi »

Hi @soniabu :
Maybe not the most elegant Solution .

I do it by creating the following Script and make it executable:

#!/bin/sh

echo "nameserver 1.1.1.1" > /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf

Than click on it and activate it during Session.
You can see the Result in --- etc/resolve.conf---

williwaw
Posts: 1667
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 148 times
Been thanked: 301 times

Re: change my wifi dns to 1.1.1.1

Post by williwaw »

backi wrote: Sun Sep 04, 2022 7:00 pm

Hi @soniabu :
Maybe not the most elegant Solution .

I do it by creating the following Script and make it executable:

#!/bin/sh

echo "nameserver 1.1.1.1" > /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf

Than click on it and activate it during Session.
You can see the Result in --- etc/resolve.conf---

hi backi

have you tested with something like https://dnsleaktest.com/

User avatar
BologneChe
Posts: 444
Joined: Sun Aug 23, 2020 12:29 am
Location: Stoneham, Québec
Has thanked: 267 times
Been thanked: 110 times

Re: change my wifi dns to 1.1.1.1

Post by BologneChe »

@soniabu
For additional information, you have the possibility to change the DNS in the settings of Firefox or Chromium

Born to lose; live to win

williams2
Posts: 1026
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 291 times

Re: change my wifi dns to 1.1.1.1

Post by williams2 »

The way that it should work,
if necessary, create a file named /etc/resolv.conf.head
edit /etc/resolv.conf.head and put this in the file:

Code: Select all

nameserver 1.1.1.1
nameserver 1.0.0.1

Disconnect and reconnect to your isp. Or reboot.

Your operating system may have a gui (Graphical User Interface) to set your dns server.
Editting /etc/resolv.conf.head is about as easy.

You can test your configuration by typing in a terminal something like:

Code: Select all

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

Non-authoritative answer:

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

User avatar
soniabu
Posts: 258
Joined: Fri Jul 24, 2020 6:14 pm
Location: Paris<-->Montreal
Has thanked: 123 times
Been thanked: 30 times

Re: change my wifi dns to 1.1.1.1

Post by soniabu »

thanks to all I'll see what I can combine. Then I will inform you of the result.
sonia

P.S. I found it easy to change the network setting in Fox and Crhom.
I will not forget the other elegant methods however that enrich my culture.
thx sonia

Post Reply

Return to “DebianDogs”