1. resolv.conf
Example:
nameserver 1.1.1.1
nameserver 8.8.8.8
2. nsswitch
Check order in /etc/nsswitch.conf (hosts: files dns).
3. Test
getent hosts example.com
4. Verify
Check /etc/hosts for local overrides.
Quick checklist
[ ] Steps completed
[ ] Config updated
[ ] Service tested
[ ] Restart/rollback ready
[ ] Logs checked