LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   hostname does not return FQDN (https://www.linuxquestions.org/questions/linux-software-2/hostname-does-not-return-fqdn-800735/)

Mufasa 04-08-2010 02:45 AM

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

mario.almeida 04-08-2010 03:27 AM

Hi,

vi /etc/hosts

system_ip zazu.pridelands.com zazu

jefro 04-08-2010 04:01 PM

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.


All times are GMT -5. The time now is 09:54 PM.