LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2010, 02:45 AM   #1
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
hostname does not return FQDN


Hello all,

When I type in "hostname", the result is locahostname and not localhostname.domainname.

For example, if the hostname is zazu and the domain gateway.2wire.net. I need for "hostname" to return zazu.gateway.2wire.net.

I am using the 2wire router. But - there is a dynamic DNS domain that points to the router.

Advise on how to set the FQDN properly so that "hostname" returns zazu.pridelands.com is appreciated.

TIA
 
Old 04-08-2010, 03:27 AM   #2
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Rep: Reputation: 27
Hi,

vi /etc/hosts

system_ip zazu.pridelands.com zazu
 
Old 04-08-2010, 04:01 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,968

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
You don't own a FQDN. (I am guessing) You may have a dynamic domain name and that is a different deal.

You want to nat the connection between your router if it is running the ddns service application. Otherwise you setup a ddns app on your computer to collect the IP of the router. May have to enable upnp.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname, fqdn, /etc/hosts setup [GOD]Anck Slackware 9 07-20-2010 04:51 PM
Hostname and FQDN jason_m Linux - Server 1 06-24-2009 08:50 PM
Sendmail not using FQDN in HELO even though hostname setting is correct. Jukas Linux - Server 2 04-21-2009 09:39 PM
Postfix,Open web mail Mail Server Hostname /FQDN Porblem farrukhndm Linux - Server 7 02-18-2009 06:35 PM
best pratice for hostname? FQDN vs short? zerobane Linux - Networking 1 02-03-2009 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration