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 a lockin for apple, and denies the feature the printer 
maker puts into his product.  And I'm purist enough to object the both.


For future readers : this is plain wrong.
This is a perfect example of "assuming without knowing".
It's a bit like saying "TCP/IP was invented for the DARPA, and I'm a 
pacifist, so screw it" (note it's only a metaphor).


A simple web search is enough to understand what a *protocol* is, and
what those particular protocols/software suites are, and are for.
Approximation : it's like an automatic enhanced DHCP protocol.

As Andrew says, it works for 99.9% of the users, and is recommended to
people who :
- don't know how to configure things, or
- don't want to configure manually, or
- don't care how things work

But of course, and contrary to my metaphor about TCP/IP, 
avahi/bonjour/zeroconf is NOT required when you know what you are doing 
and/or you

follow usual best practices.
It's an helper protocol, not a required one.
And as every protocol, you are tied to how the vendors implement them.



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 brltty, perhaps, a new screen should be 
added to the installer:


Assistive technologies have been enabled because serial port adapter has 
been detected, so Braille terminal may be connected.


(*) Continue assuming presence of brltty.
( ) Disable assistive technologies and proceed as regular installation.




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 4.3BSD.
I can neither confirm nor deny this, but it does match my *belief* that
BSD did it first, and then System V copied it.  It's a bit before my time,
though.



THIS was a fun rabbit hole to enter ^^

From "https://en.wikipedia.org/wiki/History_of_Unix;

Perhaps the most important aspect of the BSD development effort was the 
addition of TCP/IP network code to the mainstream Unix kernel.
[...] The network code found in these releases is the ancestor of much 
TCP/IP network code in use today, including code that was *later* 
released in AT System V UNIX.


So your belief was right. BSD before SysV !

"http://gunkies.org/wiki/4BSD;
4 BSD does *NOT* include any TCP/IP networking

"http://gunkies.org/wiki/4.2_BSD;
4.2 BSD follows the betas of 4.1a & 4.1b. 4.2 BSD Is special 
because it incorporates the first versions of BSD TCP/IP


