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 attend a University where all the buildings are in different subnets. I have two linux fedora core 4 servers, one called 'ocug' and one called 'polo'. polo is my file server, and ocug is my icecast server.
As it is now, for some reason, when polo boots up, I guess it registers its name with active directory when it does dhcp. whereas, ocug doesnt do that. ocug and polo both run samba and have their NetBIOS names set. So anywhere in my building I can hit ocug by hostname, but I cant once I leave the building, like I can with polo.
According to all my research, I should just be able to type 'hostname ocug' and it will work, but that doesnt do the trick.
Over the summer, I wrote my whole ocug website in PHP, so it is necessary that the hostname registers all through campus, so that when the DJ's start doing their shows, people in all the dorms can listen.
The Linux hostname is usually set during the boot process. Most DHCP implementations don't change it when they get an IP lease. The DHCP server _may_ register the name with a DNS server.
It sounds like the problem is with name to IP address translation. You'll need to find out how this is set up on each subnet: /etc/hosts files or DNS.
Assuming DNS, things probalby work within a subnet because the machines use a default network name, the local subnet, and silently add it to the hostname when looking for the information. This will not work from another subnet as it will append a different network name. So, for "pure" (linux) IP, make sure to use the "fully qualified domain name" (fqdn) for the server, e.g. ocug.whatever.edu and polo.otherplace.edu.
For the NetBIOS stuff, it's all different. The "last resort" for name translation is a broadcast message that will not be allowed out of the local subnet, so you will only "see" local machines. I'm not sure what the solution is for this. Try using the fqdn for NetBIOS. If that doesn't work, you may need to check in to WINS name resolution in Samba.
Here on campus, when a windows PC turns on, its name is then registered somewhere so that everyone on campus can see that computer by computer name, not just by IP. Is this what a WINS server does? On my windows XP PC, if I do an 'ipconfig /all' it returns a primary and secondary wins server, does this have anything to do with anything? is there a way I can setup my linux machine to register its name their? And if I could, then will it work for all the computers on campus?
My University is all done with Windows servers. The only Linux server is in the Computer Science building for the computer science majors to play with. So I imagine all the DHCP servers run Windows Server OS too.
I believe Windows servers run a combined DHCP and DNS service. On boot, each machine will ask for an IP lease using the configured machine name. The server takes care of making that name available using DNS and WINS to support IP and NetBIOS name handling.
For Windows clients, the DNS and WINS names are the same, but they could be differnet for Samba on linux. The Linux host name is set in /etc/sysconfig/network and the WINS name in /etc/samba/smb.conf. Just set them the same.
Samba on Linux can be configured to operate just like a Windows NT4 server, WINS name registration, the works. Check the configuration of Samba on each machine, particularly:
[global]
netbios name
workgroup
wins support
security
Check the "Samba-3 by Example" document included in the Samba package for configuration examples.
OK, Thanks! Sorry about the lag in responce, but it all worked out. My WINS server line was commented out. I just uncommented it and added our WINS server IP, and now it works great! Thanks for the help. I bet its still not listed on Active Directory, but the machines can now hit it by its name, which is all I really care about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.