LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 10-22-2004, 10:08 AM   #1
LQ Newbie
Registered: Mar 2004
Location: da Big Apple
Distribution: FC3
Posts: 20

Rep: Reputation: 0
hostname on wireless network

howdy all, i posted this in the newb thread but got no replies, so i'm trying you guys now

it's very possible that i don't completely understand what a "hostname" is, but i was surprised to see that my hostname when connected to a wireless network via dhcp is localhost. When connected by wired ethernet, it's the usual, dhcp-number-number-blah Does it even matter? When I'm using matlab, I have to adjust the license file to find the right server, but otherwise it doesn't affect me.

Any thoughts? Thanks...
Old 10-22-2004, 10:51 AM   #2
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
The so called "hostname", eg the name you want your computer to call, is whatever you want it to be.

Physical machines might have zero(normally atleast the loopback) or more network interfaces (NICs, local loopback, PPP or modem connection, etc) and every network interface can have zero or more ip-addressess (generally atleast one) and every ip address has zero or more hostnames, one of them being canonical, other aliases for it.

So the name of your computer is at least "localhost"; every computer (if loopback-interface is not broken) is named as "localhost" and have ip address Your computer might have other names too.
Old 10-25-2004, 12:40 PM   #3
LQ Newbie
Registered: Mar 2004
Location: da Big Apple
Distribution: FC3
Posts: 20

Original Poster
Rep: Reputation: 0
ok, i think i understand now. So in my situation, when the wired interface is loaded, the hostname displayed is reset to be the dynamic hostname/ip address, but when the wireless connection is loaded, the hostname is not. Both however exist (the hostname associated with the wireless ip and the localhost.localdomain loopback).

Assuming my understanding is correct, this brings up another question then- when the wired interface is up, the loopback reference localhost.localdomain doesn't work. For licensing for matlab, I run a license manager on the local machine, and matlab's license file must have the hostname or ip of the license manager in order to start. When I work offline, I change the appropriate line in the license file to localhost.localdomain, but when a network interface is up I have to use the dynamic hostname set by the network. If a physical machine has several hostnames, shouldn't I be able to leave the license file with the line localhost.localdomain and have it work? (it doesn't)

thanks for helping the !

(sorry this has gotten slightly outside the realm of this forum...)

edit: i'm slightly rethinking this a bit... just playing around to see what happened i did a "hostname <myname>" and things broke- hostname was set to <myname>, but then none of the services, etc, could find the right place since <myname> wasn't registered with a naming server.

Last edited by CoonerTheRed; 10-25-2004 at 12:51 PM.


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 for network card, will I need it in this case? GUIPenguin Linux - Networking 1 01-18-2005 07:51 AM
hostname while on a wireless connection CoonerTheRed Linux - Newbie 0 10-15-2004 10:38 AM
Can someone tell me a command to determine the hostname of an IP on the network? brow27 Linux - Newbie 4 05-20-2004 03:28 PM
Network Hostname setting jianandyli2 Linux - Networking 1 09-22-2003 09:33 PM
Get IP by Hostname in Linux Network codecruncher Linux - Networking 7 09-07-2003 11:48 PM

All times are GMT -5. The time now is 07:20 AM.

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