Actually, if you hard code the IP in the zone templates, it doesn't change the IP httpd.conf uses for the IP at all as httpd.conf picks the IP set as the main shared IP not the IP in the DNS zone template.
As a test, I did the following:
1. WHM > Edit Zone Templates > standardvirtualftp
2. Changed this line:
Code:
%domain%. IN A %ip%
To this line:
Code:
%domain%. IN A 74.74.74.74
3. Clicked Save button
4. Created a new account cpfoo.foo on my machine in Create a New Account area
5. Checked httpd.conf entries for it, which show the main shared server IP:
Code:
<VirtualHost 64.50.164.46:80>
ServerName cpfoo.foo
ServerAlias www.cpfoo.foo
DocumentRoot /home/cpfoofo/public_html
ServerAdmin webmaster@cpfoo.foo
6. Checked /var/named/cpfoo.foo.db entries:
Code:
cpfoo.foo. IN A 74.74.74.74
Changing the zone template does work and doesn't impact anything else on the system. It does exactly what it needs to do for NAT setups, which is keep the DNS entry as the external IP but all other entries on the machine as the internal IPs that were already set.