I have created a WordPress site for our company intranet. I also created a subdomain called intranet.example.com. Is it possible to make this subdomain only accessible from our local network?
If not, could I host the site on a local computer and simply point the DNS of the intranet.example.com to the IP of the local computer?
You can configure your web server to accept connections (to this subdomain) from only specific IP addresses/networks. Other IP addresses will see only 403 Forbidden. How you do that depends on which web server you chose to use (but you didn’t tell us this important information). Consult its documentation.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.