Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256942 > unrolled thread

Re: how to change default nameserver?

Started byTimothy Butterworth <timothy.m.butterworth@gmail.com>
First post2023-04-09 11:10 +0200
Last post2023-04-09 14:50 +0200
Articles 10 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  Re: how to change default nameserver? Timothy Butterworth <timothy.m.butterworth@gmail.com> - 2023-04-09 11:10 +0200
    Re: how to change default nameserver? Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2023-04-09 12:50 +0200
      Re: how to change default nameserver? Nicolas George <george@nsup.org> - 2023-04-09 13:00 +0200
        Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-09 15:10 +0200
        Re: how to change default nameserver? Brian <ad44@cityscape.co.uk> - 2023-04-09 15:20 +0200
      Re: how to change default nameserver? Dan Ritter <dsr@randomstring.org> - 2023-04-09 14:10 +0200
    Re: how to change default nameserver? Dan Ritter <dsr@randomstring.org> - 2023-04-09 13:10 +0200
      Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-09 15:10 +0200
        Re: how to change default nameserver? Dan Ritter <dsr@randomstring.org> - 2023-04-09 16:00 +0200
    Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-09 14:50 +0200

#256942 — Re: how to change default nameserver?

FromTimothy Butterworth <timothy.m.butterworth@gmail.com>
Date2023-04-09 11:10 +0200
SubjectRe: how to change default nameserver?
Message-ID<GizdD-Pbo-1@gated-at.bofh.it>
After you edit resolv.conf make the file immutable with chattr. Chattr +i makes immutable chattr -i removes immmutable.

On April 9, 2023, at 4:51 AM, Christoph Brinkhaus <c.brinkhaus@t-online.de> wrote:

Am Sun, Apr 09, 2023 at 04:20:49PM +0800 schrieb coreyh@free.fr:
> greetings,
> 
> I know I can edit the entries in /etc/resolv.conf, but it will be
> overwritten by DHCP server.
> I searched the internet and got one of the answers:
> 
> apt install resolvconf
> echo "nameserver 127.0.0.1" >> /etc/resolvconf/resolv.conf.d/head
> 
> what's the difference for /etc/resolv.conf and the method above?
 
There is a thrid method I use. I have add the following lines to
/etc/dhcp/dhclient.conf:

interface "bond0" {
supersede domain-name-servers 127.0.0.1;
}

My interface is bond0. Yours might be different.

Kind regards,
Christoph
-- 
Ist die Katze gesund
schmeckt sie dem Hund.

[toc] | [next] | [standalone]


#256949

FromTimothy M Butterworth <timothy.m.butterworth@gmail.com>
Date2023-04-09 12:50 +0200
Message-ID<GiAMp-Q0S-9@gated-at.bofh.it>
In reply to#256942

[Multipart message — attachments visible in raw view] — view raw

On Sun, Apr 9, 2023 at 6:43 AM Dan Ritter <dsr@randomstring.org> wrote:

> Timothy Butterworth wrote:
> > After you edit resolv.conf make the file immutable with chattr. Chattr
> +i makes immutable chattr -i removes immmutable.
>
>
> This works, but you should also leave yourself a comment in the
> file to prevent later confusion.
>
> It's also unsuitable for most laptops, or other situations where you
> ever want an automatic process to change the resolv.conf file
>
> -dsr-
>

I have Google DNS hardcoded on my laptop. Few networks block outbound DNS
traffic. I have never had any issues with it.

Tim
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

[toc] | [prev] | [next] | [standalone]


#256950

FromNicolas George <george@nsup.org>
Date2023-04-09 13:00 +0200
Message-ID<GiAW6-Q4w-11@gated-at.bofh.it>
In reply to#256949

[Multipart message — attachments visible in raw view] — view raw

> > Timothy Butterworth wrote:
> > > After you edit resolv.conf make the file immutable with chattr. Chattr
> > +i makes immutable chattr -i removes immmutable.

This should be an immediate ban!

Timothy M Butterworth (12023-04-09):
> I have Google DNS hardcoded on my laptop. Few networks block outbound DNS
> traffic. I have never had any issues with it.

I understand why Windows and Mac users would sell their privacy to
Google to avoid the bugs on their systems.

But Debian user just have to apt-get install unbound to have the best of
it.

Regards,

-- 
  Nicolas George

[toc] | [prev] | [next] | [standalone]


#256964

Fromgene heskett <gheskett@shentel.net>
Date2023-04-09 15:10 +0200
Message-ID<GiCXT-RxQ-3@gated-at.bofh.it>
In reply to#256950
On 4/9/23 06:51, Nicolas George wrote:
>>> Timothy Butterworth wrote:
>>>> After you edit resolv.conf make the file immutable with chattr. Chattr
>>> +i makes immutable chattr -i removes immmutable.
> 
> This should be an immediate ban!
> 
> Timothy M Butterworth (12023-04-09):
>> I have Google DNS hardcoded on my laptop. Few networks block outbound DNS
>> traffic. I have never had any issues with it.
> 
> I understand why Windows and Mac users would sell their privacy to
> Google to avoid the bugs on their systems.
> 
> But Debian user just have to apt-get install unbound to have the best of
> it.
> 
> Regards,
> 
Please tell us more, Nicolas.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

[toc] | [prev] | [next] | [standalone]


#256965

FromBrian <ad44@cityscape.co.uk>
Date2023-04-09 15:20 +0200
Message-ID<GiD7z-RBg-7@gated-at.bofh.it>
In reply to#256950
On Sun 09 Apr 2023 at 12:52:05 +0200, Nicolas George wrote:

> > > Timothy Butterworth wrote:
> > > > After you edit resolv.conf make the file immutable with chattr. Chattr
> > > +i makes immutable chattr -i removes immmutable.
> 
> This should be an immediate ban!
> 
> Timothy M Butterworth (12023-04-09):
> > I have Google DNS hardcoded on my laptop. Few networks block outbound DNS
> > traffic. I have never had any issues with it.
> 
> I understand why Windows and Mac users would sell their privacy to
> Google to avoid the bugs on their systems.
> 
> But Debian user just have to apt-get install unbound to have the best of
> it.

Anything to militate against 1.1.1.1?

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#256955

FromDan Ritter <dsr@randomstring.org>
Date2023-04-09 14:10 +0200
Message-ID<GiC1P-QXx-5@gated-at.bofh.it>
In reply to#256949
Timothy M Butterworth wrote: 
> On Sun, Apr 9, 2023 at 6:43 AM Dan Ritter <dsr@randomstring.org> wrote:
> 
> > Timothy Butterworth wrote:
> > > After you edit resolv.conf make the file immutable with chattr. Chattr
> > +i makes immutable chattr -i removes immmutable.
> >
> >
> > This works, but you should also leave yourself a comment in the
> > file to prevent later confusion.
> >
> > It's also unsuitable for most laptops, or other situations where you
> > ever want an automatic process to change the resolv.conf file
> >
> > -dsr-
> >
> 
> I have Google DNS hardcoded on my laptop. Few networks block outbound DNS
> traffic. I have never had any issues with it.


Mine do. Only the DNS servers are allowed to ask the rest of the
world for DNS.

If you have "smart" devices in your network, it's a good thing
to do. If nothing else, you can block most ads.

-dsr-

[toc] | [prev] | [next] | [standalone]


#256952

FromDan Ritter <dsr@randomstring.org>
Date2023-04-09 13:10 +0200
Message-ID<GiAMp-Q0S-11@gated-at.bofh.it>
In reply to#256942
Timothy Butterworth wrote: 
> After you edit resolv.conf make the file immutable with chattr. Chattr +i makes immutable chattr -i removes immmutable.


This works, but you should also leave yourself a comment in the
file to prevent later confusion.

It's also unsuitable for most laptops, or other situations where you
ever want an automatic process to change the resolv.conf file

-dsr-

[toc] | [prev] | [next] | [standalone]


#256963

Fromgene heskett <gheskett@shentel.net>
Date2023-04-09 15:10 +0200
Message-ID<GiCXT-RxQ-1@gated-at.bofh.it>
In reply to#256952
On 4/9/23 06:59, Dan Ritter wrote:
> Timothy Butterworth wrote:
>> After you edit resolv.conf make the file immutable with chattr. Chattr +i makes immutable chattr -i removes immmutable.
> 
> 
> This works, but you should also leave yourself a comment in the
> file to prevent later confusion.
> 
> It's also unsuitable for most laptops, or other situations where you
> ever want an automatic process to change the resolv.conf file
> 
> -dsr-
> 
> .
I should have qualified that advice as this machine will never be moved 
beyond its quasi annual trip to the back porch for an air hose D&C. Not 
a lappy, but a huge tower.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

[toc] | [prev] | [next] | [standalone]


#256966

FromDan Ritter <dsr@randomstring.org>
Date2023-04-09 16:00 +0200
Message-ID<GiDKh-ROH-7@gated-at.bofh.it>
In reply to#256963
gene heskett wrote: 
> I should have qualified that advice as this machine will never be moved
> beyond its quasi annual trip to the back porch for an air hose D&C. Not a
> lappy, but a huge tower.


I think you'll be fine, Gene.

-dsr-

[toc] | [prev] | [next] | [standalone]


#256962

Fromgene heskett <gheskett@shentel.net>
Date2023-04-09 14:50 +0200
Message-ID<GiCEx-Rbu-3@gated-at.bofh.it>
In reply to#256942
On 4/9/23 05:05, Timothy Butterworth wrote:
> After you edit resolv.conf make the file immutable with chattr. Chattr +i makes immutable chattr -i removes immmutable.
> 
> On April 9, 2023, at 4:51 AM, Christoph Brinkhaus <c.brinkhaus@t-online.de> wrote:
> 
> Am Sun, Apr 09, 2023 at 04:20:49PM +0800 schrieb coreyh@free.fr:
>> greetings,
>>
>> I know I can edit the entries in /etc/resolv.conf, but it will be
>> overwritten by DHCP server.
>> I searched the internet and got one of the answers:
>>
>> apt install resolvconf
>> echo "nameserver 127.0.0.1" >> /etc/resolvconf/resolv.conf.d/head
>>
>> what's the difference for /etc/resolv.conf and the method above?
>   
> There is a thrid method I use. I have add the following lines to
> /etc/dhcp/dhclient.conf:
> 
> interface "bond0" {
> supersede domain-name-servers 127.0.0.1;
> }
> 
> My interface is bond0. Yours might be different.
> 

That got changed in my install of bullseye. It might work to add that as 
a final stanza by copy/pasting the buster version, but its not been 
tried with bullseye, by me.

> Kind regards,
> Christoph

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
  - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web