On Mon, Mar 31, 2008 at 6:15 AM, Craig White <<a href="mailto:craigwhite@azapple.com">craigwhite@azapple.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 2008-03-31 at 05:56 +0800, Fennix wrote:<br>
> On Mon, Mar 31, 2008 at 5:55 AM, Fennix <<a href="mailto:cn.stefan@gmail.com">cn.stefan@gmail.com</a>> wrote:<br>
> [root@bogon log]# cat /etc/sysconfig/network<br>
> NETWORKING=yes<br>
> HOSTNAME=localhost.localdomain<br>
> [root@bogon log]#<br>
><br>
><br>
> On Mon, Mar 31, 2008 at 5:50 AM, Craig White<br>
> <<a href="mailto:craigwhite@azapple.com">craigwhite@azapple.com</a>> wrote:<br>
> On Mon, 2008-03-31 at 05:44 +0800, Fennix wrote:<br>
> > I noticed today in my terminal window I now have a<br>
> host name of<br>
> > "bogon". I had never set a hostname for my Fedora8<br>
> home system. I<br>
> > can see from my logwatch and cron system mails that<br>
> the delivery to<br>
> > this host name started March 25th but none of my<br>
> mails shows anything<br>
> > that seems relevant to what has set this hostname.<br>
> Oddly on the 26th<br>
> > the system mails were addresses again to<br>
> localhost.localdomain but<br>
> > again reverted on the 27th to being addresses to<br>
> bogon. I have<br>
> > checked the man pages on the hostname command to<br>
> locate where the name<br>
> > is defined. Have checked the<br>
> > files /etc/host, /etc/hosts.conf, /etc/hostname<br>
> (does not<br>
> > exist), /etc/nsswitch.conf, ... but this name does<br>
> not show in any of<br>
> > the files I have looked at so far. Any ideas where<br>
> to look further?<br>
> > I am now wondering whether my system has been<br>
> compromised somehow...<br>
> > Googleing the word bogon shows me the meaning of of<br>
> bogon which does<br>
> > not seem helpful in this case.<br>
> ><br>
> > Checking /var/log/messages-20080330 shows the use of<br>
> this hostname<br>
> > with a reboot I had done on the 24th. Still cannot<br>
> see where or how<br>
> > this was set.<br>
> ----<br>
> what is output of?<br>
><br>
> cat /etc/sysconfig/network<br>
><br>
> Craig<br>
><br>
> Ooops....<br>
><br>
><br>
> [root@bogon log]# cat /etc/sysconfig/network<br>
> NETWORKING=yes<br>
> HOSTNAME=localhost.localdomain<br>
----<br>
sounds as if the name is attached to either:<br>
- NetworkManager and since I don't use it, I don't know where it might<br>
store supplemental settings...<br>
- the configuration of the device itself<br>
- in some script that sets the name somewhere.<br>
<br>
is this system using DHCP to get its ip address?<br>
if so, what is ouput of...<br>
/etc/dhclient-eth0.conf<br>
<br>
I think that if the hostname is 'reset', it should be reflected in<br>
syslog...<br>
what is output of...<br>
grep Host /var/log/messages<br>
<br>
Might it be set in /etc/rc.d/rc.local?<br>
tail /etc/rc.d/rc.local # should look very much like this and anything<br>
# additional might be a script that sets it<br>
#!/bin/sh<br>
#<br>
# This script will be executed *after* all the other init scripts.<br>
# You can put your own initialization stuff in here if you don't<br>
# want to do the full Sys V style init stuff.<br>
<br>
touch /var/lock/subsys/local<br>
<br>
Craig<br>
<font color="#888888"><br>
--<br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
</font></blockquote></div><br><br><br>Hi Craig,<br><br>Yes this pc does get its address using DHCP but the file
/etc/dhclient-eth0.conf does not exist in etc. The only file name starting with dhcp is dhcpd.conf and the contents appear to be a generic sample.<br><br>The output from /var/log/messages is as follows:<br><br>[root@bogon log]# grep Host /var/log/messages-20080323<br>
Mar 17 13:05:07 localhost kernel: ehci_hcd 0000:00:1d.7: EHCI Host Controller<br>Mar 17 13:05:07 localhost kernel: USB Universal Host Controller Interface driver v3.0<br>Mar 17 13:05:07 localhost kernel: uhci_hcd 0000:00:1d.0: UHCI Host Controller<br>
Mar 17 13:05:07 localhost kernel: uhci_hcd 0000:00:1d.1: UHCI Host Controller<br>Mar 17 13:05:07 localhost kernel: uhci_hcd 0000:00:1d.2: UHCI Host Controller<br>Mar 17 13:05:07 localhost kernel: uhci_hcd 0000:00:1d.3: UHCI Host Controller<br>
Mar 17 13:05:13 localhost avahi-daemon[2362]: Server startup complete. Host name is linux.local. Local service cookie is 2257381510.<br>Mar 19 02:13:53 localhost kernel: ehci_hcd 0000:00:1d.7: EHCI Host Controller<br>Mar 19 02:13:53 localhost kernel: USB Universal Host Controller Interface driver v3.0<br>
Mar 19 02:13:53 localhost kernel: uhci_hcd 0000:00:1d.0: UHCI Host Controller<br>Mar 19 02:13:53 localhost kernel: uhci_hcd 0000:00:1d.1: UHCI Host Controller<br>Mar 19 02:13:53 localhost kernel: uhci_hcd 0000:00:1d.2: UHCI Host Controller<br>
Mar 19 02:13:53 localhost kernel: uhci_hcd 0000:00:1d.3: UHCI Host Controller<br>Mar 19 02:13:59 localhost avahi-daemon[2362]: Server startup complete. Host name is linux.local. Local service cookie is 1223127342.<br>[root@bogon log]# grep Host /var/log/messages-20080330<br>
Mar 24 04:52:18 bogon kernel: ehci_hcd 0000:00:1d.7: EHCI Host Controller<br>Mar 24 04:52:18 bogon kernel: USB Universal Host Controller Interface driver v3.0<br>Mar 24 04:52:18 bogon kernel: uhci_hcd 0000:00:1d.0: UHCI Host Controller<br>
Mar 24 04:52:18 bogon kernel: uhci_hcd 0000:00:1d.1: UHCI Host Controller<br>Mar 24 04:52:18 bogon kernel: uhci_hcd 0000:00:1d.2: UHCI Host Controller<br>Mar 24 04:52:18 bogon kernel: uhci_hcd 0000:00:1d.3: UHCI Host Controller<br>
Mar 24 04:52:24 bogon avahi-daemon[2398]: Server startup complete. Host name is bogon.local. Local service cookie is 3193077034.<br>Mar 26 01:25:32 localhost kernel: ehci_hcd 0000:00:1d.7: EHCI Host Controller<br>Mar 26 01:25:32 localhost kernel: USB Universal Host Controller Interface driver v3.0<br>
Mar 26 01:25:32 localhost kernel: uhci_hcd 0000:00:1d.0: UHCI Host Controller<br>Mar 26 01:25:32 localhost kernel: uhci_hcd 0000:00:1d.1: UHCI Host Controller<br>Mar 26 01:25:32 localhost kernel: uhci_hcd 0000:00:1d.2: UHCI Host Controller<br>
Mar 26 01:25:32 localhost kernel: uhci_hcd 0000:00:1d.3: UHCI Host Controller<br>Mar 26 01:25:36 localhost avahi-daemon[2319]: Server startup complete. Host name is linux.local. Local service cookie is 1396103600.<br>Mar 27 13:35:16 bogon kernel: ehci_hcd 0000:00:1d.7: EHCI Host Controller<br>
Mar 27 13:35:16 bogon kernel: USB Universal Host Controller Interface driver v3.0<br>Mar 27 13:35:16 bogon kernel: uhci_hcd 0000:00:1d.0: UHCI Host Controller<br>Mar 27 13:35:16 bogon kernel: uhci_hcd 0000:00:1d.1: UHCI Host Controller<br>
Mar 27 13:35:16 bogon kernel: uhci_hcd 0000:00:1d.2: UHCI Host Controller<br>Mar 27 13:35:16 bogon kernel: uhci_hcd 0000:00:1d.3: UHCI Host Controller<br>Mar 27 13:35:22 bogon avahi-daemon[2381]: Server startup complete. Host name is bogon.local. Local service cookie is 2714176635.<br>
[root@bogon log]# grep Host /var/log/messages<br>Mar 31 04:32:20 bogon kernel: ehci_hcd 0000:00:1d.7: EHCI Host Controller<br>Mar 31 04:32:20 bogon kernel: USB Universal Host Controller Interface driver v3.0<br>Mar 31 04:32:20 bogon kernel: uhci_hcd 0000:00:1d.0: UHCI Host Controller<br>
Mar 31 04:32:20 bogon kernel: uhci_hcd 0000:00:1d.1: UHCI Host Controller<br>Mar 31 04:32:20 bogon kernel: uhci_hcd 0000:00:1d.2: UHCI Host Controller<br>Mar 31 04:32:20 bogon kernel: uhci_hcd 0000:00:1d.3: UHCI Host Controller<br>
Mar 31 04:32:25 bogon avahi-daemon[2339]: Server startup complete. Host name is bogon.local. Local service cookie is 4272874820.<br><br>Running
tail /etc/rc.d/rc.local gives me identical results to your sample.<br><br>Thank you very much for your suggestions. Not clear on the meaning of the output from messages....The host name should not be derived from the computer hardware/firmware.<br>
<br>Fennix<br>