Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 )
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.
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.
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'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.