Re: how to change default nameserver?

2023-04-12 Thread zithro
On 11 Apr 2023 22:28, gene heskett wrote: On 4/11/23 13:36, Andrew M.A. Cater wrote: There are a bunch of cups manpages: there are lots of documents online. The people recommending you avahi/bonjour/zeroconf are recommending it because it works - for them and for 99.9% of people. And its both

Re: how to change default nameserver?

2023-04-11 Thread Max Nikulin
On 12/04/2023 00:36, Andrew M.A. Cater wrote: If you're deafblind and using a Braille reader - it looks for a serial tty. That's the only way it can work. It can't ask you first necessarily. Since new class of users has been identified, namely those who have serial port adapters, but no

Re: how to change default nameserver?

2023-04-11 Thread zithro
On 11 Apr 2023 22:18, Greg Wooledge wrote: On Tue, Apr 11, 2023 at 09:56:05PM +0200, zithro wrote: Do you know when resolv.conf started appearing ? I guess after TCP/IP got invented ? The wikipedia page does not mention it. says it first appeared in

Re: how to change default nameserver?

2023-04-11 Thread gene heskett
On 4/11/23 13:39, zithro wrote: On 11 Apr 2023 19:09, gene heskett wrote: On 4/11/23 10:04, zithro wrote: On 11 Apr 2023 04:56, gene heskett wrote: On 4/10/23 16:53, zithro wrote: Why can't you follow others advice, hell, if you don't trust us, even the perfectly correct and up-to-date

Re: how to change default nameserver?

2023-04-11 Thread zithro
On 11 Apr 2023 22:18, Greg Wooledge wrote: On Tue, Apr 11, 2023 at 09:56:05PM +0200, zithro wrote: Do you know when resolv.conf started appearing ? I guess after TCP/IP got invented ? The wikipedia page does not mention it. says it first appeared in

Re: how to change default nameserver?

2023-04-11 Thread gene heskett
On 4/11/23 13:36, Andrew M.A. Cater wrote: On Tue, Apr 11, 2023 at 01:09:37PM -0400, gene heskett wrote: So ATM I have no clue what I did because I've forgotten whatever I did to make it work for bullseye, lost in the noise from doing 23 damned installs before someone suggested I unplug all

Re: how to change default nameserver?

2023-04-11 Thread Greg Wooledge
On Tue, Apr 11, 2023 at 09:56:05PM +0200, zithro wrote: > Do you know when resolv.conf started appearing ? > I guess after TCP/IP got invented ? > The wikipedia page does not mention it. says it first appeared in 4.3BSD. I can neither confirm nor deny this,

Re: how to change default nameserver?

2023-04-11 Thread zithro
On 11 Apr 2023 13:25, Greg Wooledge wrote: >> On 11 Apr 2023 08:55, Richard Hector wrote: Well, it's not in resolver(5) (which is for resolv.conf) on Red Hat 5.0.5. It wasn't in the man page from Red Hat 5.2 when I checked in 2017, either. Thanks for the history digging ! Do you know when

Re: how to change default nameserver?

2023-04-11 Thread Nicholas Geovanis
On Tue, Apr 11, 2023, 12:40 PM zithro wrote: > > There's 25 years of history to computing before Linus released his his > linux > > Computer history started WAY before that. > > > Keeping networking working on linux has been an art, not a science. > .. > Follow advices. > I guess I'm

Re: how to change default nameserver?

2023-04-11 Thread zithro
On 11 Apr 2023 19:09, gene heskett wrote: On 4/11/23 10:04, zithro wrote: On 11 Apr 2023 04:56, gene heskett wrote: On 4/10/23 16:53, zithro wrote: Why can't you follow others advice, hell, if you don't trust us, even the perfectly correct and up-to-date manpages ? After reading the posts of

Re: how to change default nameserver?

2023-04-11 Thread Greg Wooledge
On Tue, Apr 11, 2023 at 01:09:37PM -0400, gene heskett wrote: > Keeping networking working on linux has been an art, not a science. > looking at one of my buster machines. /etc/network/interfaces has this: > > # The primary network interface > allow-hotplug eno1 > iface eno1 inet static >

Re: how to change default nameserver?

2023-04-11 Thread Andrew M.A. Cater
On Tue, Apr 11, 2023 at 01:09:37PM -0400, gene heskett wrote: > So ATM I have no clue what I did because I've forgotten whatever I did to > make it work for bullseye, lost in the noise from doing 23 damned installs > before someone suggested I unplug all usb, but my key board and mouse are >

Re: how to change default nameserver?

2023-04-11 Thread gene heskett
On 4/11/23 10:04, zithro wrote: On 11 Apr 2023 04:56, gene heskett wrote: On 4/10/23 16:53, zithro wrote: Why can't you follow others advice, hell, if you don't trust us, even the perfectly correct and up-to-date manpages ? After reading the posts of others, I'm more and more thinking your

Re: how to change default nameserver?

2023-04-11 Thread zithro
On 11 Apr 2023 00:28, Andy Smith wrote: Hello, On Tue, Apr 11, 2023 at 12:04:24AM +0200, zithro wrote: So, I got curious about his claim Well you can't say you haven't been warned. This rabbit hole goes very deep and the bottom will not contain the answers you seek! Cheers, Andy Ahah, I

Re: how to change default nameserver?

2023-04-11 Thread zithro
On 11 Apr 2023 04:56, gene heskett wrote: On 4/10/23 16:53, zithro wrote: Why can't you follow others advice, hell, if you don't trust us, even the perfectly correct and up-to-date manpages ? After reading the posts of others, I'm more and more thinking your simply a troll (or a RedHat fanatic

Re: how to change default nameserver?

2023-04-11 Thread Greg Wooledge
> > > So Gene, can you tell us where you read this ? > > > > In a man page from a good 20 years ago. I still have a copy of that > > original redhat 5.0 on a shelf above me, but not a floppy drive to read > > those disks with. > > Well, it's not in resolver(5) (which is for resolv.conf) on Red

Re: how to change default nameserver?

2023-04-11 Thread Richard Hector
On 11/04/23 15:17, gene heskett wrote: On 4/10/23 18:04, zithro wrote: So, I got curious about his claim : "that change to resolv.conf adding the search line [search hosts, nameserver] has been required since red hat 5.0 in 1998". (The bracket addition is mine) I'm not using RHEl-based

Re: how to change default nameserver?

2023-04-10 Thread Richard Hector
On 11/04/23 15:17, gene heskett wrote: In a man page from a good 20 years ago. I still have a copy of that original redhat 5.0 on a shelf above me, but not a floppy drive to read those disks with. Downloading an iso ... :-) Richard

Re: how to change default nameserver?

2023-04-10 Thread gene heskett
On 4/10/23 18:04, zithro wrote: On 10 Apr 2023 22:58, Greg Wooledge wrote: On Mon, Apr 10, 2023 at 10:53:41PM +0200, zithro wrote: Why can't you follow others advice, hell, if you don't trust us, even the perfectly correct and up-to-date manpages ? After reading the posts of others, I'm more

Re: how to change default nameserver?

2023-04-10 Thread gene heskett
On 4/10/23 16:53, zithro wrote: On 4/10/23 13:30, Greg Wooledge wrote: Up to the resolv.conf, that is exactly what I do. But that change to resolv.conf adding the search line has been required since red hat 5.0 in 1998. until bullseye. Just last week I found it is not needed in an armbian

Re: how to change default nameserver?

2023-04-10 Thread Andy Smith
Hello, On Tue, Apr 11, 2023 at 12:04:24AM +0200, zithro wrote: > So, I got curious about his claim Well you can't say you haven't been warned. This rabbit hole goes very deep and the bottom will not contain the answers you seek! Cheers, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting

Re: how to change default nameserver?

2023-04-10 Thread zithro
On 10 Apr 2023 22:58, Greg Wooledge wrote: On Mon, Apr 10, 2023 at 10:53:41PM +0200, zithro wrote: Why can't you follow others advice, hell, if you don't trust us, even the perfectly correct and up-to-date manpages ? After reading the posts of others, I'm more and more thinking your simply a

Re: how to change default nameserver?

2023-04-10 Thread Greg Wooledge
On Mon, Apr 10, 2023 at 10:53:41PM +0200, zithro wrote: > Why can't you follow others advice, hell, if you don't trust us, even the > perfectly correct and up-to-date manpages ? > After reading the posts of others, I'm more and more thinking your simply a > troll (or a RedHat fanatic wasting

Re: how to change default nameserver?

2023-04-10 Thread zithro
On 4/10/23 13:30, Greg Wooledge wrote: Up to the resolv.conf, that is exactly what I do. But that change to resolv.conf adding the search line has been required since red hat 5.0 in 1998. until bullseye. Just last week I found it is not needed in an armbian bullseye install. What ?! Red Hat

Re: how to change default nameserver?

2023-04-10 Thread gene heskett
On 4/10/23 13:30, Greg Wooledge wrote: On Mon, Apr 10, 2023 at 12:05:06PM -0400, gene heskett wrote: Thanks for the vote of confidence Greg, but I'd like to point out that the help offered is only valid for systems with a working dhcpd. You tell me I'm wrong, but you don't tell how to do it

Re: how to change default nameserver?

