SSH:
nano /etc/hosts
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
(external Shared IP) local
127.0.0.1 localhost
(external Shared IP) local.domain.com
Now I went an modified rights on this file
chattr +i /etc/hosts
Next:
nano /scripts/ipcheck
I commented these lines out to stop those annoying ipcheck emails.
Code:
#if ($problems ne "") {
# print "SENT ipcheck email\n";
#
# $problems .= "Some are all of these problems can be caused by
#/etc/resolv.conf being setup incorrectly. Please check this file if
#you
#believe everything else is correct.\n\n";
# $subject = "[ipcheck] Problems with dns setup on ${hostname}";
# $msg .= "IMPORTANT: Do not ignore this email.\n";
# $msg .= "$problems\nYou may be able to
# automaticly correct this problem by using the ' Add an A entry for your
# hostname ' under ' Dns Functions ' in your Web Host Manager";
# icontact('ipcheck',2,$subject,$msg);
#}
then chattr +i /scripts/ipcheck
I believe that is all that I had to do besides modify edit dns zones to make sure there is no internal ips set on domain or dns servers.
For some crazy reason if I just set the server up with internal IP's nothing wouldn't work. When I just added the external IP's with the main ip of eth0 (which is local address 192.168.88.3) Everything would work but the site. I would be able to handle emails and ftp and all that lovely stuff but when I uploaded site in ftp and then open broswer to goto the domain it wouldn't work right. All I recieved was the default cpanel template. But if I were to access the external address in the browser http//:external.IP/~user/ there is my site. Or also this would work as well http://domainname.com/~user/ this would work but the domain wouldn't. So the adjustments above is what I had made and now it all works fine now. Now if you go into the list accounts in WHM you will see the domain name but near the domain name is a local IP. Weird eh? Well I am not tampering with it. Reason being is I have been fighting with this for well over a week now. I think that is all I did. If I remember any other tweaks besides the addons I added other modifications to box of the third party software for Cpanel out there.
I have yet add another domain. From the looks of things I might have to add all those manually like the other one.