Question:
Which order is used currently to resolve an IP address in the system?
Answer:
Check the  /etc/nsswitch.conf file:
...
hosts:          files dns
...grep hosts /etc/nsswitch.conf