VPSMATE

  • HOME
  • NEWS
  • VPS
  • DEDICATED
  • ARCHIVES
  • GoDaddy
  • SCRIPT
  • TOOLS
    • Traceroute
    • Benchmark
    • Useful Sites
  • Themes
  • GFW
VPSMATE
VPS COUPON & PROMOS | VPS & DEDICATED SERVERS OFFERS | VPS REVIEWS
  1. Main page
  2. Tips
  3. Main content

How to correctly setup hostname & FQDN

01/05/2014 8755hotness 0likes 0comments

A fully qualified domain name (FQDN), sometimes also referred to as an absolute domain name, is a domain name that specifies its exact location in the tree hierarchy of the Domain Name System (DNS) after registering a domain. It specifies all domain levels, including the top-level domain and the root zone. A fully qualified domain name is distinguished by its lack of ambiguity: it can only be interpreted one way.

incorrectly configured FQDN can cause mail server malfunction and many other problems. 

Ubuntu/Debian:

1.you need to edit /etc/hostname

server1

CentOS/Redhat:

1. you need to edit /etc/sysconfig/network

HOSTNAME=server1.domain.com

2. you need to use 'hostname -F' to setup the hostname

-F, --file             read host name or NIS domain name from given file
hostname -F /etc/hostname

3. edit  /etc/hosts to setup FQDN

127.0.0.1 localhost.localdomain localhost
wan_ip server1.anydomain.com server1

 

Related

Tag: FQDN hostname
Last updated:01/07/2017

kyaky

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

Comments

Cancel

This site uses Akismet to reduce spam. Learn how your comment data is processed.

COPYRIGHT © 2021 vpsmate.net. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang