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

Who is altering my hostname?



Hello,
I have a virtual server with a Debian etch installed by myself from 
debootstrap. The machine has two IPs assigned:

# ifconfig
venet0    Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  
Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12755 (12.4 KiB)  TX bytes:12216 (11.9 KiB)

venet0:0  Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:84.19.178.252  P-t-P:84.19.178.252  Bcast:0.0.0.0  
Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:1  Link encap:UNSPEC  HWaddr 
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:84.19.179.252  P-t-P:84.19.179.252  Bcast:0.0.0.0  
Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

The interface config I have set in /etc/network/interfaces copied from the 
default installation.
I set the /etc/hostname:

osiris.centershock.net

and /etc/hosts:

84.19.178.252 osiris.centershock.net osiris
84.19.179.252 isis.centershock.net isis
127.0.0.1  localhost localhost.localdomain

The names resolv to this IP and the reverse PTR also to the names. But after a 
reboot the two files have changed somehow:

km22204-07.keymachine.de

and

84.19.178.252 osiris.centershock.net osiris
84.19.179.252 isis.centershock.net isis
127.0.0.1  km22204-07.keymachine.de km22204-07 localhost localhost.localdomain

The /etc/resolv.conf is also altered:

search keymachine.de # This line has been added
nameserver 84.19.178.252
nameserver 84.19.188.171

keymachine is my hoster.

What could this make happen? In /etc/init.d/ there is nothing like a dhcp 
client. I have also removed some packages with dhcp in their names.

Any idea what makes these two files changing and how to avoid it?

Thanks a lot,

Florian



Reply to: