image
image

Go Back   macosx.com > Mac Help Forums > Networking & Compatibility

Reply
 
LinkBack Thread Tools
  #1  
Old February 15th, 2008, 05:13 PM
Registered User
 
Join Date: Nov 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
deadeyes is on a distinguished road
NetBios Name resolving does not work

Hi all,

I just got my first macbook.

All seems to be working great... except:

When I try to browse to a server in my network with the IP everything works fine. When I use the hostname it cant resolve the name so it fails.
this is very annoying because a shared printer by cups uses its netbios address while this cant resolve.

There is NOTHING wrong with the other systems... they all worked fine.

Does anyone know what I need to change? Or how I can track this down?
Reply With Quote
  #2  
Old June 2nd, 2009, 03:41 PM
Registered User
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
carlitostsu is on a distinguished road
Lightbulb

Quote:
Originally Posted by deadeyes View Post
Hi all,

I just got my first macbook.

All seems to be working great... except:

When I try to browse to a server in my network with the IP everything works fine. When I use the hostname it cant resolve the name so it fails.
this is very annoying because a shared printer by cups uses its netbios address while this cant resolve.

There is NOTHING wrong with the other systems... they all worked fine.

Does anyone know what I need to change? Or how I can track this down?
deadeyes,
Were you able to fix this problem? I'm having a very similar problem.
Please let me know if you were able to.

If not here's a workaround which unfortunately the user in my organization does not want to do.

A workaround is the following:
In Terminal type:
sudo open /etc/hosts
edit the hosts file by typing in the ip address and the name you want to tie it to.

I tried to get the user who is having this problem in our network to do it, but he doesn't want to do it (another user was kind enough to bring their own personal MAC to work so that I cant test this out and it resolved the IP address to the NetBIOS name).
Reply With Quote
  #3  
Old June 2nd, 2009, 03:43 PM
Registered User
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
carlitostsu is on a distinguished road
Also,
A shareware program called hostal can modify your host file if you do not want to do it in Terminal.
Reply With Quote
  #4  
Old June 3rd, 2009, 07:04 AM
Registered User
 
Join Date: Nov 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
deadeyes is on a distinguished road
Quote:
Originally Posted by carlitostsu View Post
deadeyes,
Were you able to fix this problem? I'm having a very similar problem.
Please let me know if you were able to.

If not here's a workaround which unfortunately the user in my organization does not want to do.

A workaround is the following:
In Terminal type:
sudo open /etc/hosts
edit the hosts file by typing in the ip address and the name you want to tie it to.

I tried to get the user who is having this problem in our network to do it, but he doesn't want to do it (another user was kind enough to bring their own personal MAC to work so that I cant test this out and it resolved the IP address to the NetBIOS name).
Are you sure it resolves the netbios name to the correct IP through netbios?
Or did it resolve through /etc/hosts?
As far as I know now: the lookup through netbios(smb) works with the nmbd daemon. This is part of samba.
With smblookup hostname you can then check if the ip resolves correct.
THen, your OS (mac os x in your case) should be able to resolve names through nmbd. This can be configured in /etc/host.conf
I dont know if nmbd is the correct configuration directive.
Also, it could be that Mac OS X does not support nmbd as lookup method (look in the man page of /etc/host.conf).

I hope you can fix it!
Reply With Quote
  #5  
Old June 3rd, 2009, 10:13 AM
Registered User
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
carlitostsu is on a distinguished road
It resolved it through the /etc/hosts files only :S

I found this article about samba/group policy object:
http://articles.techrepublic.com.com...1-6127492.html

I'm the network technician, at best :P, I will talk to my boss who's the IT director here. But I think we're on the right track.
Thanks for replying!
--------------------------
Did configuring your hosts file help you find the printer?
Reply With Quote
  #6  
Old June 3rd, 2009, 11:35 AM
Registered User
 
Join Date: Nov 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
deadeyes is on a distinguished road
Quote:
Originally Posted by carlitostsu View Post
deadeyes,
Were you able to fix this problem? I'm having a very similar problem.
Please let me know if you were able to.

If not here's a workaround which unfortunately the user in my organization does not want to do.

A workaround is the following:
In Terminal type:
sudo open /etc/hosts
edit the hosts file by typing in the ip address and the name you want to tie it to.

I tried to get the user who is having this problem in our network to do it, but he doesn't want to do it (another user was kind enough to bring their own personal MAC to work so that I cant test this out and it resolved the IP address to the NetBIOS name).
Quote:
Originally Posted by carlitostsu View Post
It resolved it through the /etc/hosts files only :S

I found this article about samba/group policy object:
http://articles.techrepublic.com.com...1-6127492.html

I'm the network technician, at best :P, I will talk to my boss who's the IT director here. But I think we're on the right track.
Thanks for replying!
--------------------------
Did configuring your hosts file help you find the printer?
I don't know as I have no mac for almost half a year now.
Did putting it in /etc/hosts fix it for you? I should think it would but I don't like statical config. So I hope you can fix it with nmbd.
Reply With Quote
  #7  
Old June 3rd, 2009, 12:08 PM
Registered User
 
Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
carlitostsu is on a distinguished road
It does work by changing it in the /etc/hosts file but the user does not want to modify it. (I tested it on another user's MAC)
I will try nmbd as soon as I get a chance and post the results on this forum.
Reply With Quote
  #8  
Old June 3rd, 2009, 05:23 PM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,602
Thanks: 7
Thanked 370 Times in 352 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Go to:

System Preferences > Network > [your network adaptor] > Advanced... > DNS

Then add your network's domain (usually something like mycompany.local, where "mycompany" is your company name -- ask the net admin for this information) to the "Search Domains:" list.

See if that helps resolving by name.
__________________
Mac mini 2.0GHz 10.6.1 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.1 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
Reply

Bookmarks

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 07:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.