View Full Version : Setting The Hostname
AdykOSu
22nd December 2005, 21:42
cho server1.example.com > /etc/hostname
/bin/hostname -F /etc/hostname as it shows is the how to ..perfect setup! the thing is that i don't understand what it does exactly!:confused:
i replaced server1.example.com with the one i use ( ady.xhost.ro ).
hostname shouldn't be replaced with the nostname name i gave during installation ( e.g.: host1 )?
i followed the 2 stepts and no message replied! is that good or what?
falko
22nd December 2005, 22:36
cho server1.example.com > /etc/hostname
/bin/hostname -F /etc/hostname as it shows is the how to ..perfect setup! the thing is that i don't understand what it does exactly!:confused:
It gives your system a new hostname.
i replaced server1.example.com with the one i use ( ady.xhost.ro ).
That's ok.
hostname shouldn't be replaced with the nostname name i gave during installation ( e.g.: host1 )?
Which installation?
i followed the 2 stepts and no message replied! is that good or what?
That's normal. You can check your new hostname by running hostname or hostname -f
AdykOSu
22nd December 2005, 22:52
Which installation?
That's normal. You can check your new hostname by running hostname or hostname -f
The Perfect Setup - Debian Sarge (3.1) - Page 3 installation.
i ran " hostname " and it worked
i ran " hostname -f " and it replied hostname: hostname lookup failure...why is that? does it need to be connected to the internet to reply a positive answer? :)
thx very much falko! & till! you've helped me so much! thx again!
falko
22nd December 2005, 23:05
What's the output of hostname?
What's in /etc/hosts?
AdykOSu
22nd December 2005, 23:39
What's the output of hostname?
What's in /etc/hosts?
when i run " hostname " the output is upload4me.ws43.com as i intented to be.
when i run " nano hostname " ( i don't know if this is the way i should ).. thers is nothing there ( inside the file? )
in /etc/hosts , suppose using nano /etc/hosts there is : 127.0.01 localhost.localdomain localhost adeekos
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts...allthough i don't know what each mean :confused:
till
23rd December 2005, 09:37
First, the line:
127.0.01 localhost.localdomain localhost adeekos
must be:
127.0.0.1 localhost.localdomain localhost adeekos
Then there should be a line with your hostname and your IP like this:
192.168.0.1 upload4me.ws43.com
You must replace 192.168.0.1 with your server IP.
danf.1979
24th December 2005, 11:13
I have this in /etc/hosts
127.0.0.1 localhost.localdomain localhost alcon
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Would it be correct if I added this line? Change X with corresponding numbers:
200.104.X.X mundohosting.cl
Or would it be necessary to put subdomain.mundohosting.cl ? Note that 200.104.X.X is my public IP.
Many thanks.
till
24th December 2005, 11:30
It should be:
200.104.X.X subdomain.mundohosting.cl
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.