Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: David Wright Newsgroups: linux.debian.user Subject: Re: changing local domain name Date: Thu, 12 Apr 2018 22:30:02 +0200 Message-ID: References: X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Thu Apr 12 20:21:24 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.601 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, GMAIL=1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 X-Asg-Debug-ID: 1523564465-055413123ce640e10001-KlT975 X-Barracuda-Envelope-From: deblis@lionunicorn.co.uk X-Barracuda-Effective-Source-IP: cloud11.unlimitedwebhosting.co.uk[149.255.60.164] X-Barracuda-Apparent-Source-IP: 149.255.60.164 X-Asg-Orig-Subj: Re: changing local domain name Reply-To: debian-user@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) X-Barracuda-Connect: cloud11.unlimitedwebhosting.co.uk[149.255.60.164] X-Barracuda-Start-Time: 1523564465 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://149.255.60.72:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 3724 X-Barracuda-Brts-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.49829 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Mailing-List: archive/latest/734580 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20180412202102.GB11580@alum Approved: robomod@news.nic.it Lines: 94 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 12 Apr 2018 15:21:02 -0500 X-Original-Message-ID: <20180412202102.GB11580@alum> X-Original-References: <14b96f84b215e7b989e5c26d9fd81260@gmail.com> <6eb0920d9704083cd3efdb0bd2f4ec15@gmail.com> <4110f263-ac4d-6e7a-894f-f4240174da21@mail.com> <20180330161137.GB7013@alum> <91b94923-79a0-d502-04ae-ba25a71bd3ef@mail.com> Xref: csiph.com linux.debian.user:194737 On Tue 03 Apr 2018 at 08:37:29 (+0200), john doe wrote: > On 3/30/2018 6:11 PM, David Wright wrote: > >On Fri 30 Mar 2018 at 08:05:31 (+0200), john doe wrote: > >>On 3/29/2018 9:56 PM, mick crane wrote: > >>>On 2018-03-29 19:34, Curt wrote: > >>>>On 2018-03-29, mick crane wrote: > >>>>>following recent about hostname it seems I've been under > >>>>>misunderstanding that ".local" was OK so now I change local domain to > >>>>>".home" . > >>>>>It's not just domainname and /etc/hosts. It's every frigging where. > >>>>>apache > >>>>>roundcube > >>>>>postfix > >>>>>now my ISP SMTP server is moaning. > >>>>> > >>>>>think I got them all except cups is unhappy, I don't know why. > >>>>> > >>>> > >>>>There's actually a wiki on this: > >>>> > >>>>https://wiki.debian.org/HowTo/ChangeHostname > >>>> > >>>>For cups you might look at > >>>> > >>>>/etc/printcap > >>>> > >>>>the part after rm= > >>>>  rm=einstein > >>>>     ******** > >>>> > >>>>Of course that part is the part to the left of the first dot in your > >>>>fqdn. > >>>> > >>>>Anyway, good luck (my hostname is incorrect, but as it has never caused > >>>>me any misery, I've left well enough alone up to this point). > >>> > >>>Oh, there's more in /var. I'm going to ignore the binary files as > >>>I don't think they are current and I don't know how to edit them > >>>anyway. > >>>In fact the installation is a bit old I could do with tidying it > >>>all up anyway so I might as well start afresh. > >>> > >> > >>I always start from scratch when I need to change the > >>hostname/domain on a host. > >>That's probably the only reason I need to start afresh! > > > >Unless you're running an advertised server, in which case one would > >wonder why you felt the need to change things (perhaps part of a > >bigger disruption), I can only say I find this rather extreme. > > Thanks for the caution. > As part of improving my network; I went for meaningless hostname and > using CNAME record to better describe the host. It's not really the hostnames that concern me, but the name of the domain. (I've only seen the one posting about hostnames, and it's not settled whether they were serious or not. I tried to give them the benefit of the doubt with RFC 8117.) > >Years ago, I would clone a system (or build in a different box) and then > >move it into its new home with very few files to alter. About the only > >confusion caused was to ARP, and that only happened when I was on > >thinwire ethernet and lasted a few minutes. > > > >I've struggled to find a multitude of files with the name of the > >domain in them. Beyond hosts and mailname, where are you finding them > >all? > > For starter I use recursive grep on '/etc' '/home' ... I didn't say "how do you¹ find them" but "where are you finding them". I wouldn't be bothering with /home: anything there is self-inflicted and can be tidied up any time. The critical ones are /etc and /var/lib because files here are involved in running the machine. Apart from the obvious suspects (the files that configure the network and email system), I don't see many. On a wired system: /etc/hosts:127.0.1.1 ← canonical domainname and hostname /etc/exim4/update-exim4.conf.conf ← according to your configuration /etc/mailname ← ditto Everything else is either logs (in the past) or cache (ephemeral): /etc/.git/logs/refs/heads/master ← etckeeper package is installed /etc/.git/logs/HEAD ← ditto /var/log/… ← occasional references /var/cache/debconf/config.dat ← remembers what you configured ¹ "you" being the person who wrote "It's every frigging where." Cheers, David.