FIRST OFF ALL: I understand that hosting sites from home is a terrible idea, but the point is that I have to test some sites with a very custom apache/php setup so I don't want to spend money renting some custom VPS servers because I have a domain name which isn't used and I have a decent internet connection.
The idea: I want to set up a DNS server behind my router (+port forwards) and point my domains nameservers to my dns server behind my router. (the dynamic ip could be resolved with Duck dns). After that i want to set up a few sub domains for apache and a mail server.
- Could this setup work or it is a completely bad idea?
- If it could work which DNS server is the good choice and how can I set up the DNS records for the mail and apache servers?