2023-04-10 Thread Andy Smith
Hello, On Mon, Apr 10, 2023 at 12:05:06PM -0400, gene heskett wrote: > My way doesn't need that. But you've made it your lifes work to > not understand how my way Just Works. Just for the benefit of any inexperienced people who may read this in future: - As pointed out already, Gene's

Re: how to change default nameserver?

2023-04-10 Thread Greg Wooledge
On Mon, Apr 10, 2023 at 12:05:06PM -0400, gene heskett wrote: > Thanks for the vote of confidence Greg, but I'd like to point out that the > help offered is only valid for systems with a working dhcpd. > You tell me I'm wrong, but you don't tell how to do it right w/o dragging in > dhcpd. My way

Re: how to change default nameserver?

2023-04-10 Thread gene heskett
On 4/9/23 11:20, Greg Wooledge wrote: On Sun, Apr 09, 2023 at 04:53:17PM +0200, zithro wrote: Also, the line "search hosts, nameserver" is wrong. The place to put such settings is "/etc/nsswitch.conf". "search" is used to resolve hostnames to FQDN. So if you put "search example.com", and you

Re: how to change default nameserver?

2023-04-09 Thread zithro
On 09 Apr 2023 17:20, Greg Wooledge wrote: Welcome to the Gene Heskett show, starring Gene Heskett. We've told Gene that his configuration is wrong *so* many times, over *so* many years. There are very many, very long, threads dedicated to trying to help Gene get his network configuration to a

Re: how to change default nameserver?

2023-04-09 Thread gene heskett
On 4/9/23 11:04, Greg Wooledge wrote: On Sun, Apr 09, 2023 at 04:53:17PM +0200, zithro wrote: - Either you use DHCP, and the DNS will be provided by the DHCP server, so don't touch resolv.conf (the DHCP server CAN provide 127.0.0.1 as DNS server) - or you use static addressing, and you can

Re: how to change default nameserver?

2023-04-09 Thread Greg Wooledge
On Sun, Apr 09, 2023 at 04:53:17PM +0200, zithro wrote: > Also, the line "search hosts, nameserver" is wrong. The place to put such > settings is "/etc/nsswitch.conf". > "search" is used to resolve hostnames to FQDN. > So if you put "search example.com", and you try to connect to a machine with >

Re: how to change default nameserver?

2023-04-09 Thread Greg Wooledge
On Sun, Apr 09, 2023 at 04:53:17PM +0200, zithro wrote: > - Either you use DHCP, and the DNS will be provided by the DHCP server, so > don't touch resolv.conf (the DHCP server CAN provide 127.0.0.1 as DNS > server) > - or you use static addressing, and you can simply remove the dhcp-client >

Re: how to change default nameserver?

2023-04-09 Thread zithro
On 09 Apr 2023 14:14, gene heskett wrote: 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,

Re: how to change default nameserver?

2023-04-09 Thread Dan Ritter
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 Not a > lappy, but a huge tower. I think you'll be fine, Gene. -dsr-

Re: how to change default nameserver?

2023-04-09 Thread gene heskett
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

Re: how to change default nameserver?

2023-04-09 Thread gene heskett
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

Re: how to change default nameserver?

2023-04-09 Thread gene heskett
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 wrote: Am Sun, Apr 09, 2023 at 04:20:49PM +0800 schrieb cor...@free.fr:

Re: how to change default nameserver?

2023-04-09 Thread Greg Wooledge
On Sun, Apr 09, 2023 at 04:20:49PM +0800, cor...@free.fr wrote: > I know I can edit the entries in /etc/resolv.conf, but it will be > overwritten by DHCP server. https://wiki.debian.org/resolv.conf

Re: how to change default nameserver?

2023-04-09 Thread gene heskett
On 4/9/23 04:20, cor...@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

Re: how to change default nameserver?

2023-04-09 Thread Dan Ritter
Timothy M Butterworth wrote: > On Sun, Apr 9, 2023 at 6:43 AM 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

Re: how to change default nameserver?

2023-04-09 Thread Dan Ritter
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

Re: how to change default nameserver?

2023-04-09 Thread Nicolas George
> > 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

Re: how to change default nameserver?

2023-04-09 Thread Timothy M Butterworth
On Sun, Apr 9, 2023 at 6:43 AM 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

Re: how to change default nameserver?

2023-04-09 Thread Timothy Butterworth
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 wrote: Am Sun, Apr 09, 2023 at 04:20:49PM +0800 schrieb cor...@free.fr: > greetings, > > I know I can edit the entries in

Re: how to change default nameserver?

2023-04-09 Thread Christoph Brinkhaus
Am Sun, Apr 09, 2023 at 04:20:49PM +0800 schrieb cor...@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" >>

how to change default nameserver?

2023-04-09 Thread coreyh
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