If I understand /etc/nsswitch.conf
correctly, the configuration
hosts: files mdns4_minimal [NOTFOUND=return] dns
results in interpreting /etc/hosts
, MDNS and finally "regular" DNS servers.
Now I would love to have an option to set some static fallback definitions in case all previous resolving options failed.
Switching DNS and files would probably a bad idea because it would call DNS servers everytime.
So basically I'm looking for a solution that will work in case a DNS server failed (and there was no match in /etc/hosts
obviously).
If this solution would result in a file manageable per user it would be even perfect.