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:

gene@coyote:/etc$ sudo nano domainnane
[sudo] password for gene:
gene@coyote:/etc$ domainname
(none)
gene@coyote:/etc$ cat domainname
cat: domainname: No such file or directory
now I see the typu. sudo mv to fx the files name. but even with a
corrected filename visible to an ls:
gene@coyote:/etc$ domainname
(none)
gene@coyote:/etc$ cat domainname
home.arpa

I'd reboot again, but that, by the time I get everything remounted and
my system fully operational, takes me entering my pw about 20 times.
when done I am logged into 6 other machines via an ssh -X login to
each, and I've a sshfs file transfer link setup to each so mc can copy
work output around.  Then I can go to work.

Why was the domainname I set and could see with a cat, deleted by a
reboot?  Seems to be the question for the day... I sure didn't delete
it. But it was gone after a reboot.  Seems to me there ought to be a
PERMANENT way to do this. Now, even if the file exists, its ignored.

I'm just wondering where this file /etc/domainname came from in the
first place. I can't find it with apt-file (killing two birds):

   $ apt-file find etc/domain
   $

Neither can I find it/them in the install/remove scripts for the packages
on my systems:

   $ grep etc/domain /var/lib/dpkg/info/*
   $

I don't recall ever seeing either /etc/domainname or /etc/domain
in the past either, as I would have my copy backed up.

/etc/domainname might be anodyne on your system, but it raises
suspicions when this is meant to be a recent bookworm netinst
where "I'm not doing anything the installer didn't ask me to do"
(posted last week).

Cheers,
David.


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.

And the chrome browser is still broken, it cannot look at localhost:80, hostname:80 or alias:80. It blanks that out of the address line and refills it with 250+ chars of a failure message from google %$#^@!& dns server. I had to fix my net before I could install the snap of firefox, which DOES follow the lookup rules chrome refuses to use. google. spit.

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