1
vote
2answers
27 views

how to scp to host connected on a wifi?

I have my MAC on a wifi and am connected via ssh to a linux host. I want to copy some files from the linux host over to my MAC. I know, I can simply run scp on the mac to fetch each file via mac> ...
3
votes
1answer
72 views

Spoofing or removing DHCP client hostname in response to DHCP server

In linux, when my machine requests an IP address it also sends the hostname back to the DHCP server. How can I stop my machine from sending back this hostname? I use dhclient, possibly via ...
2
votes
1answer
320 views

rsyslog using short hostname

I'm using CentOS 6.5 and rsyslogd: Name : rsyslog Arch : x86_64 Version : 5.8.10 Release : 8.el6 In rsyslog.d's conf file I have: $PreserveFQDN on and ...
1
vote
1answer
629 views

One ubuntu machine in LAN cannot access internet

I have 4 ubuntu machines connected in a LAN network by a single switch.Their IP address is from 192.168.10.10-192.168.10.13.But after I restarted one of them since disk problem,I find that this ...
1
vote
0answers
77 views

Value of /proc/sys/kernel/hostname

I've set computer hostname in /etc/hostname a while ago (also there are record in /etc/hosts). Everything worked fine, but recently I've noticed that value of hostname (and /proc/sys/kernel/hostname) ...
1
vote
2answers
192 views

Prevent dhcpcd from setting hostname

How to prevent dhcpcd from setting hostname got from server? Change of it breaks a lot of things (including X session). My current distribution is Gentoo, init system is systemd and dhcpcd is spawn ...
2
votes
1answer
37 views

Viewing hostnames in network

Is there Linux command equal to Net View in Windows, that shows hostnames in your network? I am in a VPN network and want to see computer names in my network.
7
votes
3answers
2k views

“Unable to resolve hostname” - how to cleanly change hostname without rebooting

At work, I work on a small website using Ubuntu servers hosted on Amazon EC2 instances. We have two webservers, and at any given time one of them is 'live' and one is 'testing', but when we've got our ...
7
votes
2answers
891 views

What are the ramifications of setting the hostname?

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 ...
2
votes
1answer
485 views

Fail to ssh to remote machine via hostname

The problem is that I fail to SSH to a remote machine via its hostname, while using its IP works. The hostname returned by command hostname is: california_desert while the name returned by command ...
5
votes
1answer
429 views

Is there any way to access a hostname containing an underscore?

I have this weird problem. I need to access a website that contains an underscore from Linux. The hostname is invalid and Linux does treat it as such. The problem is that access from Windows seems to ...
1
vote
3answers
377 views

I changed my hostname, rebooted and lost internet connection

I set a new hostname on my machine using: sudo hostname NEWHOSTNAME Then I restarted, and tried accessing the internet and nothing happened. I checked the hostname and it was set to ...
0
votes
1answer
455 views

How to set name to localhost in fedora15?

I want to set name to my localhost.for example I want mysite.com instead of localhost/mysite how to do that? I have searched but couldn't get a solution for Linux.
11
votes
2answers
25k views

How to change the hostname of a linux machine using terminal?

I logged in for the first time, opened terminal, and typed in ‘hostname’. It returned ‘localhost.localdomain.com’. Then I logged as the root user in terminal using the command, ‘su –‘, provided the ...
4
votes
2answers
778 views

Why is my hostname different in Emacs?

So I changed the name of my computer recently, by editing /etc/hostname. The bash prompt is user@name, so I know it has worked. But in emacs, in the window bar it says emacs@name.tiscali.co.uk. ...
4
votes
2answers
5k views

What is sendmail referring to here?

When I install sendmail from the debian repos, I get the following output: Disabling HOST statistics file(/var/lib/sendmail/host_status). Creating /etc/mail/sendmail.cf... Creating ...