lserver Domain
Changes the default server to the value specified by the Domain parameter. The lserver subcommand uses the initial server to look up information about the domain.
The server subcommand uses the current default server. If an authoritative answer cannot be found, the names of any additional servers that might have the answer are
returned.
/etc/nsswitch.conf is the file which has more ... Name Service Switch config file.
This file should be sorted with the most-used services at the beginning.
I usually edit host part to use the sequence needed ..
hosts: files nisplus nis dns