Page 1 of 1
change my wifi dns to 1.1.1.1 (SOLVED)
Posted: Sun Sep 04, 2022 6:51 pm
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
Re: change my wifi dns to 1.1.1.1
Posted: Sun Sep 04, 2022 7:00 pm
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---
Re: change my wifi dns to 1.1.1.1
Posted: Sun Sep 04, 2022 8:47 pm
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/
Re: change my wifi dns to 1.1.1.1
Posted: Sun Sep 04, 2022 8:58 pm
by BologneChe
@soniabu
For additional information, you have the possibility to change the DNS in the settings of Firefox or Chromium
Re: change my wifi dns to 1.1.1.1
Posted: Mon Sep 05, 2022 2:16 am
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
Re: change my wifi dns to 1.1.1.1
Posted: Mon Sep 05, 2022 9:31 am
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