[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing local domain name



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 <mick.crane@gmail.com> 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. 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? One might expect to check or reconfigure exim, dhcp and network
connection client, but what else? If the domain's name is that firmly
embedded into the system, how does anyone travel with a laptop?

For hostname, there are one or two extra places, like hostname
(obviously) and ssh keys, but again I'm struggling. Any software that
wants to know the hostname knows where to look. Most of the work in
changing hostname here would be self-inflicted because I share
configuration files between very different hosts, so the main config
files source other small files with names like .xsession-alum-jessie
for example. Probably not best practice.

Cheers,
David.


Reply to: