Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th June 2006, 23:47
badgerbox76 badgerbox76 is offline
Senior Member
 
Join Date: Feb 2006
Posts: 178
Thanks: 6
Thanked 1 Time in 1 Post
Question Hostname problems Ubuntu 6.06 setup

My host file
192.168.0.105 monitorwaves.no-ip.org admin-server
127.0.0.1 localhost admin-desktop

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes

root@admin-desktop:/home/admin# hostname
admin-desktop
root@admin-desktop:/home/admin# hostname -f
localhost
root@admin-desktop:/home/admin#

It should be coming out as admin-server and then monitorwaves.no-ip.org right?
Reply With Quote
Sponsored Links
  #2  
Old 13th June 2006, 08:59
EvanCarroll EvanCarroll is offline
Junior Member
 
Join Date: Jun 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by badgerbox76
My host file
192.168.0.105 monitorwaves.no-ip.org admin-server
127.0.0.1 localhost admin-desktop

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes

root@admin-desktop:/home/admin# hostname
admin-desktop
root@admin-desktop:/home/admin# hostname -f
localhost
root@admin-desktop:/home/admin#

It should be coming out as admin-server and then monitorwaves.no-ip.org right?
The "hostname" doesn't come from the file "hosts" it comes from the file /etc/hostname, which must resolve to something with the resolver.
So in your case make /etc/hostname read "admin-desktop", and run
Code:
hostname -F /etc/hostname
then your
Code:
hostname -f
will work
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
Perfect Install - Ubuntu 6.06 Dapper Questions Anim HOWTO-Related Questions 123 1st October 2006 14:02
HOWTO The Perfect Setup - Ubuntu 6.06 LTS Server mikeeblau Installation/Configuration 4 12th June 2006 15:08
Ubuntu setup using SSH LuisC-SM HOWTO-Related Questions 9 16th April 2006 17:11
ISPConfig + Perfect Setup Ubuntu 5.10 + Smtp SPAM problems lyndros Installation/Configuration 11 15th April 2006 18:07
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 19:26


All times are GMT +2. The time now is 13:59.


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