LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2006, 09:45 PM   #1
daiver
Member
 
Registered: Oct 2003
Location: Uruguay
Distribution: PCLinuxOS
Posts: 53

Rep: Reputation: 15
Question user@localhost has changed


Hello. I noticed something weird today as soon as I goot WiFi enabled on my laptop. My user is no longer user@localhost, but user@fw-stby.dedicado.com.uy, which I presume has something to do with my ISP since it's called Dedicado.

Now, this doesn't happen on a wired connection. Does anyone know what caused this?

Im running Intel Pro Set 2200B/G in a Toshiba Satellite M65-SP811. My router is a Motorola WR850G. On this laptop, I'm running PCLinuxOS.

Thanks!
 
Old 02-20-2006, 09:13 AM   #2
daiver
Member
 
Registered: Oct 2003
Location: Uruguay
Distribution: PCLinuxOS
Posts: 53

Original Poster
Rep: Reputation: 15
Anyone? I really don't have a clue of what's going on. =(
 
Old 02-20-2006, 09:17 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
localhost only refers to the 127.0.0.1 lo interface and is not your computers hostname.
Every computer has a localhost which refers to itself. You may wish to download the NAG guide from the www.tldp.org website. ( Linux Network Administers Guide )
 
Old 02-20-2006, 11:11 AM   #4
daiver
Member
 
Registered: Oct 2003
Location: Uruguay
Distribution: PCLinuxOS
Posts: 53

Original Poster
Rep: Reputation: 15
Hi, thanks for the reply. So this is completely normal? If I go wired, I get localhost but if I go wifi, it changes. Ill check out that manual.
 
Old 02-20-2006, 05:02 PM   #5
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Your computer doesn't have a hostname set by default, so the system uses 'localhost' as the hostname. When you connect to your wired network it doesn't set a hostname so nothing changes. When you connect to the wifi network it apparently sets a hostname, which DHCP is allowed to do, at which point the hostname system variable changes and you see that reflected when your prompt uses that variable. It is possible to configure a network connection to not request a hostname, how to set this up depends on what Linux tool you used to set up the connection initially.

Last edited by Darin; 02-20-2006 at 05:07 PM.
 
Old 02-20-2006, 06:16 PM   #6
daiver
Member
 
Registered: Oct 2003
Location: Uruguay
Distribution: PCLinuxOS
Posts: 53

Original Poster
Rep: Reputation: 15
Hi Darin, thanks for the response. I'm connecting to the WiFi network via de PCLOS Control Panel. I set the details once and then I forgot about it, it does it automagically every time I start a session.

Edit: I just looked in there and didn't find an option to not request a hostname.

Last edited by daiver; 02-20-2006 at 06:19 PM.
 
Old 02-21-2006, 01:24 PM   #7
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
I can only guess how PCLinuxOS is set up, but from a basic google for pclinux and hostname I found a mail thread that looks relevant

http://pclinuxonline.com/pipermail/p...er/004610.html
Quote:
For Dhclient:
In file: /etc/dhclient-eth0.conf (or wlan0, or whatever your NIC
device is)

interface "eth0" {
~ send fqdn.fqdn "mydesired.fullyqualified.hostname.com";
~ send fqdn.encoded on;
~ send fqdn.server-update off;
~ send host-name "mydesired.fullyqualified.hostname.com";
~ option host-name "mydesired.fullyqualified.hostname.com";
~ supersede domain-name "list.of.desired.domains.com
another.domain.com and.another.com";
~ prepend domain-name-servers xxx.xxx.xxx.xxx; #(use this if
you want to force a non-standard DNS server)
~ request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name;
~ require subnet-mask, domain-name-servers;
~ script "/sbin/dhclient-script";
If you have two wired network cards, the files will be /etc/dhclient-eth0.conf and /etc/dhclient-eth1.conf, the wireless is most likely /etc/dhclient-wlan0.conf and really the only relevant option you need is the option host-name one. They expect a FQDN like 'mybox.mydomain.com' but it's probably safe to just put a single name in there, or even 'localhost.localdomain'
 
  


Reply



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
[user@localhost user]$ md5sum 'filename Maxmore Linux - Newbie 1 06-07-2004 04:15 AM
running scripts as changed user rammya Linux - Software 2 04-07-2004 11:42 PM
localhost.localdomain changed it, now can't boot AndyVX Linux - Networking 1 03-29-2004 04:19 PM
How can user names be changed? petercool LQ Suggestions & Feedback 4 05-19-2003 08:59 AM
Check if user has changed PW fenriswolf Linux - Security 3 04-29-2003 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:23 AM.

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