To create a domain name in a local network, you need to set up local DNS so a custom name resolves to internal IP addresses. For small networks, this can be done by manually editing the hosts file on each device, but a more scalable approach is to install a local DNS server, such as BIND, dnsmasq, or Windows DNS. After choosing a local domain name (for example, office.local), create DNS records that point the domain to the appropriate private IPs, and configure all devices or your router to use this DNS server. This allows all devices on the network to access local resources using the domain name without relying on an internet connection.