Is there any way to achieve LAN domain name resolution?

how does Tianyi Broadband, home telecom, achieve private network domain name resolution. For example, I want to bind www.XXXX.com to 192.168.1.7. All www.XXXX.com accessed by private network devices is resolved to 192.168.1.7. It is equivalent to setting up an internal web server, which can be easily accessed by internal domain name.

May.24,2022

two ways

one is to set up a DNS server in the intranet, and then modify the router configuration, issue DNS to the server IP, or manually set the DNS address of each machine to the server
. Second, modify the hosts file and manually bind the resolution

.

if only a few machines need this parsing, it is easier to configure hosts .

Menu