Let's assume:
- I own a domain
example.com
- I have a publicly available DNS server
ns1.example.com
- I want to host websites available on the internet e.g.
app-prod.example.com
- I want to host other websites available only in my local network e.g.
app-stage.example.com
Can I put all DNS A records in the publicly available ns1.example.com
server, e.g.
A app-prod.example.com 93.184.216.34
A app-stage.example.com 10.1.1.6
I know it works, but is it a good practice?
From what I see this saves some work, for example, I don't have to configure a local DNS server, I don't have to configure DHCP to point users to this server, etc.
Are there any downsides to this approach?