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.
I have a Linksys WRT54G router. This router also functions as a DHCP server for following machines:
1) Windows 2000 server "SERVER"
2) Windows XP/SUSE 9.3 dual boot "TOWER" (same name in both OS's)
3) Debian 3.1 "LAPTOP"
4) Windows XP "KIDS"
The router's DHCP clients table lists all four, except the Debian entry does not show the hostname. I ran "hostname LAPTOP", I also put "hostname LAPTOP" in the eth0 listing in /etc/network/interfaces. To make sure the "TOWER" listing was also coming from SUSE 9.3, I deleted that entry from the DHCP clients table. The entry was restored when I booted into SUSE.
This client table also performs name resolution on the local LAN.
I've searched this and other forums, googled, I've not been able to find a resolution to this issue. Anyone have an idea how to fix this without ditching DHCP and using static IP and hosts files?
Debian's default DHCP client [dhclient] does not support the hostname option. Try installing dhcpcd, which will automatically remove dhclient and be used in its place.
Code:
apt-get install dhcpcd
Edit: Yes, dhcpcd does support the hostname option. Sorry, didn't make that very clear.
Last edited by mpeg4codec; 07-20-2005 at 12:41 PM.
Especially gratifying since I'm trying to configure this machine 100% GUI-less. Not even X installed.
OK, now I've got another issue.
The Linux machines cannot resolve the hostnames. From any of the Windows machines I can ping 'hostname' or telnet 'hostname', the names resolve without issue, even if the IP address changes.
Is my thinking correct in that this is related to the Windows setting "Enable NetBIOS over TCP/IP"? Is Samba involved in getting this operational on the Linux side? I've been Googling and RTFM'ing and I can't find a definitive answer.
Damn, I typed up a whole reply, previewed it, and forgot to hit post.. Anyway..
Basically, if I remember correctly, you need to run the winbind daemon and modify your /etc/nsswitch.conf. To install winbind, run apt-get install winbind. Once that is done, change the hosts line in /etc/nsswitch.conf to read:
hosts: files dns wins
Contrary to what it may seem, you don't have to run a WINS server to get name resolution going. However, running one could not possibly hurt at all. In fact, I recommend it for any network with more than just three or four computers.
I'm not surprised you haven't found this one, it's almost completely undocumented. And you're welcome. If you need anything, you can always PM me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.