A hostname is the label given to a device connected to a computer network.

learn more… | top users | synonyms

1
vote
1answer
20 views

ssh_config: Add a host section that matches IPs even when connecting via hostname

I want a host section in my ssh config that matches any local IP: Host 10.* 192.168.*.* 172.31.* 172.30.* 172.2?.* 172.1?.* setting setting ... This works as long as I connect directly to a ...
0
votes
1answer
27 views

Why doesn't 'sudo' skip hostname-checking when the command can be run on 'ALL' hosts?

The sudoers file provides a way to limit which "runas" entries apply to which hosts. When running a command with sudo, the hostname is checked against the hosts on which a "runas" entry applies. When ...
0
votes
1answer
27 views

CentOS 6.7: 'No address associated with name' as 'hostname --fqdn' output

please, before read this question, I would pray you to consider that I'm a Linux newbie and that I really need a help. I apologize in advance if the question will be trivial or stupid, I will search ...
5
votes
3answers
2k views

How to get the computer name (not its hostname)?

All the results of my searches end up having something to do with hostname or uname -n. I looked up the manual for both, looking for sneaky options, but no luck. I am trying to find an equivalent of ...
1
vote
1answer
49 views

Telnetting the local port working but trying with ip not working

My question is similar but opposite to to Telnetting the Local port not working but trying the ip working For me, telnet to the local port works but trying with IP does not work :( I am running ...
3
votes
1answer
94 views

What is the best way to keep a Linux server's hostname consistent?

We have a server with a CentOS distribution of Linux. It lost its hostname in the month somehow, since our last reboot. We ran an ETL (extract, transform, load) job last week, and part of that ...
0
votes
1answer
47 views

Browse by hostname from internet browser

I can browse my server site using ip:8080 which is inside my home network.But I am not able to browse using hostname:8080 I do not have dns server. I have edited /etc/hosts file to include ...
0
votes
1answer
16 views

set up pfctl to forbid local applications accessing a specific hostname

I am an OSX user, and I want to ban some hostnames, with which some local applications may do nasty things. pfctl is the default firewall on OSX 10.11 El captain. So, how to block the specific ...
14
votes
2answers
811 views

Host name changed remotely by wifi?

Am am currently visiting TU Wien and today I connected my Debian Linux laptop to their eduroam wlan using wpa_supplicant and the credentials of my home institute - as always when I am visiting another ...
1
vote
1answer
365 views

How to set the fully qualified hostname on CentOS 7.0?

How do I set the fully qualified hostname on CentOS 7.0? I have seen a few posts online for example using: $ sudo hostnamectl set-hostname nodename.domainname However, running domainname returns ...
1
vote
0answers
35 views

Changing hostname disturbs the system and DE's like KDE, Gnome, etc… What can I do to allow it anyway?

Long time ago I started to develop some kind of stealthmode-demon in c++. Part of this is to be only run as root and another part of it is, to change the hostname to a randomn generated one. I ...
1
vote
2answers
95 views

What's the use for the special ipv6 addresses in /etc/hosts?

I have the following block in my /etc/hosts: # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ...
0
votes
2answers
42 views

How to change ThisName@HostName ~ $

I am quite new to Linux and I was wondering how to change the following when in terminal permanently. When I set up my computer I used a name that I now want to change: In terminal, the name I want ...
0
votes
1answer
22 views

Local hostname not displayed by script at boot

I have written a very simple bash-code which is trying to send the local hostname of the system to a php-page, basically using: curl mypage.com/?hostname=$HOSTNAME When I run this bash file "per ...
-2
votes
1answer
41 views

Script To Update Multiple Hostnames

Needing a script to read row by row, then ssh into the machine and update the hostname of the machine, then exit and continue with the next row. We have a cvs file that contains the previous hostname ...
0
votes
1answer
18 views

How to change hostname of a SLES11 Server

How do I change and check the hostname of a SLES11 based system?
1
vote
3answers
430 views

Avoid overwriting of hostname by transient hostname at reboot

My server is CentOS 7.1. After reboot the hostname is overwritten by the transient hostname (mail) and I can't find a way to avoid that. Maybe AutoDNS and the MX record mail causes that? ...
0
votes
1answer
72 views

how to setup VPS domain registered via different service?

I have a domain that was registered with network solutions and my vps is hosted via hostWinds. I got a cheap/budget VPS because I'm a developer by trade and would rather know how to set all this ...
0
votes
0answers
213 views

CentOS DNS Server for localhost

I need install the DNS Server (BIND - CentOS 7) to work only locally. I mean, the same CentOS that has the BIND will connect/search in the DNS, any other host will 'connect' with this machine. The ...
1
vote
3answers
291 views

How to resolve hostnames with Raspbian 5/5/2015?

I'm relatively new to Linux and falling down the tree and hitting every branch on the way down (it seems). I'm trying to share an NTFS drive, or a directory on the drive, via samba, and I have found ...
2
votes
3answers
731 views

How to show the host name in Linux commandline prompt

I have several VMs and right now my command-line prompt looks like -bash-3.2$; identical on every VM, because it doesn't contain the host name. I need to always see which VM I'm on using hostname ...
8
votes
1answer
117 views

Why does sudo need the loopback interface?

We were trying to install our software on an Ubuntu machine. To do so, we needed root privileges. Basically, all we needed to do was run a runnable jar like: sudo java -jar runnableJar.jar. All such ...
1
vote
1answer
359 views

service start: HOSTNAME: command not found

Whenever i try to start a daemon service with the service name start I get the following error: /etc/sysconfig/network: line 3: HOSTNAME: command not found MySQL Daemon failed to start. Starting ...
1
vote
2answers
73 views

Setting a domain name in LAN

I am developing a web page using Apache Web Server in my pc. When I want to open it in the browser I use the ip, for example: http://192.168.1.6/proyect My host is part of a local network (a laptop ...
1
vote
1answer
179 views

Alias name for ip address [closed]

I have a website which is hosted in local Server (CentOS 5.x) (Hostname: xxx.yyy.local, IP : 192.168.5.25). I can browse the site typing the server IP address in the browser from my Local Network e.g: ...
1
vote
1answer
72 views

any option to ignore a dns server ip from /etc/resolv.conf when doing nslookup?

We have a list of dns server IPs in /etc/resolv.conf. When doing nslookup for a particular scenario we would like to ingore the second entry below, so that naming resolution occurs via other 3 DNS ...
0
votes
2answers
564 views

CentOS 6.5 hostname on VPS

I'm trying to change the hostname on my fresh CentOS 6.5 image (VPS) via SSH. The sources I've found all say the hostname can be permanently changed in /etc/sysconfig/network and /etc/hosts, and that ...
0
votes
1answer
42 views

Solaris 11 hostname

I'm new with Solaris. I cloned a Solaris 11 machine and now I'm trying to change it so that it gets the hostname and DNS name from a DHCP client. I tried following the instructions here: ...
0
votes
1answer
15 views

How do I assign hostnames for machines on my network?

I'm using Terminal on a Mac running OS X Yosemite. Wondering how I can assign hostnames so that I can run telnet instead of using the ip address.
1
vote
3answers
203 views

How to change bash prompt string in current bash session? [duplicate]

I have a following bash prompt string: root@LAB-VM-host:~# echo "$PS1" ${debian_chroot:+($debian_chroot)}\u@\h:\w\$ root@LAB-VM-host:~# hostname LAB-VM-host root@LAB-VM-host:~# Now if I change ...
2
votes
2answers
224 views

Changing hostname reboot reverts back to original

So, What I'm trying to do is simply change the hostname permanently. I can update the hostname but when a reboot is issued the original hostname is used! I'm aware there is a file hostname located ...
0
votes
0answers
26 views

Pidora not reachable through hostname

I'm stuck on the following: I've got a Raspberry Pi with Fedora installed on it, a router, and a Fedora 21 box. ---Router--- | | pidora fedora The router doesn't know the hostname of ...
2
votes
2answers
252 views

uname -n vs hostname

What is the difference between uname -n and hostname? Are there any real differences in what they return? Are there any differences in availability on different OSes? Is one of them included in POSIX ...
2
votes
2answers
106 views

Increasing Productivity When SSH into Multiple Hosts [duplicate]

I work in operations and need to be able to log into multiple servers among a few hundred servers in a productive way. What I mean by productive is this: from the time from when someone asks me to ...
2
votes
2answers
197 views

Use a dynamically obtained hostname with an ssh config entry

Our accounts in our lab are all mounted over NFS and are accessible over all the systems in a subnet. So, effectively we can ssh into any of the machines in the subnet and continue our work. The ...
2
votes
0answers
179 views

How to update ip in hosts file automatically from a VirtualBox guest?

I have a VirtualBox guest running Debian with Bridged Adapter. The host is running on Windows 8. I would like to connect from the host to the guest through a specific port. I came up with the ...
4
votes
2answers
129 views

Persistent Bash Prompt Prefix Linux

I want to have the FQDN as bash prefix instead of just using the hostname. So I can change root@web: ~$ to root@web.domain.tld: ~$ I already know that that is possible by using: ...
0
votes
0answers
198 views

how do I set a hostname in yast?

how do I set the hostname, FQDN, in yast? I ran yast => network devices => network services => hostname/DNS: YaST2 - lan @ arrakis Network Settings ...
0
votes
1answer
585 views

Problem with routing tables network interface in Centos 6.6

I've problem with the routing tables, I've 2 network interface. (2 interfaces with 2 difference network address IP address: 112.xxx.xxx.xxx: static IP and 10.xxx.xxx.xxx local IP) 1: IP address is: ...
5
votes
1answer
2k views

Shell command/script to see if a host is alive?

I'm trying to figure out more ways to see if a given host is up, solely using shell commands (primarily bash). Ideally, it would be able to work with both hostnames and IP addresses. Right now the ...
1
vote
1answer
2k views

Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

When i start apache service in my debian 7.8 with the command : root@debian:/home/debian# service apache2 start [....] Starting web server: apache2apache2: Could not reliably determine the ...
0
votes
2answers
2k views

Display hostname in ping output

When I ping my Linux server (running in a VM on my Windows7 host) with the following command: ping -a 192.168.56.*** I get the results shown below. Why isn't it resolving my server's name? ...
0
votes
1answer
171 views

Resolve Host's IP on VM

I have kind of tricky situation. I have monitoring tool where all my hosts and their VM's (with IP's and so on) are listed. But what I need is to resolve on which host(need it's ip or hostname) this ...
-1
votes
1answer
111 views

How to change hostname on Linux and make it appear on a network? [duplicate]

First, what is the correct way to change the hostname in Linux ? I followed some steps on the internet and sometimes it does not take effect. Besides, the new hostname does not appear when I ping my ...
0
votes
1answer
447 views

what is the value for setting a hostname in installation of oracle enterprise linux r6u5 should have?

I am installing oracle linux r6u5 for my personal use in vmware workstation. While going through installatio i came to a point where I have to enter hostname, format specified init is ...
1
vote
1answer
346 views

Set hostname without root, and without CAP_SYS_ADMIN

I have an application that I want to be able to change the hostname in Linux. Currently doing so by running the hostname command. I don't want to set CAP_SYS_ADMIN either. I also don't want to edit ...
1
vote
2answers
405 views

Understand hostname and /etc/hosts

In /etc/hostname, I have myname. In /etc/hosts, I have : 127.0.0.1 localhost.localdomain localhost myname ::1 localhost.localdomain localhost myname I have a vague understanding of what ...
3
votes
1answer
546 views

why are there different formats for the hosts file between OpenSuSE and Ubuntu?

How is 127.0.0.1 related to 127.0.0.2? Using ssh to login to tleilax (OpenSuSE): tleilax:~ # tleilax:~ # hostname tleilax tleilax:~ # tleilax:~ # hostname -f tleilax.bounceme.net tleilax:~ # ...
-2
votes
4answers
149 views

How to update the hostname for a computer

On my Lubuntu machine (14.04 LTS), I booted an Arch disk, to have a look around, and now my hostname on my Lubuntu box is stuck as archiso. My hostname is set to what I want it to be, but I can't ssh ...
2
votes
1answer
757 views

Changing the hostname on a Linux Mint desktop to a random value at boot time

When changing the hostname to a random set of alphanumeric characters on a machine running Linux Mint(17.1 Rebecca, Cinnamon 64-bit) I encounter some problems. The following script changes the ...