Re: [CentOS] How to set hostname and domainnmae in CentOS 7?

2016-04-09 Thread Gregory P. Ennis
We can permanently set hostname using  hostnamectl set-hostname. How can we permanently set *domain name* in CentOS 7? I found an article that recommended setting FQDN using hostnamectl. Is that

Re: [CentOS] How to set hostname and domainnmae in CentOS 7?

2016-04-06 Thread John R Pierce
On 4/6/2016 11:34 AM, James Hogarth wrote: On 6 April 2016 at 15:45, Mark Haney wrote: >Not sure about everyone else, but I always put my hostname in /etc/hosts. >Maybe that's from years of not always having DNS available back when the >earth was cooling. > > This

Re: [CentOS] How to set hostname and domainnmae in CentOS 7?

2016-04-06 Thread James Hogarth
On 6 April 2016 at 15:45, Mark Haney wrote: > Not sure about everyone else, but I always put my hostname in /etc/hosts. > Maybe that's from years of not always having DNS available back when the > earth was cooling. > > This behaviour plays havoc with templated VMs

Re: [CentOS] How to set hostname and domainnmae in CentOS 7?

2016-04-06 Thread Mark Haney
Not sure about everyone else, but I always put my hostname in /etc/hosts. Maybe that's from years of not always having DNS available back when the earth was cooling. On Apr 5, 2016 16:30, "James Hogarth" wrote: > On 5 April 2016 at 20:24, Joe Smithian

Re: [CentOS] How to set hostname and domainnmae in CentOS 7?

2016-04-05 Thread James Hogarth
On 5 April 2016 at 20:24, Joe Smithian wrote: > We can permanently set hostname using hostnamectl set-hostname. How can we > permanently set *domain name* in CentOS 7? > I found an article > < >

Re: [CentOS] How to set hostname and domainnmae in CentOS 7?

2016-04-05 Thread Mark Haney
vi or your text editor of choice. Though there should be a 'domainname' command to set it as well, though I just prefer editing /etc/hosts directly. On Tue, Apr 5, 2016 at 3:24 PM, Joe Smithian wrote: > We can permanently set hostname using hostnamectl set-hostname.

[CentOS] How to set hostname and domainnmae in CentOS 7?

2016-04-05 Thread Joe Smithian
We can permanently set hostname using hostnamectl set-hostname. How can we permanently set *domain name* in CentOS 7? I found an article that recommended setting FQDN using hostnamectl. Is that