Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm on Maverick trying to access shared folders hosted on Windows machines across a home network. Mysteriously I stopped being able to see them through Nautilus (I couldn't even open Windows network and see my own machine), nor using "smbclient -L //HOSTNAME" from the command line. The error code I got was NT_STATUS_UNSUCCESSFUL.

share|improve this question
    
I'm not sure that you need an opendns tag. This problem is likely to happen with other dns servers. I don't see anything specific to openDNS. –  Javier Rivera Jan 20 '11 at 9:28
    
What should I change the title to? "if I'm using .... (e.g. OpenDNS)" –  d3vid Jan 21 '11 at 9:24
    
Good question. What about "... after changing dns servers?". –  Javier Rivera Jan 21 '11 at 9:59

1 Answer 1

up vote 5 down vote accepted

I discovered the problem was I had recently started using OpenDNS and Samba resolves local hostnames using DNS. Of course, OpenDNS can't resolve my local network hostnames.

The solution is to edit your Samba configuration so that the hostnames are resolved locally and then restart Samba:

  1. Edit /etc/samba/smb.conf (To edit it within the terminal, run sudo nano /etc/samba/smb.conf. To edit it within gedit, aka Text Editor, run gksu gedit /etc/samba/smb.conf from the terminal.)

  2. Change the line

    ; name resolve order = lmhosts host wins bcast
    to
    name resolve order = lmhosts wins bcast host
    (note remove semicolon and change order)

  3. Restart Samba from the terminal:

    • Maverick and later: "sudo restart smbd"
    • Lucid and before: "/etc/init.d/samba restart"
share|improve this answer
    
Use /etc/init.d/sambar restart in older versions. –  Javier Rivera Jan 20 '11 at 7:52
    
Approve it as the correct answer then :P –  Micheal Harker Jan 21 '11 at 16:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.