LinuxQuestions.org
Visit Jeremy's Blog.
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 01-01-2004, 11:39 PM   #1
darkfame
Member
 
Registered: Nov 2003
Location: Norway
Distribution: Debian Sarge
Posts: 38

Rep: Reputation: 15
Resolving IP through NetBIOS name


How do you make your clients resolve NetBIOS names before contacting DNS Server?
I've always used nmblookup, but isn't there a way of doing this automatically?
Or maybe my dhcp server is misconfigured?

Here are my netbios settings:

option netbios-node-type 2;
option netbios-name-servers 192.168.0.1;


Thanks in advance
 
Old 01-02-2004, 12:46 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
The system will look in /etc/hosts before contacting dns

put in /etc/hosts

192.168.0.1 name
 
Old 01-02-2004, 01:18 AM   #3
darkfame
Member
 
Registered: Nov 2003
Location: Norway
Distribution: Debian Sarge
Posts: 38

Original Poster
Rep: Reputation: 15
I know, but that's alot of maintenance for each computer.. to update /etc/hosts.

I've done something much better... the DHCP server is dynamically updating the DNS server with hostnames from the clients. It works great.
 
Old 01-02-2004, 02:36 AM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
ok,

Doesn't that not do what you asked?


Normally you will at least have the dhcp server configure the clients with the "search domain" line. That will speed it up a bit if you have that large of a network.

Last edited by DavidPhillips; 01-02-2004 at 02:38 AM.
 
Old 01-02-2004, 10:02 AM   #5
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Start samba up as a wins server and have your machines register with that wins server. Then update you nsswitch file to do host lookups through wins in addition to host and dns.
 
Old 01-02-2004, 11:18 AM   #6
darkfame
Member
 
Registered: Nov 2003
Location: Norway
Distribution: Debian Sarge
Posts: 38

Original Poster
Rep: Reputation: 15
DavidPhillips: Not exactly the same as I wanted, but I think it's even better this way.
I have a search domain configured.

g-rod: I have a samba server acting as wins server, but I didn't know about the nsswitch.conf part. What do you edit/add to this file to make it do wins lookups?

Thanks for all the replies.

Last edited by darkfame; 01-02-2004 at 11:22 AM.
 
Old 01-02-2004, 11:50 AM   #7
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
There should be a file /etc/nsswitch.conf and wins to the end of that line. So long as the machine is running nmbd (Samba name resolution) and it is registering with the wins server it sould do the name lookups. Check to make sure that you have the lib
ls /lib/libnss_wins*
Good luck
 
  


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
NetBIOS names not resolving Xhalman Linux - Networking 0 02-16-2004 02:38 PM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM
netbios yes; dig no; ? odious1 Linux - Networking 2 07-11-2003 09:49 AM
netbios without samba? hotrodowner Linux - Networking 11 03-21-2003 09:10 PM
netbios gargoyle Linux - General 1 06-23-2001 11:28 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration