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.
Is there anyway to setup Linux to act more like Windows, as far as hostnames are concerned? For instance, with a network of Windows PCs, if there is a computer named "blah", you can type "ping blah", and it just works. Similarly, you can access its shares by going to "\\blah". I know this is possible by editing /etc/hosts, but I'm wondering if there's a way to make it automatic like Windows does.
Windows will use a Master Browser to store the browsing list, and has updated from Win2000 onwards with a "WINS" server, or via dns with Active Directory
The Lisa daemons in Linux read either/both of these services and can make them available for browsing.
So is this more or less only possible within a Samba framework? That is, does it only work when I'm sharing files?
Right now, from Linux, I can connect to smb://windows. However, I can't 'ping windows'. Also, from windows, I can't connec to \\linux and 'ping linux' doesn't work.
Sorry if these are stupid questions, but I'm still very much new to this.
The important aspect is how your pc picks up the dns info from either a WINS server or an Active Directory server.
Active Directory updates a dns server, so you would need to select that dns server first, which is decided by the order of dns servers in /etc/resolv.conf
WINS makes info available by browsing, eg using the smbtree command, or nmblookup. You can select to browse this first by changing your /etc/nsswitch.conf file to show wins first in the "hosts:" list. eg
hosts: wins files dns
A good combination is a WINS server and a dhcp server. When pc's boot, they are given an ip number, a name and a dns entry, and told to use a WINS server. You could then find them by using that dns server.
To access shares on the Linux box, you will need samba to be running; nmbd to give a name, and smbd to give shares
Last edited by peter_robb; 06-21-2005 at 06:42 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.