LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-20-2005, 02:07 PM   #1
douceur
LQ Newbie
 
Registered: Sep 2004
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
Automatic Hostname Resolution


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.
 
Old 06-20-2005, 04:47 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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.

See http://us3.samba.org/samba/docs/man/...kBrowsing.html for samba browsing support..
 
Old 06-21-2005, 01:56 AM   #3
douceur
LQ Newbie
 
Registered: Sep 2004
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 06-21-2005, 05:50 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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 07:42 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
hostname resolution problems. FLOODS Fedora 4 10-27-2005 08:58 PM
Good distro with automatic dependency resolution morrolan Linux - General 3 09-27-2004 05:21 AM
problem in hostname resolution anupverma Linux - Newbie 5 05-18-2004 01:27 PM
Hostname resolution not working akela Linux - Networking 0 06-07-2003 02:17 PM
Automatic hostname in Redhat 9 twood Linux - Networking 3 06-05-2003 05:03 PM

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

All times are GMT -5. The time now is 06:49 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