Re: Fwd: problem due to hostname change

2005-03-18 Thread Neo-Vortex


On Thu, 17 Mar 2005, Pietro Cerutti wrote:

 Hi Hackers,
 I posted this on freebsd-questions, but couldn't find a solution...

 Maybe here

 Thank you!


 Please: don't Cc me, I'm on the list!


 -- Forwarded message --
 From: Pietro Cerutti [EMAIL PROTECTED]
 Date: Thu, 17 Mar 2005 15:04:45 +
 Subject: Re: problem due to hostname change
 To: Lowell Gilbert [EMAIL PROTECTED]
 Cc: FreeBSD freebsd-questions@freebsd.org


 On 17 Mar 2005 09:57:26 -0500, Lowell Gilbert
 [EMAIL PROTECTED] wrote:
  Pietro Cerutti [EMAIL PROTECTED] writes:
 
   Hi list,
   my computer is not part of a domain, and so I had set my hostname to
   old_hostname.
   Now I changed it in rc.conf to new_hostname:
  
   ~ cat /etc/rc.conf | grep hostname
   hostname=new_hostname
   ~
  
   I rebooted, but my pc is still somewhere configured to be called 
   old_hostname.
   First of all, when the pc boots, I see this in dmesg:
  
   FreeBSD 5.4-PRERELEASE #10: Wed Mar  9 15:40:46 UTC 2005
   my_name@old_hostname:/usr/obj/usr/src/sys/GAHR
 
  That's not a problem; all it means is that's who built the kernel.  It
  doesn't get used for *anything* other than printing that message.
 
   Then, when I try to start apache, I see this in my
   /var/log/httpd-error.log, and apache won't start:
  
   [Thu Mar 17 13:29:11 2005] [alert] mod_unique_id: unable to
   gethostbyname(old_hostname)

grep -ir old_hostname /etc /usr/local/etc
(mabe even for /var/named too...)

that might shed some light as to where its coming from... as for the
bootup the [EMAIL PROTECTED] is just that you compiled the kernel as that,
it affects nothing

  You must have put the old hostname into Apache's configuration
  explicitly.  You will need to change it by hand.  The configuration
  file is (by default, as installed from the port)
  /usr/local/etc/apache/httpd.conf.

 No, this is not the problem. I searched in httpd.conf but I didn't
 find anything concerning my old_hostname.

 I even deinstalled  deleted the configuration files  reinstalled apache.

 Don't forget this:
 FreeBSD 5.4-PRERELEASE #10: Wed Mar  9 15:40:46 UTC 2005
 my_name@old_hostname:/usr/obj/usr/src/sys/GAHR

 Here I have my old_hostname too.

 
  
   My question is: how can I change my hostname to new_hostname safely,
   in a way that the old_hostname is not used anymore in any part of
   the OS?
 
  Changing rc.conf is enough for anything that was configured
  automatically.

 It should be so, but it actually isn't.

 If you changed some other configuration by hand, you
  will need to change it again by hand.  Note that if you had not added
  your hostname to httpd.conf, Apache would have used the system
  hostname by default (I believe; I haven't actually checked this
  recently).

 I'm sure I didn't set my old_hostname anywhere else than in rc.conf

 
  Be well.
 

 However, thank you for your advice, but it didn't solve my problem...


 --
 Pietro Cerutti
 [EMAIL PROTECTED]
 http://www.gahr.ch/pgp-key

 Beansidhe - SwiSS Death / Thrash Metal
 www.beansidhe.ch

 Windows: Where do you want to go today?
 Linux: Where do you want to go tomorrow?
 FreeBSD: Are you guys coming or what?


 --
 Pietro Cerutti
 [EMAIL PROTECTED]
 http://www.gahr.ch/pgp-key

 Beansidhe - SwiSS Death / Thrash Metal
 www.beansidhe.ch

 Windows: Where do you want to go today?
 Linux: Where do you want to go tomorrow?
 FreeBSD: Are you guys coming or what?
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fwd: problem due to hostname change

2005-03-17 Thread Pietro Cerutti
Hi Hackers,
I posted this on freebsd-questions, but couldn't find a solution...

Maybe here

Thank you!


Please: don't Cc me, I'm on the list!


-- Forwarded message --
From: Pietro Cerutti [EMAIL PROTECTED]
Date: Thu, 17 Mar 2005 15:04:45 +
Subject: Re: problem due to hostname change
To: Lowell Gilbert [EMAIL PROTECTED]
Cc: FreeBSD freebsd-questions@freebsd.org


