Questions tagged [hostname]

A hostname is a label, or name, that is assigned to a network-connected device and typically used as a human-friendly identifier.

A hostname is a label, or name, that is assigned to a network-connected device and typically used as a human-friendly identifier.

322 questions
123
votes
3 answers

Difference between host name and domain name

What's the difference between Hostname and Domain name? especially in regards to NIC Could someone please elaborate with examples as this concept is a little confusing
rzlines
  • 7,488
  • 17
  • 65
  • 90
90
votes
5 answers

How can I stop Mac OS X overriding my hostname when I receive a DHCP request on Snow Leopard?

Whenever I go on a network where the DHCP server assigns hostnames then it overrides the settings I've set for my hostname on my Mac in the "Sharing" section of System Preferences. How do I stop this behaviour from occurring and always have the same…
Mike McQuaid
  • 4,029
  • 1
  • 24
  • 17
38
votes
7 answers

OSX Terminal showing incorrect hostname

When I open Terminal I expect it to show what my PS1 is set to \h:\W \u\$. However it's not displaying my hostname Eriks-MacBook, as displayed in System Preferences. Instead, it's showing a random string unknownb88d120cd4b2. How can this be fixed…
Erik W
  • 383
  • 1
  • 3
  • 6
38
votes
5 answers

How can I display host name on windows desktop

I do a lot of work on Windows Server 2008 remote desktops and often lose track of which host I am currently logged on to. Is there a way of displaying (without installing any non-standard apps) the host name or IP address of the host I am connected…
Martin
  • 515
  • 1
  • 5
  • 8
35
votes
3 answers

What is a hostname versus a computer name versus a subdomain versus www?

I was searching for understanding what is the “www” at the beginning of so many web addresses in the Internet. I read in somewhere that “www” is called “hostname”. The world “hostname” made me go a step further in searching, I read so many threads…
siamak
  • 471
  • 1
  • 4
  • 8
30
votes
1 answer

Could "user@192.0.2.1" be a valid email address?

I study regex and faced a question: could an email address like username@192.0.2.1 be valid? Sure there is the valid username, but what about domain? Should it be domain name only or is host ip address allowed too? Of course I mean any host address,…
ByteVirtuoso
  • 403
  • 4
  • 7
27
votes
7 answers

How To Resolve IP Addresses To Domain Names?

I know it is possible to resolve IP addresses to host names but can IPs be resolved to domain names?
Boris_yo
  • 5,776
  • 23
  • 73
  • 117
25
votes
4 answers

Can I map a IP address and a port with /etc/hosts?

Can I map an IP address and port to a domain name? For example, I’d like to map 127.0.0.1:8000 to testdev.com My /etc/hosts file has 127.0.0.1 localhost 127.0.0.1:8000 testdev.com So that when I hit testdev.com, it refers 127.0.0.1:8000. I tried…
Tamil
  • 353
  • 1
  • 3
  • 6
24
votes
4 answers

Correct domain name for a home desktop Linux machine

I have several machines running Debian, and during install, I left the domain name field blank. This hasn't affected anything so far, but I'm curious what the correct thing to set that field to is if you don't have a registered web domain and your…
nebuch
  • 305
  • 1
  • 2
  • 11
18
votes
3 answers

RedHat Enterprise Linux 6 - Edit Hostname

I'm currently trying to edit my hostname in a RedHat Enterprise Linux 6 virtual machine but I have some problem. I tried using the function hostname like this: hostname -v bravo.cmweb.com And it works, I call the function and the hostname as been…
Frederick Marcoux
  • 213
  • 1
  • 3
  • 7
17
votes
2 answers

What is a hostname?

I'm setting up a Fedora 15 box in my local network. It's going to have Internet access and share media stuff like photos. In one step of the installation process it asks for "hostname", what could this be? Can it simply be "server" or do I need a…
Jason94
  • 1,185
  • 10
  • 24
  • 36
16
votes
5 answers

Hostname issue in Mac OS X Lion

I've recently bought myself one of the new mid-2011 Mac Minis with OS X Lion, I'm completely new to Mac OS but I've used linux quite a bit before. The problem I'm having is that at the terminal my hostname is displayed as (blanked some of the…
Mikey
  • 501
  • 1
  • 5
  • 12
12
votes
5 answers

Address VMWare Fusion Linux guest by hostname?

I have a Ubuntu Server 9.04 image set up in VMWare Fusion 3.0.0, using the NAT option for the guest's network connection. From the Mac host, I can ssh to the linux guest just fine using it's IP address, but I would like to be able to refer to it by…
amrox
  • 405
  • 2
  • 4
  • 10
12
votes
3 answers

Hostname redirection using Hosts file

We can use C:\WINDOWS\system32\drivers\etc\hosts file to map hostname with IP addresses like this 127.0.0.1 localhost But is it possible to assign one hostname to another like this? localhost a_new_host_name
bdhar
  • 541
  • 2
  • 7
  • 15
11
votes
2 answers

Why does my network set my hostname? How can I stop this?

(I'm using a Mac. It triple boots OS X.8, Gentoo, and Windows 7. I've only noticed the problem in OS X, but that's what I use most of the time so it might be occurring in other OSes.) I've used System Preferences to set my host name to what I want…
Ethan Reesor
  • 233
  • 1
  • 2
  • 7
1
2 3
21 22