2 Replies Latest reply: Jan 25, 2008 8:40 AM by Interceptor121
mathieuonamac Level 1 Level 1 (0 points)
I just switched, bought a macbook with Leopard installed. I still own a few windows machine and Buffalo network attached storage, all of which are connected together via a Linksys wireless router.

After much fiddling, I managed to be able to see my NAS from the finder, along with all the other windows share. So file sharing works, albeit by fully opening the firewall.

My problem is that I can't browse to the NAS. From my windows machines, I just type the hostname in the url bar (http://mynas). But in Safari, I get a "server not found" error. Same thing with Remote Desktop Client, it won't connect to my windows machine by name only, I have to specify an IP address.

So the finder can find the machine, but nobody else can resolve the name. On the other hand, if I go into a terminal and type this:
$ nmblookup mynas

I get mynas's IP address, so it is known by samba.

So how can I tell Leopard to use NMB or WINS to resolve hostnames before it tries other sources?

Thanks

-Mathieu

Macbook, Mac OS X (10.5.1), 2.2Ghz core Duo; 1GB memory
  • Geert T. Level 1 Level 1 (0 points)
    Same problem here, would like a solution too!

    Thank you.
  • Interceptor121 Level 2 Level 2 (185 points)
    Hi

    It will first look at your hosts file, the try to resolve the hostname with an operating system function (DNS) then WINS and then broadcast.

    You can force Samba to change the sequence adding the following command to the [Global} section of samba configuration file
    name resolve order = wins lmhosts bcast host

    To do that you need to go into terminal as administrator and enter
    sudo pico /etc/smb.conf
    Reboot the machine and it should be ok

    If this does not work just put in your NAS name in the hosts file that always works.

    Message was edited by: Interceptor121