Path: csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: gene heskett Newsgroups: linux.debian.user Subject: Re: Domain name to use on home networks Date: Sun, 29 Oct 2023 17:30:01 +0100 Message-ID: References: X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Sun Oct 29 16:25:11 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.6 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -3.5 Auth-Sender: gheskett@shentel.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Ctch-Spam: Unknown X-Ctch-Refid: str=0001.0A702F19.653E8754.002E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-Originalarrivaltime: 29 Oct 2023 16:24:52.0693 (UTC) FILETIME=[72172050:01DA0A84] X-Mailing-List: archive/latest/804576 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/b8717415-97eb-4aa0-b69e-bff682ed41bc@shentel.net Approved: robomod@news.nic.it Lines: 99 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 29 Oct 2023 12:24:51 -0400 X-Original-Message-ID: X-Original-References: <67c09df5-56a9-49fa-801a-bd1d0ae7c04f@home.arpa> <87msw6tap8.fsf@sugarbit.com> <9d91e9b2-f8d5-45b5-964d-d0973e375115@shentel.net> <1dcef8e5-da2a-48c9-9e05-61e3dc91bc90@columbus.rr.com> <5420ce05-15a6-45ce-83c3-10ac6273de7f@shentel.net> Xref: csiph.com linux.debian.user:262870 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