Quote:
Originally posted by bunnadik
Are you sure you have removed the Knoppix CD? Perhaps you're still booting from it.
Otherwise check /etc/rc.sysinit. That's where the hostname is set at boot. Perhaps
you've got some junk there.
- Peder
|
Hi Peder,
Yes I am sure the Knoppix CD is not causing this. I last had it in the drive over a week ago and have restarted the machine from LILO many times since then.
I have looked at /etc/rc.sysinit and it contains one statement about hostname:
HOSTNAME='/bin/hostname'
If you look at my /bin/hostname file you find what looks like 6 lines of binary data, some error messages, and then what looks like the help option from the hostname command. My problem is I don't know what this file should look like. I have the contents of the /bin/hostname file shown below. Does this look normal or is this file corrupted?
.ELF....................à...4...´.......4. ...(.........4...4...4...à...à..................................................
.................................................................................................... ......7.......Á.......i
...¯.......¯... ...®.......®.......®.......®.......®...... ®......¤®......¨®......¬®... ..°®......´®......¸®.....¼®......À®
....D$.èZüÿÿ.Àt.Æ..¡.¯...ÀuF.|$.#t¿.ÿ.tV.ÿ.uµ.ðèÎþÿÿ.\$.¹@....L$..4$èMüÿÿ.Àu®..$è±üÿÿ.Ä\[^_]Ã..t&..t$.¡ü®..½¾....l$...$èzûÿ
ûÿÿÇ.$#...¸-....D$.èEûÿÿÇ.$#...è.ûÿÿ.U.¸/....D$.....$è.üÿÿ.À.X...ß......¯..¿?...¹...ü.Þó¦t.¿A...¹.....Þó¦.......ö.¼'....ÇE.
...è,ôÿÿéxüÿÿ¡.¯....$è.õÿÿééüÿÿ.U.åWV1öSè....[.Ã3....ì.è óÿÿ...ÿÿÿ...ÿÿÿ)ÂÁú.9Ös..Eð.×ÿ.°.EðF9þrõ.Ä.[^_]Ã.´&....U.åWVSè....
.%s: name too long
.Setting domainname to `%s'
.r.>> %s
.%s: can't open `%s'
.domain.file.fqdn.help.long.short.version.verbose.alias.ip-address.nis.yp.net-tools./usr/share/locale.ypdomainname.dnsdomai
%s
.nisdomainname.%s.getdomainname()=`%s'
.gethostname()=`%s'
.Resolving `%s' ...
.Result: h_name=`%s'
.Result: h_aliases=`%s'
.Result: h_addr_list=`%s'
....%s: you must be root to change the host name
...%s: you must be root to change the domain name
.Usage: hostname [-v] {hostname|-F file} set hostname (from file)
.. domainname [-v] {nisdomain|-F file} set NIS domainname (from file)
.... hostname [-v] [-d|-f|-s|-a|-i|-y|-n] display formatted name
.... hostname [-v] display hostname
. hostname -V|--version|-h|--help print info and exit
. dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y
.... -s, --short short host name
.. -a, --alias alias names
.. -i, --ip-address addresses for the hostname
... -f, --fqdn, --long long host name (FQDN)
.... -d, --domain DNS domain name
.. -y, --yp, --nis NIS/YP domainname
.... -F, --file read hostname or NIS domainname from given file
. This command can read or set the hostname or the NIS domainname. You can
also read the DNS domain or the FQDN (fully qualified domain name).
Unless you are using bind or NIS for host lookups you can change the
FQDN (Fully Qualified Domain Name) and the DNS domain name (which is
part of the FQDN) in the /etc/hosts file.
....%s: You can't change the DNS domain name with this command
.
Unless you are using bind or NIS for host lookups you can change the DNS
..domain name (which is part of the FQDN) in the /etc/hosts file.
............Ú...........d...á...........F...æ...........f...ë...........h...ð...........f...õ....... ....s...û...........V..
...¥...¥...¥...¥...¥...¥...¥...¥...¥...@...............x®..H...d.......$.......ü..............H..... ..<...........
...R........................®......Ø...............$............... ...........þÿÿoÔ...ÿÿÿo....ðÿÿo........................
.......*...:...J...Z...j...z...........ª...º...Ê.........shstrtab..interp..note.ABI-tag..hash..dynsym..dynstr..gnu.version.