On 10/29/23 13:09, Pocket wrote:
On 10/29/23 12:24, gene heskett wrote:
On 10/29/23 10:23, David Wright wrote:
On Fri 27 Oct 2023 at 11:13:59 (-0400), gene heskett wrote:
You saw my hosts entry in the last post, but again
192.168.71.3 coyote.home.arpa coyote
but after a reboot, domainname returns none, and the /etc/domainname
file has been deleted. As in not visible to an ls of /etc. hostname
works as it should. My hosts file is all long form, dotted names with
a trailing alias.
So I just sudo edited /etc/domainname, and entered "home.arpa\return"
and wrote the flle.
results:
You are quite right David, /etc/domainname was composed by me in nano
after that was posted, I have also made a very painfull attempt to
change my domainname from coyote.den to home.arpa, and finally
reverted that, amoung an attack by network mangler, finally solved by
editing resolv.conf to put the nameserver address into it, followed by
a chattr +i resolv.conf. I have no d clue where mangler gets the
"search coyote.den" it keeps putting in resolv.conf every 45 seconds
as it times out and sets it offline for 5 seconds. Maybe its not
right, but it fixes it. All of the -alphabet options to hostname now
work once I edited out the domainname part of /etc/hostname. IMO,
giving network mangler the ability to change resolv.conf has been the
single glaringly biggest headache for hosts file users in the last
decade. After 3 days of screwing around with an armbian jammy on a
bananapi-m5, one of many on this home network, its finally working. I
had to revert to an earlier xfce desktop image to get the video to
work. Then with everything looking correct, I had a net connection for
45 seconds, followed by a 5 second reset. So chattr +i to the rescue
after making sure the nameserver address was in resolv.conf.
NetworkManager keeps updating the /etc/resolv.conf file in my opinion
because it is querying the DHCP server.
After much trouble this is my current setup for what will become my new
DNS, NFS and web server
which BTW is running on a raspberry pi 4, with debian bookworm.
Be mindful of the following NetworkManager uses this if the
configuration file is not in
/etc/NetworkManager/system-connections/<some name>
ls /run/NetworkManager/system-connections/
'Wired connection 1.nmconnection' lo.nmconnection
My setup:
cat /etc/hostname
gremlin
cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 gremlin.home.arpa gremlin
cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
[global-dns]
options=edns0 trust-ad
This is for my Wireless connection, Wired has the same settings:
cat /etc/NetworkManager/system-connections/GREMLIN.nmconnection
[connection]
id=GREMLIN
uuid=49743fda-4a97-4ff4-b46a-a12a7b1383fb
type=wifi
interface-name=wlan0
[wifi]
mode=infrastructure
ssid=GREMLIN
[ipv4]
method=auto
dns-search=home.arpa;
[ipv6]
addr-gen-mode=stable-privacy
method=auto
dns-search=home.arpa;
dns=<ipv6 address of router here>
ignore-auto-dns=true
cat /etc/resolv.conf
# Generated by NetworkManager
search home.arpa
nameserver 192.168.1.1
nameserver <ipv6 address of router here>
options edns0 trust-ad
That is all it took to get it setup on my Network.
NetworkManager will populate /etc/resolv.conf using both wired and wifi
connections/setup, maybe that is some of your troubles as well?
I make them with the same settings
Finally some info worth checking out and putting on dead tree.
Also maybe your router needs some TLC
possibly, its a Buffalo Netfinity with a now elderly dd-wrt reflash, and
whose pw I've long since forgot, and its 30 chars of random gibberish
IIRC. So I'll have to start with the long reset to factory, which was
easy because the old asus mobo had two net plugs, but this one only has
one. I have a spare router whose mac has been cloned that can be used in
a pinch, but will need to get a usb to net dongle first. With a ups and
auto stand by here, its not even been rebooted in years. What can I
say? As a guard dog its sharp teeth have been 100% effective so I
haven't had an excuse to log into it since I turned off the radio about
5 years ago to keep a neighbors phone from using 80GB a month to watch
porn. I could probably turn the radio back on, he spent some time in
jail for mail nondelivery, and his woman thru him out when he got out,
so he and his hacked phone are no longer neighbors. Found a dongle.
Bought it. Be here Tuesday. And this time around, I'll set a pw and
write it down. ;o)>
I have 4 more bananapi-m5's coming, so I may be back but last post on
this thread unless someone can tell me how to housebreak network
mangler. I'm plumb tuckered out from mopping up its messes.
Take care & stay well, all.
Cheers, Gene Heskett.
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