On 17 Mar 2005 09:57:26 -0500, Lowell Gilbert
[EMAIL PROTECTED] wrote:
 Pietro Cerutti [EMAIL PROTECTED] writes:

  Hi list,
  my computer is not part of a domain, and so I had set my hostname to
  old_hostname.
  Now I changed it in rc.conf to new_hostname:
 
  ~ cat /etc/rc.conf | grep hostname
  hostname=new_hostname
  ~
 
  I rebooted, but my pc is still somewhere configured to be called 
  old_hostname.
  First of all, when the pc boots, I see this in dmesg:
 
  FreeBSD 5.4-PRERELEASE #10: Wed Mar  9 15:40:46 UTC 2005
  my_name@old_hostname:/usr/obj/usr/src/sys/GAHR

 That's not a problem; all it means is that's who built the kernel.  It
 doesn't get used for *anything* other than printing that message.

  Then, when I try to start apache, I see this in my
  /var/log/httpd-error.log, and apache won't start:
 
  [Thu Mar 17 13:29:11 2005] [alert] mod_unique_id: unable to
  gethostbyname(old_hostname)

 You must have put the old hostname into Apache's configuration
 explicitly.  You will need to change it by hand.  The configuration
 file is (by default, as installed from the port)
 /usr/local/etc/apache/httpd.conf.

No, this is not the problem. I searched in httpd.conf but I didn't
find anything concerning my old_hostname.

I even deinstalled  deleted the configuration files  reinstalled apache.

Don't forget this:
FreeBSD 5.4-PRERELEASE #10: Wed Mar  9 15:40:46 UTC 2005
my_name@old_hostname:/usr/obj/usr/src/sys/GAHR

Here I have my old_hostname too.


 
  My question is: how can I change my hostname to new_hostname safely,
  in a way that the old_hostname is not used anymore in any part of
  the OS?

 Changing rc.conf is enough for anything that was configured
 automatically.

It should be so, but it actually isn't.

If you changed some other configuration by hand, you
 will need to change it again by hand.  Note that if you had not added
 your hostname to httpd.conf, Apache would have used the system
 hostname by default (I believe; I haven't actually checked this
 recently).

I'm sure I didn't set my old_hostname anywhere else than in rc.conf


 Be well.


However, thank you for your advice, but it didn't solve my problem...


--
Pietro Cerutti
[EMAIL PROTECTED]
http://www.gahr.ch/pgp-key

Beansidhe - SwiSS Death / Thrash Metal
www.beansidhe.ch

Windows: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?


-- 
Pietro Cerutti
[EMAIL PROTECTED]
http://www.gahr.ch/pgp-key

Beansidhe - SwiSS Death / Thrash Metal
www.beansidhe.ch

Windows: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fwd: problem due to hostname change

2005-03-17 Thread Eric Anderson
Pietro Cerutti wrote:
Hi Hackers,
I posted this on freebsd-questions, but couldn't find a solution...
Maybe here
Thank you!
Please: don't Cc me, I'm on the list!
-- Forwarded message --
From: Pietro Cerutti [EMAIL PROTECTED]
Date: Thu, 17 Mar 2005 15:04:45 +
Subject: Re: problem due to hostname change
To: Lowell Gilbert [EMAIL PROTECTED]
Cc: FreeBSD freebsd-questions@freebsd.org
On 17 Mar 2005 09:57:26 -0500, Lowell Gilbert
[EMAIL PROTECTED] wrote:
Pietro Cerutti [EMAIL PROTECTED] writes:

Hi list,
my computer is not part of a domain, and so I had set my hostname to
old_hostname.
Now I changed it in rc.conf to new_hostname:
~ cat /etc/rc.conf | grep hostname
hostname=new_hostname
~
I rebooted, but my pc is still somewhere configured to be called old_hostname.
First of all, when the pc boots, I see this in dmesg:
FreeBSD 5.4-PRERELEASE #10: Wed Mar  9 15:40:46 UTC 2005
   my_name@old_hostname:/usr/obj/usr/src/sys/GAHR
That's not a problem; all it means is that's who built the kernel.  It
doesn't get used for *anything* other than printing that message.

Then, when I try to start apache, I see this in my
/var/log/httpd-error.log, and apache won't start:
[Thu Mar 17 13:29:11 2005] [alert] mod_unique_id: unable to
gethostbyname(old_hostname)
You must have put the old hostname into Apache's configuration
explicitly.  You will need to change it by hand.  The configuration
file is (by default, as installed from the port)
/usr/local/etc/apache/httpd.conf.

No, this is not the problem. I searched in httpd.conf but I didn't
find anything concerning my old_hostname.
I even deinstalled  deleted the configuration files  reinstalled apache.
Don't forget this:
FreeBSD 5.4-PRERELEASE #10: Wed Mar  9 15:40:46 UTC 2005
my_name@old_hostname:/usr/obj/usr/src/sys/GAHR
Here I have my old_hostname too.

My question is: how can I change my hostname to new_hostname safely,
in a way that the old_hostname is not used anymore in any part of
the OS?
Changing rc.conf is enough for anything that was configured
automatically.

It should be so, but it actually isn't.
If you changed some other configuration by hand, you
will need to change it again by hand.  Note that if you had not added
your hostname to httpd.conf, Apache would have used the system
hostname by default (I believe; I haven't actually checked this
recently).

I'm sure I didn't set my old_hostname anywhere else than in rc.conf

What about /etc/hosts?  Maybe try:
grep oldhostname /etc/*
Eric

--

Eric AndersonSr. Systems AdministratorCentaur Technology
I have seen the future and it is just like the present, only longer.

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]