Let's see. I downloaded the source code of 4.2 and 4.3BSD from The Unix 
Heritage Society (https://www.tuhs.org/Archive/Distributions/UCB/)


--
$ grep -R "resolv.conf"

4.3BSD/lib/libc/net/res_init.c:char*conffile = "/etc/resolv.conf";
4.3BSD/lib/libc/net/res_init.c:printf("MAXNS 
reached, reading resolv.conf\n");
4.3BSD/etc/named/tools/ns.lookup/man/nslookup.l:(Default = value in 
/etc/resolv.conf, abbreviation = do)
4.3BSD/etc/named/tools/ns.lookup/man/nslookup.l:/etc/resolv.conf	initial 
domain name and name server addresses.

--

So it's not in 4.2, and appeared in 4.3.

Fun one "https://github.com/dank101/4.2BSD/blob/master/include/netdb.h; :

/*
 * Assumption here is that a network number
 * fits in 32 bits -- probably a poor one.
 */

Ok, out of the hole now ^^



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 manpages ?
After reading the posts of others, I'm more and more thinking your 
simply a troll (or a RedHat fanatic wasting Debian helpers time for 
no reason) ...


That is an insult. I bailed out of fedora 15 years ago, tired to 
being an always sick lab rat for redhat. [...]


Because you answer what you want, I'll re-ask :
"Why can't you follow others advice, hell, if you don't trust us, even
the perfectly correct and up-to-date manpages ?"


Because you answer what you want, I'll re-ask :
"Why can't you follow others advice, hell, if you don't trust us, even
the perfectly correct and up-to-date manpages ?"


If you don't know who Mike Sweet is, why are you hassling me?


I don't need to know who he is. Now I know, thanks, but it changes nothing.
And if Sweet is REALLY your friend, why not asking him ?

  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.


Debatable. The Debian way is one of the easiest.
But funny, only happens to you, among the zillions Debian-based installs.
Still can't see the problem ?


looking at one of my buster machines. /etc/network/interfaces has this:


What about your resolv.conf ?


Evidence on that bo that something has been there, and put a # in front 
of the search line. IDK when.



So ATM I have no clue what I did because I've forgotten whatever I did


One of the best advice I've learnt from experienced sysadmins is :
"always take notes of what you're doing".
The other one being "RTFM".

[...] I can't ask cups, my posts to the cups list are apparently 
routed to /dev/null [...]


If you react like here, maybe you've been banned from there ?
Again, contact the list owners, don't ASSUME stuff.




[...] so I come here for help and all this dirty laundry gets drug out 
again. And again. And again. While the question I asked is very 
carefully ignored. Unreal.


Really ?! Who exactly is ignoring what ?!


My question about cups.



Again, FOR THE FOURTH TIME :
"Why can't you follow others advice, hell, if you don't trust us, even
the perfectly correct and up-to-date manpages ?"

Others have warned me. I tried despite their warnings ...
I get to the same point as them : it's pointless to try to help
someone who does NOT follow advices.
I guess I'm done here.


Your choice.

Take care & stay well.

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 



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 4.3BSD.
I can neither confirm nor deny this, but it does match my *belief* that
BSD did it first, and then System V copied it.  It's a bit before my time,
though.



Thanks for the hints !
I then dug a bit more, found a github which has the sources for very old 
BSDs !

https://github.com/dank101?tab=repositories

The README suggests (IMHO) that previous versions already had TCP/IP 
working.
In the 4.3BSD-Reno, there is no resolv.conf by default in /etc (but a 
namedb).
But I found a man page 
(https://github.com/dank101/4.3BSD-Reno/blob/master/share/doc/smm/11.named/resolv.conf).

Inside, there's a comment :

@(#)resolv.conf 6.2 (Berkeley) 2/29/88

Funny, it's already the true and loved syntax we use today !
domain Berkeley\fB.\fPEdu
nameserver 128\fB.\fP32\fB.\fP0\fB.\fP4
nameserver 128\fB.\fP32\fB.\fP0\fB.\fP10

(I just don't know what the gibberish chars mean, I guess it's some 
TeX/groff syntax ?)


I'll dig more into the repositories and let you know ; )
(2BSD had none, but it only has source code, more later)



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 usb, but my key board and mouse are
wireless, so I left those buttons plugged it and did yet another install and
this one worked. I've since rebuilt my usb tree as it reaches like a weeping
willow to nearly every inch of the real estate here.  All that re-install BS
caused by the installer silently finding a couple usb-serial adaptors and
ASSUMING I was blind and using brltty and orca. Has any of you ever tried to
use a computer whose keyboard response was delayed by nearly 2 seconds per
keystroke because its looking for a 1200 baud tty that isn't there, and then
yells the keystroke at you in some idea of a computer voice.  Spend 2 weeks
trying to use a computer like that, and you'll have a new appreciation for
my level of frustration.



Your experience led me to fixing someone else's problem on IRC.
They were trying to install Debian for linuxcnc (but on an amd64 machine)
and had the same problem because they'd left a serial lead plugged in so
got brltty and orca.

I advised them to reinstall to fix things but this time to undo the serial
lead until the install was over. That worked fine for them and they were
very happy. (It's the simple fix that I think I suggested that to you three
times in the course and was ignored.)



Possibly you did, but I didn't glom the usb connection because it came 
with no reason until the last time.



It should have asked me if I wanted that crap but did not.



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.


That is a huge if. Probably less than 1% of the folks who only fit in 
one box or the other. It could have loaded orca and spoke to me, but 
didn't, it could have asked me on screen and didn't.  What it did was 
make an ass out me in everyone elses mind. Yeah, these days I'm an old 
fart with the poor short term memory that goes with 88 years on the wet 
ram. But I was carving code for an rca 1802 chip before most of the 
readers here were born, doing it by looking up the memonic, and entering 
the corresponding hex code in a quest super elf's hex monitor, code so 
useful in 1979 that it was still in daily use at KRCR-tv when the 
station burnt to the ground in the later 90's, well after Mt St Helens 
blew its top. As a retired television Chief (& usually only, I'm a CET 
too) Engineer, that 16 or so years might as well be a couple of eons, 
the tech, even in never twice same color days, the tech moved a heck of 
a lot faster than that.


My wife of 31 years passed a couple years back and I should throw my 
poles in the boat and go fishing. But I've been diabetic for nearly 40 
years & the water is too cold for my feet, so for S's I'm building a 
3d printer farm instead.



You have all claimed I missed it or told it to install that, but 23 damned
times? I'm sure its here someplace because all 24 times I filled in the
network details manually and was equally amazed when I still had a network
on the after install reboot. That FWIW, was a first.

Everything works except printer sharing and I can't ask cups, my posts to
the cups list are apparently routed to /dev/null, so I come here for help
and all this dirty laundry gets drug out again. And again. And again. While
the question I asked is very carefully ignored. Unreal.



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 a lockin for apple, and denies the feature the printer 
maker puts into his product.  And I'm purist enough to object the both.



Your system: your
rules - but it doesn't always help us help you to solve the problems.


You betcha. Which gets my posts the TL;DR treatment just because I do
try to describe things adequately. I can't win for losing.


There are reasons why we ask folk - in general on this list and in the FAQ
- to provide information, to copy/paste log entries or what they're seeing
on screen. We can't sit on your shoulder and watch what you've typed: we're
all relying on guesswork much of the time.


Cheers, Gene Heskett.


All the very best, as ever,

Andy Cater


Back at you Andy, take care & stay well.

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 



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, but it does match my *belief* that
BSD did it first, and then System V copied it.  It's a bit before my time,
though.



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 resolv.conf started appearing ?
I guess after TCP/IP got invented ?
The wikipedia page does not mention it.



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 done here.
>

I guess it's overdue to point out again what should be obvious: You don't
have to run NetworkManager to make use of DHCP or anything else. So you
don't need to have your name resolution config overwritten. And you can
remain under the Debian umbrella.

I will go even further: NetworkManager is for laptops, not home setups. We
don't use it on servers in a data center, period end. It has no use-case in
that environment.


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 others, I'm more and more thinking your 
simply a troll (or a RedHat fanatic wasting Debian helpers time for 
no reason) ...


That is an insult. I bailed out of fedora 15 years ago, tired to 
being an always sick lab rat for redhat. [...]


Because you answer what you want, I'll re-ask :
"Why can't you follow others advice, hell, if you don't trust us, even
the perfectly correct and up-to-date manpages ?"


Because you answer what you want, I'll re-ask :
"Why can't you follow others advice, hell, if you don't trust us, even
the perfectly correct and up-to-date manpages ?"


If you don't know who Mike Sweet is, why are you hassling me?


I don't need to know who he is. Now I know, thanks, but it changes nothing.
And if Sweet is REALLY your friend, why not asking him ?


  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.


Debatable. The Debian way is one of the easiest.
But funny, only happens to you, among the zillions Debian-based installs.
Still can't see the problem ?


looking at one of my buster machines. /etc/network/interfaces has this:


What about your resolv.conf ?


So ATM I have no clue what I did because I've forgotten whatever I did


One of the best advice I've learnt from experienced sysadmins is :
"always take notes of what you're doing".
The other one being "RTFM".

[...] I can't ask cups, my posts 
to the cups list are apparently routed to /dev/null [...]


If you react like here, maybe you've been banned from there ?
Again, contact the list owners, don't ASSUME stuff.

[...] so I come here for 
help and all this dirty laundry gets drug out again. And again. And 
again. While the question I asked is very carefully ignored. Unreal.


Really ?! Who exactly is ignoring what ?!

Again, FOR THE FOURTH TIME :
"Why can't you follow others advice, hell, if you don't trust us, even
the perfectly correct and up-to-date manpages ?"

Others have warned me. I tried despite their warnings ...
I get to the same point as them : it's pointless to try to help
someone who does NOT follow advices.
I guess I'm done here.



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
>   address 192.168.71.10/24
>   gateway 192.168.71.1
>   # dns-* options are implemented by the resolvconf package, if installed
>   dns-nameservers 192.168.71.1
>   dns-search coyote.den
> 
> And it Just Works.

The last two lines of that file are configuration elements for the
resolvconf package.  They only take effect if resolvconf is installed.

> But that was way the hell and gone too easy, so it just
> had to be changed, so that stuff no longer works for bullseye.

Most likely, your bullseye system simply doesn't have resolvconf.

This is discussed at
.

The comment right before them also tells you which package you need for
those lines to work.



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
> wireless, so I left those buttons plugged it and did yet another install and
> this one worked. I've since rebuilt my usb tree as it reaches like a weeping
> willow to nearly every inch of the real estate here.  All that re-install BS
> caused by the installer silently finding a couple usb-serial adaptors and
> ASSUMING I was blind and using brltty and orca. Has any of you ever tried to
> use a computer whose keyboard response was delayed by nearly 2 seconds per
> keystroke because its looking for a 1200 baud tty that isn't there, and then
> yells the keystroke at you in some idea of a computer voice.  Spend 2 weeks
> trying to use a computer like that, and you'll have a new appreciation for
> my level of frustration.
> 

Your experience led me to fixing someone else's problem on IRC.
They were trying to install Debian for linuxcnc (but on an amd64 machine)
and had the same problem because they'd left a serial lead plugged in so
got brltty and orca.

I advised them to reinstall to fix things but this time to undo the serial
lead until the install was over. That worked fine for them and they were
very happy. (It's the simple fix that I think I suggested that to you three
times in the course and was ignored.)

> It should have asked me if I wanted that crap but did not.
> 

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.

> You have all claimed I missed it or told it to install that, but 23 damned
> times? I'm sure its here someplace because all 24 times I filled in the
> network details manually and was equally amazed when I still had a network
> on the after install reboot. That FWIW, was a first.
> 
> Everything works except printer sharing and I can't ask cups, my posts to
> the cups list are apparently routed to /dev/null, so I come here for help
> and all this dirty laundry gets drug out again. And again. And again. While
> the question I asked is very carefully ignored. Unreal.
> 

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. Your system: your
rules - but it doesn't always help us help you to solve the problems.

There are reasons why we ask folk - in general on this list and in the FAQ
- to provide information, to copy/paste log entries or what they're seeing
on screen. We can't sit on your shoulder and watch what you've typed: we're
all relying on guesswork much of the time.

> Cheers, Gene Heskett.

All the very best, as ever,

Andy Cater









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 
simply a troll (or a RedHat fanatic wasting Debian helpers time for 
no reason) ...


That is an insult. I bailed out of fedora 15 years ago, tired to being 
an always sick lab rat for redhat. [...]


Because you answer what you want, I'll re-ask :
"Why can't you follow others advice, hell, if you don't trust us, even
the perfectly correct and up-to-date manpages ?"

Maybe it's a bug in CUPS or w/e soft you're using. Try to find other 
people having this, or report it as a bug.


Not possible. Michael and I have known each other since the '80's when 
he was a starving college student. I'll just let it go at that.


?! First, who's Michael, second, even if it's your friend, you won't
fill a bug because of that ?
What if it's really a bug, and other people have the same one ?

.


If you don't know who Mike Sweet is, why are you hassling me?  There's 
25 years of history to computing before Linus released his his linux, 
Michael and I were both there in the trs-80 color computer days and 
while Mike was take college classes and releasing code for the color 
computers in the mid 80's, it was sort of a contest among the coco users 
running os-9 on our coco's, to see who who find and fix the bugs in code 
he released. os-9 was unix that ran on a 8 bit machine with a 65k max 
memory.


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
address 192.168.71.10/24
gateway 192.168.71.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.71.1
dns-search coyote.den

And it Just Works. But that was way the hell and gone too easy, so it 
just had to be changed, so that stuff no longer works for bullseye. 
There is nothing in /etc/network/interfaces.d
So let me snoop, here cuz that entry does not exist on this bullseye 
machine. Looking to see what did make it work, brb.
I can't recall which debian, but at one time I had to put it in the last 
stanza of /etc/dhcp/dhclient.conf but I see that's not been touched, 
here or on a buster machine..

/etc/nsswitch.conf looks default.

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 wireless, so I left those buttons plugged it and did yet 
another install and this one worked. I've since rebuilt my usb tree as 
it reaches like a weeping willow to nearly every inch of the real estate 
here.  All that re-install BS caused by the installer silently finding a 
couple usb-serial adaptors and ASSUMING I was blind and using brltty and 
orca. Has any of you ever tried to use a computer whose keyboard 
response was delayed by nearly 2 seconds per keystroke because its 
looking for a 1200 baud tty that isn't there, and then yells the 
keystroke at you in some idea of a computer voice.  Spend 2 weeks trying 
to use a computer like that, and you'll have a new appreciation for my 
level of frustration.


It should have asked me if I wanted that crap but did not.

You have all claimed I missed it or told it to install that, but 23 
damned times? I'm sure its here someplace because all 24 times I filled 
in the network details manually and was equally amazed when I still had 
a network on the after install reboot. That FWIW, was a first.


Everything works except printer sharing and I can't ask cups, my posts 
to the cups list are apparently routed to /dev/null, so I come here for 
help and all this dirty laundry gets drug out again. And again. And 
again. While the question I asked is very carefully ignored. Unreal.


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 



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 dunno if in this case I'd like to eat the red pill ^^



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 wasting Debian helpers time for no 
reason) ...


That is an insult. I bailed out of fedora 15 years ago, tired to being 
an always sick lab rat for redhat. [...]


Because you answer what you want, I'll re-ask :
"Why can't you follow others advice, hell, if you don't trust us, even
the perfectly correct and up-to-date manpages ?"

Maybe it's a bug in CUPS or w/e soft you're using. Try to find other 
people having this, or report it as a bug.


Not possible. Michael and I have known each other since the '80's when 
he was a starving college student. I'll just let it go at that.


?! First, who's Michael, second, even if it's your friend, you won't
fill a bug because of that ?
What if it's really a bug, and other people have the same one ?



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 Hat 5.0.5.

It wasn't in the man page from Red Hat 5.2 when I checked in 2017, either.

https://lists.debian.org/debian-user/2017/09/msg01038.html

Here's another thread from 2018:

https://lists.debian.org/debian-user/2018/08/msg01433.html

Note that this time, Gene omitted the comma, and said that the
resolv.conf file "looks something like this"; IOW he's going from
memory rather than just catting the file.

And a thread from 2019:

https://lists.debian.org/debian-arm/2019/06/msg00046.html

This time the comma is gone, and Gene may or may not have actually
catted the file -- we can't be sure, because he does not paste the actual
terminal session including the shell prompt and the command issued.

As I've said, we've been through this for literally YEARS.



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 systems a lot so I may be wrong, and there's 
not a lot of material left from the 1998 web, but the resolv.conf file 
*looks* identical in RHEL-based systems, at least nowadays.
I quickly browsed a few RH help pages about resolv.conf, but couldn't 
find his claim.


I then searched for "search hosts, nameserver" on search engines 
(-with- the quotes, to only get full-match results).
Either I get no results or ... wait for it ... it *ONLY* gives me 
results where Gene posted !


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 Hat 5.0.5.

Richard



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 and more thinking your 
simply a
troll (or a RedHat fanatic wasting Debian helpers time for no reason) 
...


My take is that he's confused, not trolling.  I've never seen any 
evidence
that he's intentionally making false statements.  He seems to believe 
what

he's saying.


Well, I don't know what's the worst ...
And honestly, when you're genuinely confused, you believe and follow the 
advice of the ones who know ...



The weird and frustrating part is that nothing we do or offer seems to
break through the confusion.



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 systems a lot so I may be wrong, and there's 
not a lot of material left from the 1998 web, but the resolv.conf file 
*looks* identical in RHEL-based systems, at least nowadays.
I quickly browsed a few RH help pages about resolv.conf, but couldn't 
find his claim.


I then searched for "search hosts, nameserver" on search engines (-with- 
the quotes, to only get full-match results).
Either I get no results or ... wait for it ... it *ONLY* gives me 
results where Gene posted !


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.


If you didn't read it somewhere, are you using it because :
- it always has been in your config files, which you created at a time 
you didn't really know what you were doing,

- or you followed advice from someone who claimed he knew,
- or it was in a wrongly pre-configured system and you blindly copied 
the stanza ?


That I can't recall for sure, my wet ram is 88 years old, but I had to 
use it yet for a quint of buster installs when updating my machines to 
buster a month or so after it was released. 4 of them are still in daily 
use here. And I just discovered after this round re-started, that its no 
longer required for armbian's bullseye. So as an experiment, I 
re-installed avahi & cups-browsed on these bullseye machines which I had 
removed. And on reboot, I still had a local network on all bullseye's. 
Blew me away.


Take care & stay well.

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 



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 bullseye install.


What ?! Red Hat ?!
I hope it's a writing mistake, and that you know that the system config 
is not handled the same way in RedHat and Debian ?


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 Debian helpers time for no 
reason) ...


That is an insult. I bailed out of fedora 15 years ago, tired to being 
an always sick lab rat for redhat. Ubuntu which linuxcnc used for one 
release wasn't a tasty piece of cake, and when linuxcnc jumped to debian 
at about jessie, it was a whole new ball game. And with bookworm, 
linuxcnc is scheduled to join the debian repos. Generally speaking, 
keeping things up to date has become so routine its boring.


Now, if I could figure out why printers, shared om this bullseye 
machine work perfectly when accessed by a buster machine, but cannot 
be seen by any other bullseye machine here, debian or armbian. My logs 
show an auth failure but all are DefaultAthorization Basic. And 
turning on debugging doesn't tell me anything more useful. Like why... 
I've managed to get 1 armbian machine trying to connect, but my logs 
are huge cuz it tries every 11 seconds


Maybe it's a bug in CUPS or w/e soft you're using. Try to find other 
people having this, or report it as a bug.


Not possible. Michael and I have known each other since the '80's when 
he was a starving college student. I'll just let it go at that.


I think you should try avahi/bonjour, also known as *zeroconf*.
Maybe it will better handle your network than yourself ...
Sorry to be so harsh, but no one can help someone who does not want to 
be helped.


That is flat untrue.

Take care & stay well.


.


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 



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
troll (or a RedHat fanatic wasting Debian helpers time for no reason) ...


My take is that he's confused, not trolling.  I've never seen any evidence
that he's intentionally making false statements.  He seems to believe what
he's saying.


Well, I don't know what's the worst ...
And honestly, when you're genuinely confused, you believe and follow the 
advice of the ones who know ...



The weird and frustrating part is that nothing we do or offer seems to
break through the confusion.



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 systems a lot so I may be wrong, and there's 
not a lot of material left from the 1998 web, but the resolv.conf file 
*looks* identical in RHEL-based systems, at least nowadays.
I quickly browsed a few RH help pages about resolv.conf, but couldn't 
find his claim.


I then searched for "search hosts, nameserver" on search engines (-with- 
the quotes, to only get full-match results).
Either I get no results or ... wait for it ... it *ONLY* gives me 
results where Gene posted !


So Gene, can you tell us where you read this ?

If you didn't read it somewhere, are you using it because :
- it always has been in your config files, which you created at a time 
you didn't really know what you were doing,

- or you followed advice from someone who claimed he knew,
- or it was in a wrongly pre-configured system and you blindly copied 
the stanza ?




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 Debian helpers time for no reason) ...

My take is that he's confused, not trolling.  I've never seen any evidence
that he's intentionally making false statements.  He seems to believe what
he's saying.

The weird and frustrating part is that nothing we do or offer seems to
break through the confusion.



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 ?!
I hope it's a writing mistake, and that you know that the system config 
is not handled the same way in RedHat and Debian ?


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 Debian helpers time for no 
reason) ...



