Linux terminal showing hostname dhcppc4 that i never configured.
On CentOS (5.x) I have a VPS that has hostname set to "olddomain.com", at least this is the domain I am getting when typing "hostname" command.
I want to change it to 'localhost.localdomain' because I think it is more generic and reliable.
localhost.localdomain already exists in these files: /etc/sysconfig/network AND /etc/hosts
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
G
So, I've tried to use this: http://www.ejabberd.im/migrate-host and successfully converted nodes.
My old node was "ejabberd@server" and current node maybe "ejabberd@VPS7074.saverabbits.com".
Here is my hostname:
[root@VPS7074 tmp]# hostname
VPS7074.saverabbits.com
Here is my hosts:
[root@VPS7074 tmp]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
When I use netstat command it shows..
tcp 0 0 localhost:18056 localhost:mysql TIME_WAIT
tcp 0 0 localhost:16683 localhost:mysql TIME_WAIT
tcp 0 0 localhost:16701 localhost:mysql TIME_WAIT
tcp 0 0 localhost:16888 localhost:mysql TIME_WAIT
tcp 0
Thanks, moetunes! My /etc/hostname has already been set to mybox .## /etc/hosts: static lookup table for host names##<ip-address> <hostname.domain.org> <hostname>127.0.0.1 localhost.localdomain localhost# End of fileThis should be correct. Unfortunately, the problem is still there. Could /etc/hosts be innocent, after all?
Instead of127.0.0.1 localhost.localdomain localhost myhost
127.0.0.1 localhost.localdomain skynet
127.0.0.1 skynet.localdomain localhost skynet use127.0.0.1 localhost.localdomain localhost skynet
bohoomil
https://bbs.archlinux.org/profile.php?id=41264
2011-12-03T15:52:52Z
I got a problem with centOS 6.3 64-bit. I want to setup my nameserver with bind here.
Alright, quick question.
When SSHing to a server using the IP, I can also specify a path to use, such as:
git clone ssh://git@127.0.0.1:/home/git/project.git SomeProject
However, when using a hostname, the command thinks the path is part of the host name:
git clone ssh://git@localhost.com:/home/git/project.git SomeProject
Which yields an error about the : before the path
ssh: localhost.
I'm trying to run the X-client xclock from a terminal.