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.
Linux terminal showing hostname dhcppc4 that i never configured.
Hi all, I'm new here, so apologies if this has already been answered, but I have searched with no joy.
We have some debian 5 based machines, which I would like to move from static to dhcp addressing. This is because they will be moved to different locations, where routers may vary etc.
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'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.
@ghen, you are right about this. But when I have seen this fudging things up, it usually ends up the hostname being the comment (in this case #hostname). Do you think that it is actually setting it as a blank line?
WonderWoofy
https://bbs.archlinux.org/profile.php?id=60312
2012-10-20T07:37:51Z
I currently have a router (Netgear WNDR3700 with DD-WRT; let's say its hostname is host1) and all the devices are behind its NAT.
WAN
\
\
host1 (dmz)
<router>———[server]
/ |
/ |
[pc] [laptop]
My ISP is setting static IP addresses with dynamic DHCP and it's determining which IP address should I get by the hostname.
The f
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
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.