Questions tagged [hostname]

Hostname is a label assigned to a device connected to a computer network used to identify the device.

A hostname is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication such as the World Wide Web, e-mail or Usenet. Hostnames may be simple names consisting of a single word or phrase, or they may have appended the name of a DNS domain, separated from the host specific label by a period (dot). In the latter form, a hostname is also called a domain name. If the domain name is completely specified including a top-level domain of the Internet, the hostname is said to be a fully qualified domain name (FQDN).

Hostnames that include DNS domains are often stored in the Domain Name System together with IP addresses of the host they represent for the purpose of mapping the hostname to an address, or the reverse process.

Source: Wikipedia.

624 questions
3
votes
1 answer

Which characters/values are allowed to use in DNS?

While I was looking on RFCs of DNS because of implementation to check underscore in CNAME records, I found this interesting discussion and RFC with interesting point: https://www.ietf.org/mail-archive/web/dnsop/current/msg01449.html RFC 2181 11.…
Matej Ridzon
  • 31
  • 1
  • 2
3
votes
1 answer

IP to access Hyper-V host on Default Switch?

As we know, with Fall Creators update Microsoft added so-called Default Switch, an out-of-the-box type of switch which simplifies networking and combine features of internal and external switches. How we can set up static IP for that switch to…
Suncatcher
  • 594
  • 2
  • 7
  • 22
3
votes
6 answers

Changing displayed hostname in bash prompt based on login credentials

I host several domains on one server. I would like to be able to change the displayed hostname in my bash prompt to indicate which one I picked when ssh'ing into the server. My prompt is as follows: \u@\h This displays as: user@hostname How would…
warren
  • 18,369
  • 23
  • 84
  • 135
3
votes
2 answers

nslookup not resolving hostname

I can't seem to get nslookup to resolve correctly. Here is my hosts file: [root@clc-host ge2011.11]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6…
EHQ
  • 39
  • 1
  • 1
  • 2
3
votes
1 answer

How to set hostname with salt-cloud command

I am using salt-cloud to create new aws instances: salt-cloud -p base_ec2_micro test.mydomain.com However, the instance gets its ip as hostname. What can I do to set the fqdn as hostname? Thanks
Cramix
  • 115
  • 10
3
votes
0 answers

Linux: What is the right way to configure the HOSTNAME directive in /etc/sysconfig/network?

There's a (quiet) argument between me and my boss in regard to the right way to configure HOSTNAME directive in /etc/sysconfig/network file: As far as I know, in the HOSTNAME directive you should specify the machine host name and not fully qualified…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
3
votes
3 answers

Redhat doesn't set my desired hostname on reboot

I have a redhat (EL5) server that I need to change the hostname on. I'm trying to put it back into a known state to help with server provisioning activities. As part of changing the hostname, I'm updating /etc/sysconfig/network and /etc/hosts. I…
tomdee
3
votes
3 answers

How to set hostname if hosting multiple servers on the same machine?

I'm learning about setting up my own web and mail servers, and I've been confused about this question for days, and articles online (including Server Fault) seems to be so inconsistent with their use of the term 'subdomain' and 'hostname'. From my…
dayuloli
  • 1,253
  • 2
  • 11
  • 19
3
votes
1 answer

Name resolution for internal network hostnames

I plan on standardizing host naming conventions and want to setup an "internal" network to allow easy communication between different servers. We purchase servers from multiple different dedicated server providers that aren't physically connected to…
jduncanator
  • 387
  • 1
  • 3
  • 11
3
votes
2 answers

How can I configure myhostname to work with Postfix?

I'm going through the process of setting up a Discourse forum on my server (Ubuntu 12.04 x64) and am getting stuck at the point where I have to configure mailers. I'm following Discourse's instructions and am stuck trying to configure postfix for…
John K. Ferguson
  • 131
  • 1
  • 1
  • 2
3
votes
1 answer

How to set the fqdn on a CentOS server?

I set my hostname in the /etc/sysconfig/network file to host.example.com HOSTNAME=host.example.com Fyi, I then issued a reboot on the machine. I have a problem with Puppet: when I run Facter on this machine, it returns the following information…
mimipc
  • 1,947
  • 3
  • 19
  • 27
3
votes
1 answer

postfix change to address based on sending host

We have one central postfix mailserver and some more application servers behind whereas those servers relaying the mails trough the central mailserver. now i want to configure the central one to rewrite the TO-Field from the original recipient to a…
martinseener
  • 149
  • 11
3
votes
1 answer

NOQUEUE: reject, Helo command rejected: need fully-qualified hostname

i have a problem with my mail server (Postfix, Dovecot and MySQL). I can't recieve emails nor send emails with a script that trys to authentificate to a mail-server user account. I use piwik wich is a script like Google Analytics. I want it to send…
user2284568
  • 31
  • 1
  • 2
  • 5
3
votes
3 answers

SharePoint Multiple Domain Name Best Practice

Simple question - what is the best practice to implement a sharepoint web application that needs to be accessible through two domain names (hostnames, i.e abc123.com and www.abc123.com)? From my experience the options are as follows:- Create a SP…
Russ Giddings
  • 167
  • 2
  • 10
3
votes
1 answer

Does AWS resolve same-datacenter hostnames to 10.* addresses for different customer accounts?

If I bring up two Amazon EC2 instances and run nslookup on one for the other's hostname, amazon will return a 10.* address. This is routable within amazon, and works just fine. But does this work between different accounts? If I use one of my nodes…