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. Home
  2. Tips
  3. This article

How to correctly setup hostname & FQDN

01/05/2014 8693Browse 0Like 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

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

kyaky

The man was lazy and left nothing behind

Like
< Previous
Next >

Comments

Cancel reply

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 VTROIS