sorry, I don't understand all of your answer, especially about the 2nd question, In Squid to set a custom DNS they add one line to the squid.conf file:
dns-server IP_Address
for example:
dns_server 192.168.1.2
and all DNS queries will go to this server(192.168.1.2).
Is there any thing similar to that in Apache ( I didn't get it from your previous answer).
Thanks in advanced