You can’t but you can ‘redirect a domain name to an ip address’ by changing the A record on the responsible name server, or you can add a line in /etc/hosts as you have confirmed. Many routers like mkrotik or pfsense, openwrt or ubiquiti and so on . . . can maintain a table of “lookups” that kicks in before 53 is called if you want a lan resolution but you might get away with hair-pin rules
↧