Creating a local domain?

Hi
Can I create a domain which works on lan purely and do not work on internet ?

Sure https://yunohost.org/#/dns_local_network_en