Now, if I could figure out why printers, shared om this bullseye machine 
work perfectly when accessed by a buster machine, but cannot be seen by 
any other bullseye machine here, debian or armbian. My logs show an auth 
failure but all are DefaultAthorization Basic. And turning on debugging 
doesn't tell me anything more useful. Like why... I've managed to get 1 
armbian machine trying to connect, but my logs are huge cuz it tries 
every 11 seconds


Maybe it's a bug in CUPS or w/e soft you're using. Try to find other 
people having this, or report it as a bug.


I think you should try avahi/bonjour, also known as *zeroconf*.
Maybe it will better handle your network than yourself ...
Sorry to be so harsh, but no one can help someone who does not want to 
be helped.




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 right w/o dragging in
dhcpd.  My way doesn't need that. But you've made it your lifes work to not
understand how my way Just Works.


How To Set Up A Debian Computer With Static IP Addressing And Hosts File:

1) Install Debian.  Select "Standard".  Do not select a Desktop Environment.

2) Find the name of your ethernet interface, either using "ip link" or
by reading /etc/network/interfaces.  For purposes of this document,
let's say it's "en0".

3) Bring your ethernet interface down:  ifdown en0
This will kill the DHCP client daemon.

4) Edit the /etc/network/interfaces file, and change
   iface en0 inet dhcp
to
   iface en0 inet static
and then add the "address" and "gateway" lines underneath that.
While you're in there, make sure you have "auto en0" too.

5) Bring your interface up:  ifup en0

6) Verify that it works, by pinging your gateway, and then pinging an
outside IP address (e.g. ping 8.8.8.8).

7) Edit your /etc/resolv.conf file correctly for your network.
This means adding a "nameserver" line that points to your DNS resolver.
Do not add lines that are not documented in resolv.conf(5).
Specifically, do not add lines that mimic /etc/nsswitch.cong behavior
in this file, because they do not work.

8) Verify that DNS works (e.g. ping www.debian.org).

9) Edit your /etc/hosts file to contain the IP addresses and names of
other hosts on your internal network.

10) Verify that your internet network name resolution works
 (e.g. ping coyote).

There you go.  That's the whole thing.  That's what we've tried to tell
you to do, for the last 5 to 10 years.

I promise you, Gene, "search hosts, nameserver" is NOT a working line in
an /etc/resolv.conf file.  It never has been.  It never will be.

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


Now, if I could figure out why printers, shared om this bullseye machine 
work perfectly when accessed by a buster machine, but cannot be seen by 
any other bullseye machine here, debian or armbian. My logs show an auth 
failure but all are DefaultAthorization Basic. And turning on debugging 
doesn't tell me anything more useful. Like why... I've managed to get 1 
armbian machine trying to connect, but my logs are huge cuz it tries 
every 11 seconds


Take care & sty well, Greg

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 



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 resolv.conf file contains obvious
  syntax errors.

- Gene has been told this many times by many people over the course
  of many years.

- Gene refuses to acknowledge or correct this, nor to stop advising
  other people to copy him.

- How anything Just Works for Gene is a matter of luck, not design.
  Frequently things *don't* Just Work for Gene, and then these
  habits frustrate any attempt to help him. The chances are good
  that in any given situation he will ignore all advice and just
  repost the same problem again in a few weeks, months or years.

- Gene's behaviour does not restrict itself to resolv.conf. A great
  portion of the advice Gene offers on this list is factually
  incorrect.

It would be best to corroborate anything Gene advises you to do with
the documentation and other posters. Sometimes he is correct, but
too many times he is not.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



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 doesn't need that. But you've made it your lifes work to not
> understand how my way Just Works.

How To Set Up A Debian Computer With Static IP Addressing And Hosts File:

1) Install Debian.  Select "Standard".  Do not select a Desktop Environment.

2) Find the name of your ethernet interface, either using "ip link" or
   by reading /etc/network/interfaces.  For purposes of this document,
   let's say it's "en0".

3) Bring your ethernet interface down:  ifdown en0
   This will kill the DHCP client daemon.

4) Edit the /etc/network/interfaces file, and change
  iface en0 inet dhcp
   to
  iface en0 inet static
   and then add the "address" and "gateway" lines underneath that.
   While you're in there, make sure you have "auto en0" too.

5) Bring your interface up:  ifup en0

6) Verify that it works, by pinging your gateway, and then pinging an
   outside IP address (e.g. ping 8.8.8.8).

7) Edit your /etc/resolv.conf file correctly for your network.
   This means adding a "nameserver" line that points to your DNS resolver.
   Do not add lines that are not documented in resolv.conf(5).
   Specifically, do not add lines that mimic /etc/nsswitch.cong behavior
   in this file, because they do not work.

8) Verify that DNS works (e.g. ping www.debian.org).

9) Edit your /etc/hosts file to contain the IP addresses and names of
   other hosts on your internal network.

10) Verify that your internet network name resolution works
(e.g. ping coyote).

There you go.  That's the whole thing.  That's what we've tried to tell
you to do, for the last 5 to 10 years.

I promise you, Gene, "search hosts, nameserver" is NOT a working line in
an /etc/resolv.conf file.  It never has been.  It never will be.



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 try to connect to a machine with
for example "ssh hostname", the DNS client will try to append example.com to
hostname, and try to resolve "hostname.example.com".


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 sane state.

I recommend not trying again, but it's up to you.  Maybe you'll succeed
where everyone else has failed... I doubt it, but I can't rule it out.

.
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 doesn't need that. But you've made it your 
lifes work to not understand how my way Just Works.


Take care & stay well.

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 



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 sane state.

I recommend not trying again, but it's up to you.  Maybe you'll succeed
where everyone else has failed... I doubt it, but I can't rule it out.



Ahah ^^
As confucius said : "Experience is a lantern that you carry on your back 
and that only lights up the path you have traveled", but thanks for the 
advice !




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 simply remove the dhcp-client
package, so resolv.conf will be left alone.


That's not always true.  Sometimes you want the IP address from DHCP,
but you want to provide your own DNS.  There are LOTS of scenarios where
this is desirable.

That's why this is such an important topic, and why it keeps coming up
over and over again.

That's why we have a wiki page which describes several different solutions,
so that each sysadmin who runs into this problem can find a suitable one.

https://wiki.debian.org/resolv.conf

.

Thank you for that link Greg.

This explains it better than I do, but if history is any indicator, it 
will be made useless by bookworm.  Thanks Greg, it may contain some clue 
as to why printers on this machine, all marked shared, cannot be used by 
other bullseye installs, Other buster installs however can use them just 
fine. My logs claim the client is not sending any authorization. Yet all 
clients claim DefaultAuthorization is Basic.


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 



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
> for example "ssh hostname", the DNS client will try to append example.com to
> hostname, and try to resolve "hostname.example.com".

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 sane state.

I recommend not trying again, but it's up to you.  Maybe you'll succeed
where everyone else has failed... I doubt it, but I can't rule it out.



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
> package, so resolv.conf will be left alone.

That's not always true.  Sometimes you want the IP address from DHCP,
but you want to provide your own DNS.  There are LOTS of scenarios where
this is desirable.

That's why this is such an important topic, and why it keeps coming up
over and over again.

That's why we have a wiki page which describes several different solutions,
so that each sysadmin who runs into this problem can find a suitable one.

https://wiki.debian.org/resolv.conf



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, 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.


It seems you misconfigured a few things.
- 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 package, so resolv.conf will be left alone.


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 for example "ssh hostname", the DNS client will try to append 
example.com to hostname, and try to resolve "hostname.example.com".


Finally, if using static addressing, I can't see why NetworkManager is 
useful.


So to recap, if your LOCAL domain is example.com, and your DNS server is 
192.168.1.1, a resolv.conf would look like:

# /etc/resolv.conf
nameserver 192.168.1.1
search example.com
#

Man pages:
man resolv.conf
man nsswitch.conf



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



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



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:

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 



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



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



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 other situations where you
ever want an automatic process to change the resolv.conf file

-dsr-



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


signature.asc
Description: PGP signature


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 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/
⠈⠳⣄⠀⠀


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



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



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 the method above?

Thanks & Happy weekend.
corey hickman