Translations of this page:

Hostname

Informations

For the ispCP installation you need a “fully qualified domain name” (FQDN) which is not a main domain. You can use a Subdomain as Example:

Your Domain is: domain.de
Your FQDN is: srv01.server.domain.de (or something else!)

It's important that you take only one and every Time you have been asked after it you tell this one!

How to Set a new FQDN

Now you have to set you new Hostname at /etc/hostname you can do that with this echo command. After that we will copy the hostname file for the Mailserver as Mailname:

echo your.full.qualified-domain-name.de > /etc/hostname
cp /etc/hostname /etc/mailname

Now edit the /etc/hosts file and correct the Information's:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1	localhost.localdomain localhost
<ip>	        <myfullqualified.de>  <myfullqualified>

# The following lines are desirable for IPv6 capable hosts
#(added automatically by netbase upgrade)
::1     ip6-localhost ip6-loopback
feo0::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Note: You have to Replace <ip> with your IP, <myfullqualified.de> with your FQDN and <myfullqualified> with your Hostname without Domain-TLD(.de)!
Now restart the Hostname Service:

/etc/init.d/hostname.sh stop
/etc/init.d/hostname.sh start
 
howto/hostname.txt · Last modified: 2011/03/03 15:53 by mazenovi
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki