System hostname and fqdn

Hello everybody.

I have installed Virtualmin on a bare Centos 6 64 server (see attahed file for full system information with obfuscated IP’s and domains) using the install.sh script, all is working well (so far) however I have a few issue which are nagging me, before posting this I looked around the web to see if there were people with similar problems to no avail, I found plenty of information about setting up the hostname (/etc/hosts, /etc/network/interfaces and system-config-network-tui to name a few tries) but I have a strange one:

The Virtualmin System hostname reports the right hostname but the IP is not correct ( it shows 127.0.0.1 in brakets next to it. in the Sytem Information page).

Also hostname returns the full domain name, I have another Virtualmin and a plesk server which only returns the “hostame” not the “full domain name”. However hostname -f returns “localhost” and when I restart httpd I get a warning:

Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using xxx.xxxxxx.com for ServerName

I would like to ask if there are places I need to look at? or re-install virtualmin? The only bobo I made is to “Skip” (there’s a tickbox) the DNS/BIND virtualmin post install setup as this server is not running named at all.

I am currently not too worried as running external tests seems to return correct information regarding http/smtp/ptr/dns etc. However, as this machine will become a live production system. I don’t wish to spend hours on it only to discover that I should have done something different.
I can always ask the DC to re-image it if required,

Therefore any insights would be greatly appreciated :wink:

Gilbert.

Howdy,

Whatever output you receive when you run “hostname” – is that name listed in /etc/hosts, with your public IP address?

-Eric

Yes. hostname returning dedi.xxxxx.com
/etc/hosts contains:

127.0.0.1 localhost dedi.xxxxx.com localhost4 localhost4.localdomain4

::1 localhost dedi.xxxxx.com localhost6 localhost6.localdomain6

xxx.xxx.xxx.xxx dedi.xxxxx.com dedi

BTW, did my attachment work? I am unable to see any on this post.