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
28
votes
3 answers

How can I send visitors to the closest server using DNS?

Is there a way to localize dns entries? Meaning, that users from asia resolve mydomain.com to another ip than users from usa or europe. This would be helpful to give the users the server nearby. DNS is the only technique used so far, meaning I…
kcode
  • 1,825
  • 4
  • 19
  • 21
26
votes
2 answers

How do I rename a Linux host without needing to reboot for the rename to take effect?

I searched for an answer to this question on serverfault and could not find it. I know it is possible, but I can't remember how to do it. How do I change a Linux host's hostname and get that change to take effect without a reboot? I am using Ubuntu…
26
votes
8 answers

How do I change Exim4's primary_hostname on a Debian box?

Some remote SMTP server I am trying to deliver mail to refuses to accept the HELO from my server: 504 5.5.2 : Helo command rejected: need fully-qualified hostname Apparently, my Exim4 server sends localhost as its FQDN. Searching the…
Jørn Schou-Rode
  • 720
  • 1
  • 6
  • 12
23
votes
3 answers

Apache proxy_http redirect to ip and set hostname

hopefully you guys can help me with a proxy problem I have. What I already have I have set up an apache http reverse proxy, to proxy requests from *.proxy.domain to *.intern.domain. The apache is the only way to reach my internal webapplications…
mohrphium
  • 645
  • 2
  • 9
  • 17
22
votes
1 answer

How can this tool find out registered domains from an IP address?

This is one that I've never really known how to do, and it's been nagging me from time to time for years. I've read all I could find, including all the answers here. None of them gives a real answer to the question. So please read carefully before…
Neithan Max
  • 333
  • 2
  • 9
19
votes
3 answers

How to set the hostname for a Debian Jessie system?

Debian Jessie comes with systemd. The recommendation to set the hostname is using hostnamectl for systemd. However, this command does not work (even to display the current hostname) on the Debian Jessie image booted on EC2: sudo hostnamectl sudo:…
donatello
  • 746
  • 1
  • 9
  • 16
19
votes
17 answers

What are the most manageable and interesting server naming schemes being used?

I am curious to see what schemes are being used when naming servers...
James Moore
  • 1,247
  • 3
  • 17
  • 23
19
votes
1 answer

May I set multiple names in /etc/hostname?

My server is meant to have one name in the datacenter ISP's domain and another in our company domain. How do I set this up correctly? Can I set multiple names in /etc/hostname? (The OS is Ubuntu 10.04 Serer).
Ivan
  • 3,398
  • 19
  • 50
  • 71
18
votes
8 answers

How to get the fully qualified name (FQN) on Unix in a bash script?

I have tested hostname on several servers (RedHat, Ubuntu), and hostname -f has proven unreliable, returning sometime the short name only (as described in this question). I can see the fqn in the aliases: hostname -a (one of the aliases is the fqn I…
VonC
  • 2,683
  • 5
  • 30
  • 49
18
votes
3 answers

On Ubuntu 10.04, should /etc/hostname contain the server's FQDN?

On Ubuntu 10.04, should /etc/hostname contain the server's fully-qualified domain name?
RyanTM
  • 459
  • 2
  • 7
  • 16
18
votes
1 answer

How to divert traffic based on hostname using HAProxy?

I've had some initial success with HAProxy setting up a bunch of app servers listening on various other ports. I now have another webserver listening on one port, and i'd like to what changes to make to my config to flow traffic by hostname as…
Bosky
  • 315
  • 1
  • 3
  • 7
17
votes
10 answers

Easy way to get IP address from hostname using a Unix shell

What is the easiest way to get the IP address from a hostname? I was thinking about trying a ping and parse it from the output. However, that doesn't seem very nice and will probably not work the same way on all systems. I searched a bit around and…
Albert
  • 332
  • 1
  • 2
  • 12
16
votes
5 answers

Making iptables easier to maintain

My network is completely locked down except for a few sites which are whitelisted. This is all done through iptables, which looks something like this: # Allow traffic to google.com iptables -A zone_lan_forward -p tcp -d 1.2.3.0/24 -j ACCEPT iptables…
14
votes
4 answers

Will Active Directory Allow You to Add Two Computers of the Same Name?

I'm hoping someone can confirm my observations because I'm questioning my memory... The title kind of says it all. While working rapidly on deploying a number of similar systems, it appeared that we were able to create systems with the same name and…
Bart Silverstrim
  • 31,172
  • 9
  • 67
  • 87
14
votes
5 answers

Are one-letter host names valid?

RFC-952 (last sentence of point 1 under Assumptions) prohibits single-character host names and I have had experiences (over 7 years ago summer of 2002) where some services would refuse to work with single-character host names (because such names…
Isaac
  • 534
  • 2
  • 11
  • 24
1
2
3
41 42