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


Groups > linux.debian.user > #256956

Re: how to change default nameserver?

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From gene heskett <gheskett@shentel.net>
Newsgroups linux.debian.user
Subject Re: how to change default nameserver?
Date Sun, 09 Apr 2023 14:20:01 +0200
Message-ID <GiCbv-R12-3@gated-at.bofh.it> (permalink)
References <GiyAV-OHv-5@gated-at.bofh.it>
X-Original-To debian-user@lists.debian.org
X-Mailbox-Line From debian-user-request@lists.debian.org Sun Apr 9 12:14:51 2023
Old-Return-Path <gheskett@shentel.net>
X-Amavis-Spam-Status No, score=-7.6 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, WEIRD_PORT=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -3.5
Auth-Sender gheskett@shentel.net
MIME-Version 1.0
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0
Content-Language en-US
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Ctch-Spam Unknown
X-Ctch-Refid str=0001.0A782F1E.6432AC20.0019,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0
X-Originalarrivaltime 09 Apr 2023 12:13:38.0233 (UTC) FILETIME=[B727D290:01D96ADC]
X-Mailing-List <debian-user@lists.debian.org> archive/latest/798259
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/95876fab-6639-ab85-9353-82bd780c83c3@shentel.net
Approved robomod@news.nic.it
Lines 65
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 9 Apr 2023 08:14:23 -0400
X-Original-Message-ID <95876fab-6639-ab85-9353-82bd780c83c3@shentel.net>
X-Original-References <68245a4c3abcbec8db4128bbdb75e0c5@free.fr>
Xref csiph.com linux.debian.user:256956

Show key headers only | View raw


On 4/9/23 04:20, coreyh@free.fr wrote:
> 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?

I'm not sure, and my methods have been heavily denegrated by the dhcp 
fans, but in my case with a many machine local net, and no dhcpd running 
on the system, and the changes with each new release, I find the one 
repeatable method to solve dns problem, is to compose an 
/etc/resolv.conf with 2 lines:

mameserver ipv4 address of router
search hosts, nameserver

And sudo chattr +i /etc/resolv.conf

quickly so NM can't change it. It will remove the search line, killing 
your local network, in which case you can ping yahoo.com, but not 
another machine on your local net. Your ISP's dns has no knowledge of 
your local net which is as it should be.

My router runs something like dnsmasq as its running dd-wrt, and 
theoretically a dns request then searchs the host file for a matching 
name, failing that my whole local system then query's the router, which 
if not cached by dnsmasq, sends the query on to my ISP's dns server, and 
I get answers in around 30 milliseconds. And it all just works. With the 
router NAT-ing, all machines here can browse the whole planet, as 
transparently as border facilities allow.

My main problem with each new release is the ever changing methods of 
establishing each machines repeatable, permanent, name and local address 
on a completely static system described in the /etc/hosts file. Reliably 
setting a domainname used to be once and done, but since bullseye its 
only for this reboot, but I've not found a place to make it permanent 
across reboots, yet...

If anyone knows how to do that on bullseye, I'm all ears. Hopefully it 
will continue to work with bookworm but I'm not a betting man. I'm still 
looking for a way to re-establish cups printer sharing, which Just 
Worked with buster, but is now blocked on bullseye from other bullseye 
machines, but still works with buster machines to this bullseye machine. 
WTH???

Thanks for reading, take care and stay well, all.
> 
> Thanks & Happy weekend.
> corey hickman
> 
> .

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/>

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to change default nameserver? coreyh@free.fr - 2023-04-09 10:30 +0200
  Re: how to change default nameserver? Christoph Brinkhaus <c.brinkhaus@t-online.de> - 2023-04-09 11:00 +0200
  Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-09 14:20 +0200
    Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-09 17:00 +0200
      Re: how to change default nameserver? Greg Wooledge <greg@wooledge.org> - 2023-04-09 17:10 +0200
        Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-09 21:50 +0200
      Re: how to change default nameserver? Greg Wooledge <greg@wooledge.org> - 2023-04-09 17:30 +0200
        Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-09 22:30 +0200
        Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-10 18:10 +0200
          Re: how to change default nameserver? Greg Wooledge <greg@wooledge.org> - 2023-04-10 19:40 +0200
            Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-10 21:50 +0200
              Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-10 23:00 +0200
                Re: how to change default nameserver? Greg Wooledge <greg@wooledge.org> - 2023-04-10 23:00 +0200
                Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-11 00:10 +0200
                Re: how to change default nameserver? Andy Smith <andy@strugglers.net> - 2023-04-11 00:30 +0200
                Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-11 18:40 +0200
                Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-11 05:20 +0200
                Re: how to change default nameserver? Richard Hector <richard@walnut.gen.nz> - 2023-04-11 05:50 +0200
                Re: how to change default nameserver? Richard Hector <richard@walnut.gen.nz> - 2023-04-11 09:00 +0200
                Re: how to change default nameserver? Greg Wooledge <greg@wooledge.org> - 2023-04-11 13:30 +0200
                Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-11 22:00 +0200
                Re: how to change default nameserver? Greg Wooledge <greg@wooledge.org> - 2023-04-11 22:20 +0200
                Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-11 22:50 +0200
                Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-12 01:30 +0200
                Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-11 05:00 +0200
                Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-11 16:10 +0200
                Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-11 19:20 +0200
                Re: how to change default nameserver? Greg Wooledge <greg@wooledge.org> - 2023-04-11 19:40 +0200
                Re: how to change default nameserver? "Andrew M.A. Cater" <amacater@einval.com> - 2023-04-11 19:40 +0200
                Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-11 22:30 +0200
                Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-12 16:30 +0200
                Re: how to change default nameserver? Max Nikulin <manikulin@gmail.com> - 2023-04-12 05:30 +0200
                Re: how to change default nameserver? zithro <slack@rabbit.lu> - 2023-04-11 19:50 +0200
                Re: how to change default nameserver? Nicholas Geovanis <nickgeovanis@gmail.com> - 2023-04-11 21:20 +0200
                Re: how to change default nameserver? gene heskett <gheskett@shentel.net> - 2023-04-12 01:20 +0200
          Re: how to change default nameserver? Andy Smith <andy@strugglers.net> - 2023-04-10 21:20 +0200
  Re: how to change default nameserver? Greg Wooledge <greg@wooledge.org> - 2023-04-09 14:50 +0200

csiph-web