#1  
Old 24th July 2006, 19:04
Davide Davide is offline
Senior Member
 
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 7 Times in 6 Posts
Default hostname

Hi

In the following example machine:

machine.domain.com

what should be "hostname", "hostname -d" and "hostname -f" answers on an ispconfig system?

My answers are:

hostname : machine.domain.com
hostname -f: machine
hostname -d: (nothing)

and I suspect this is not correct.

Shouldn't it be

hostname: machine
hostname -f: machine.domain.com?

Thankyou very much
Reply With Quote
Sponsored Links
  #2  
Old 24th July 2006, 22:29
todvard todvard is offline
Member
 
Join Date: Aug 2005
Posts: 85
Thanks: 1
Thanked 6 Times in 5 Posts
Default

hostname -f should be you Fully Qualified Domain Name (fqdn), eg. host.domain.tld.
1st question: which distribution are you using
2. what are the contents of /etc/hosts, /etc/host.conf, /etc/hostname files

the answers should be:
hostname: host.domain.tld
hostname -d: domain.tld
hostname -f: host.domain.tld

T.
Reply With Quote
  #3  
Old 25th July 2006, 00:43
Davide Davide is offline
Senior Member
 
Join Date: Jul 2006
Posts: 123
Thanks: 16
Thanked 7 Times in 6 Posts
 
Default

I reversed order in /etc/hosts, from

x.x.x.x machine machine.domain.com domain.com

to

x.x.x.x machine.domain.com machine domain.com

Everything is working now as you suggests

hostname: machine.domain.com
hostname -f: machine.domain.com
hostname -d: domain.com

Thank you very much
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Once again: question about hostname etc. Ronald HOWTO-Related Questions 1 27th June 2006 12:24
changing hostname mwebb Installation/Configuration 2 6th January 2006 18:03
Question about 'localhost' as Hostname Lil'Brudder Installation/Configuration 2 31st October 2005 09:58
What should hostname be? Lil'Brudder General 2 19th October 2005 10:08
Server Hostname and IPSConfig Lil'Brudder Installation/Configuration 2 14th October 2005 12:46


All times are GMT +2. The time now is 06:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.