i wrote a relatively simple php script which is able to receive requests from routers to update the active IP from the ISP to a Mysql Table. The active IP is linked to a subdomain-name. I also have a Domain with wildcard subdomains, so that i can redirect via another script to the IP linked to that subdomain. My Domain points to my static IP and my Firewall forwards all requests to my Apache Server. This works fine as long as i only try to access the subdomain through my browser, then i get redirected to the IP from the Database entry. But as soon as i ping the subdomain i get only my static IP.
My Question now is what i have to do to really link the subdomain to the IP. Would i have to run my own nameservers, link them to my domain and then have a script edit the nameserver config so that i could get the ips from a ping on the subdomain ?
Any push into the right Direction is very much appreciated.