Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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 ... 
share|improve this answer

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.