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?