[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FQDN vs. domain name



Hello,

there are three files on my vps which contain the following data inserted by my provider.

# /etc/hostname
lvps123-123-123-123.dedicated.hosteurope.de

# /etc/hosts
127.0.0.1 localhost localhost.localdomain
123.123.123.123 lvps123-123-123-123.dedicated.hosteurope.de lvps123-123-123-123

# /etc/mailname
lvps123-123-123-123.dedicated.hosteurope.de

First of all I think the /etc/hostname shouldn't contain the FQDN, but instead the hostname, in this case lvps123-123-123-123. I would like to replace all these values with my own domain name (mydomain.com), but I'm not sure if this is okay, because I don't want create subdomain and use it as a hostname (hostname.mydomain.com), so it's not a FQDN.

# /etc/hostname
mydomain

# /etc/hosts
127.0.0.1 localhost localhost.localdomain
123.123.123.123 mydomain.com mydomain

# /etc/mailname
mydomain.com

Is this setup okay, or could it cause problems?

Cheers, Stefan


Reply to: