© 2026 Hashnode
When you type a hostname on a Linux machine, like app01, how does the system know which IP to use? This gets interesting when there are conflicting entries between your local /etc/hosts file and the DNS server. TL;DR: When resolving hostnames to IP a...

Before dig into writing a resolver, let's first walkthrough about Strategy/Resolver Pattern. 👉 Resolver Pattern This is a simpler design pattern - it allows you to: Encapsulate a family of related algorithms Allow them to vary Allow a class to main...
