I've been looking for answers to this for a while but haven't seen
anything that matches my situation.
I have a domain name with website and mail server hosted remotely
(
www.example.com and mail.example.com).
I have a small network of PCs and Macs connected to the internet
through a Linux server over a dynamically addressed ADSL connection.
The linux box is running dhcp, named, iptables and everything is
working fine. I have an internal web server runing for local testing
purposes.
I have named all the computers internally as myhostname.example.local
What I would like to do is maintain the web site and mail server on the
remote host and collect mail using Fetchmail and send mail directly
from the linux gateway using Postfix. I can't seem to get Postfix to
work using the domain names example.local without fiddling with the
settings. It works when running on another server within the intranet
but not on the gateway. I can setup a mail server on the intranet but
my real need is to be able to send locally instead of having to rely on
a remote mail server.
My questions:
What is the best practice for naming machines in the intranet?
Can I rename my server to gateway.example.com?
Can I name the intranet machines myhostname.example.com?
Do I need to make any changes to my DNS records at the remote host if I
do this?