Why can't you use two separate DNS servers on a domain and update the A Record
with where they should go?
ns1.domain1.com
ns2.domain1.com
ns1.domain2.com
ns2.domain2.com
The goal is to allow the sub-domains to use the domain2.com
DNS and the /public_html/
or mydoaim.com
to use the DNS servers from domain1.com
.