Let's say I own the domain
example.com, and have a website hosted on an external server at
http://example.com, which is also accessible from
I want to run my local OwnCloud instance at
http://cloud.example.com, which should be accessible both locally and remotely. To make this accessible via LAN in my own network, I set up a local BIND server which resolves
cloud.example.com to the local IP address of the server. However, since this is the only server, browsing to
http://example.com resolves to the same machine and not to the remote website.
How could I set up my BIND server to do the following?
cloud.example.comfrom the LAN should resolve to a local IP
cloud.example.comthrough the Internet should work (will use dynamic DNS for this)
- Browsing to
http://www.example.comfrom LAN or Internet should display the externally hosted website
I am fairly new to DNS implementations so happy to RTFM if needed. Thanks.