[Linux-Discussion] Re: changing hostname problems

  • From: John Madden <weez@xxxxxxxxxxxxx>
  • To: linux-discussion@xxxxxxxxxxxxx
  • Date: Fri, 14 Dec 2001 15:45:29 -0500

On Friday 14 December 2001 03:13 pm, you wrote:
> I'm trying to change my server's hostname and not having much luck.
>
> My server is also a nameserver- the old hostname works ok, the only
> reason I'm wanting to change it is to not confuse newbies.
>
> Old hostname:
> server.heftyhosting.com 66.33.80.195
> server2.heftyhosting.com 66.33.81.195
>
> I want to change it to:
> ns.heftyhosting.com 66.33.80.195
> ns2.heftyhosting.com 66.33.81.195
>
> Here's what I've tried so far from my lurking on the sourceforge webmin
> list:
>
> ==============
> first one:
> ==============
> "On RedHat, edit /etc/sysconfig/network and change the value there. This
> will not change it until you reboot"

Right.  If you don't want to reboot, set it with "hostname 
<newhostnamehere>"

> Shouldn't there be a line for
> 66.33.81.195=ns2.heftyhosting.com like:
>
> @ IN A 66.33.81.195
> in order to get ns2 to resolve??

Yes, as far as I know, unless you make it a CNAME.

John




-- 
# John Madden  weez@xxxxxxxxxxxxx ICQ: 2EB9EA
# FreeLists, Free mailing lists for all: //www.freelists.org
# UNIX Systems Engineer, Ivy Tech State College: http://www.ivy.tec.in.us
# Linux, Apache, Perl and C: All the best things in life are free!

Other related posts: