I have a virtual server running Debian Squeeze. I can change the hostname by running the hostname new.host.name command or by editing /etc/hostname and then running /etc/init.d/hostname.sh, but after a reboot the hostname will be reset to the preconfigured hostname chosen by the server-hoster.
Before the switch to systemd, I was able to ssh between my two machines via user@hostname but now I get a "could not resolve hostname" error and have to use the IP address instead.
I recently began having issues with my Arch box not allowing connections based on hostname. Not sure whats going on I can SSH into the box, view the webserver, ftp, etc assuming I am using the IP address. If I use the hostname, nothing works.I can nslookup from a Windows machine and see the IP is resolved..
I've already tried changing the hostname by editing both:
/etc/hostname
/etc/hosts
However when I try to use sudo it doesn't work. I have to restart the computer to make sudo work again.
The problem is that I fail to SSH to remote machine via hostname(while IP does)
The hostname return by command hostname is : california_desert
While the name returned by command nslookup $IP_address is: pcpp3238782
They did not match each other.
I think that's why I cannot connect to remote machine via hostname.
Checked with /etc/hosts;/etc/hostname; /etc/sysconfig/network; all set hostname t
I'm making some large-scale system hostname changes and this got me thinking...
I used hostname NEWHOSTNAME and set a new hostname. Then I restarted, and tried accessing the internet and nothing happened.
Hi all,
I am trying to exchange hostname and IP address of two AIX machines.
But i am confused as how to change it ?
do i need to use "smitty mktcpip" or "smitty tcpip" ?
what is the difference between smitty mktcpip and smitty tcpip ?
Also anymore steps to follow or just updating using smitty is enough (hoping that no reboot is required)
Also below is the proce
I have several Amazon EC2 servers and I'm using Chef to manage the configuration. I'd like to set the hostname so that the default bash prompt is more helpful.
Right now after launching a new server it's just set as:
root@ip-10-123-123-123
Since I'm using Ubuntu 12 on these boxes I consulted the corresponding man page for hostname.