System hostname and fqdn

3 posts / 0 new
Last post
#1 Sat, 02/02/2013 - 15:33

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 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 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 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 ;-)


Mon, 02/04/2013 - 07:59


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


Mon, 02/04/2013 - 11:43 (Reply to #2)

Yes. hostname returning /etc/hosts contains: localhost localhost4 localhost4.localdomain4

::1 localhost localhost6 localhost6.localdomain6 dedi

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

Topic locked