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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: How /etc/hosts.allow /etc/hosts.deny and smb.conf play along
    ... strict ruleset in /etc/hosts*? ... ALL: localhost 127.0.1.1 192.168.2.0/32 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Running samba from inetd must work OK as inetd is tcpwrapper friendly. ...
    (Debian-User)
  • Re: Postfix error question
    ... my hosts file and changed my domain in the main.cf to a qualified domain ... localhost.thedomain.com localhost ... mydomain = thedomain.com ... inet_interfaces = $myhostname, localhost ...
    (alt.os.linux)
  • Re: postgresql installation
    ... | so that I could make connections from localhost. ... Skype.com username: m16e.com ... Version: GnuPG v1.4.2 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: CUPS assuming Im the admin instead of prompting for user/pass
    ... Apparently this printer is being shared off another person's computer near by, but it's showing up in this list as if it's been added to my list of printers, and when I click on it to delete it, I'm then being taken to that CUPS server instead of to my own localhost cup server. ... How do I get this other person's shared printer out of my list? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Using Exim4 to send Messages through GMail
    ... "localhost; machinename" to it. ... Santos | Debian Squeeze/Sid mixed system ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)