On 10/22/23 11:02, Henning Follmann wrote:
On Sat, Oct 21, 2023 at 01:24:21PM -0400, Greg Wooledge wrote:
On Sat, Oct 21, 2023 at 01:08:58PM -0400, Pocket wrote:

On 10/21/23 12:49, Greg Wooledge wrote:
On Sat, Oct 21, 2023 at 12:23:45PM -0400, Pocket wrote:
I want NetworkManager to not over write /etc/resolv.conf
https://wiki.debian.org/resolv.conf

openresolv or resolvconf is not installed

no dhcp client is running only networkmanager is installed/running


Well, NM is a dhcp client, technically.

making /etc/resolv.conf immutable is not the answer

If you're asking us to tell you how to *make NetWorkManager behave*
then you might be frustrated.  Most of the people on this mailing list
don't use it.  There are some who actively despise it, and go out of
their way to ensure it's never installed.  (Those people are a small
minority, but they're definitely here.)  So, in all likelihood, nobody
here might know that answer.

Well, that is not true. I think for a desktop NM is the right tool for most
users.
Some of these statements are based of past issues which mostly are
resolved these days.


If you believe NM is not behaving according to its documentation, then
file a bug report.

I did that decades ago, and was ignored. I don't even have the bugzilla number cuz of seagates crappy 2T drives failing in a month taking first my backups, then then a couple days later the main drive in this machine, forcing a bookworm install that took 22 damned installs to get rid of orca and brltty cuz the installer found a serial-usb adaptor and assumed I was blind. They are used for a lot of ups's and for X10 stuff that have nothing to do with hearing loss.

Yes true,

But I would assume that the initial question points to the real problem
here.

I assume you have some special requirments for your DNS resolver and you
just put specific dns resolver in your /etc/resolcv.conf

You all have given me a hard time over this, but I have a nearly 35 year history with hosts files which work for such as my home network at an address block 192.168.nnn.nnn that is not relayed thru a router.

So that means my whole network is not net accessible without NAT in the router which has been running dd-wrt forever. My whole home net has no dhcp server, host files do it all.

NM, and avahi, seems to want to assign a default route in the 169 block if it cannot find a dns server, but until recently that default route has been the biggest PITA ever foisted of on us linux users. You cannot get out of your T-shirt pocket for any reason, and getting rid of it seems to be a big secret, no one has yet answered. So we put a nameserver address pointing to the routers local address in resolv.conf and quickly make it immutable before NM has a chance to screw it up. Then a suitable entry in /e/n/interfaces usually results in a ping -c1 yahoo.com that just works.

NM's purpose seems to be is to jump thru dhcp hoops a host file user does not need, so I put the router as a default nameserver in /etc/resolv.conf and make it immutable, which router I think is running dnsmasq, so if the name isn't cached there, dnsmasq forwards the request to my isp's server which is supposedly up to date. I can ping any named & registered site on this ball of rock and water, usually in less than 30 milliseconds unless its to Ulan Bator. IF I can prevent NM and avahi from assigning a totally bogus 169. route, it just works. Until that stops, neither is welcome for the initial install on my premises.

Once I have networking working, then cups might need avahi. but _NOT_ before the rest of my network is up and running. And every machine on my local net can browse the world with FF.

So please tell me again what NM is supposed to do for /me/?

Thank you.

There might be better ways with NM to manually specify your dns server.


Each network connection stanza can be individually configured based on your
location requirements. I would look into the documentation to solve the
issue the "NM way" and not come up with some hack and then fight the NM.

-H


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

Reply via email to