dns – Two bungeecord networks to seperated domains – via CLI

I have a domain and a subdomain which are already registered.

How can I set up the DNS settings, that I can join the first bungeecord network (Port: 25565) through the main-domain: (eg.) testserver.net and (seperately) join the other bungeecord network (Port: 25567) through a sub-domain (eg. second.testserver.net).

I have access to the Domainsettings and the CLI.
How would you solve the problem?

I’ve already seen something like an A-Record and SRV-Record, but I missed to solve the problem.