DNS and Dynamic IP Problems

When my Dynamic IP updates, virtualmin adds the new ip to the first domain in the apache conf file but leaves the old IP in place. It does not change my second Domain to the new IP.
Consiquently when i restart apache i get the following error

Starting httpd: httpd: Syntax error on line 987 of /etc/httpd/conf/httpd.conf: /etc/httpd/conf/httpd.conf:987: was not closed.
[FAILED]

Obviously because there are more IP's for the domain than there are >/VirtualHost>

I have to manually remove the dead IP from httpd.conf in order for the service to start backup.

Also DNS updates the full Domain on the first created Domain but, only the first record of the second created Domain.

All the Domains use the standard shared IP in the Domain configs.

Strange i know but thats the way it is - and i have rebuilt the box thinking it was something i had changed that was causing the problem

Fallen.

Status: 
Closed (fixed)