I am using LAMP on Ubuntu server, and I need to query MSSQL database on Windows XP machine, both on the same network. I use winbind to resolve SMB hostnames. My problem is name resolution order. It first tries to resolve using primary DNS, then secondary, and finaly resolves to the XP machine. The problem is when internet connection fails primary and secondary DNS servers are not available, so it resolves using winbind after primary and secondary DNS time out (and database connecton). How do I move winbind to the top of the stack?


You should be able to do this through the /etc/nsswitch.conf file. Make sure that wins is listed before your other name services

hosts:    wins file dns ... 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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