Forum: NGINX reverse proxy dns configuration

2974d09ac2541e892966b762aad84943?d=identicon&s=25 cybermass (Guest)
on 2014-04-09 04:26
(Received via mailing list)
Hi. I am looking to deploy nginx on a proxy server. The real backend is
located in a remoate geographic location and has apache, mysql, dovecot
and
postfix services supporting an IMAP mail-server. I am a bit confused on
how
DNS is to be setup on both the proxy and the backend server. I am
assuming
that I define the nameservers in the registrar for the proxies (I will
have
two; one as a failover). I am also assuming that on the proxy itself,
bind
is installed of course and the MX is defined as mail.example.com for
example. I am aware that in the nginx.conf, I define the mail directive
as
follows:

`mail {
server_name mail.example.com;
...
}`

Basically, I read that on the physical proxy box, the hostname can be
ns1.example.com (as long as it matches what is defined in the
registrar),
but having listed mail.example.com in nginx.com means that it will be
our
single point for reference for all our users looking to authenticate and
use
the IMAP service.

If I am correct so far, I would then like to know how bind is to be
configured on the real backend. Should the hostname also be
mail.example.com? I would assume that it couldn't hurt since the world
is
not aware of this backend machine so pinging by hostname would not
resolve
THIS box but rather the proxy box. So I am assuming the authoritative
DNS
config (including the reverse DNS) is to be setup entirely on the proxy
box,
leaving the real backend as just a hostname and using proxy_pass
http://physical.ip.address.

Any help would be appreciated. Thanks.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249135,249135#msg-249135
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.