Subscribe~ -> dig +short mail.eriko.us aIf they match -- the A record returns the IP, the reversed IP returns the same name, then you're good.
66.93.192.242
~ -> dig +short 242.192.93.66.in-addr.arpa ptr
mail.eriko.us.
~ -> dig eriko.us any
; <>> DiG 9.3.2 <>> eriko.us any
;; global options: printcmd
;; Got answer:
;; ->>HEADER< - opcode: query, status: noerror, id: 40425br> ;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 6, ADDITIONAL: 7
;; QUESTION SECTION:
;eriko.us. IN ANY
;; ANSWER SECTION:
eriko.us. 3519 IN MX 20 ns-1.eriko.us.
eriko.us. 3519 IN MX 10 mail.eriko.us.
eriko.us. 3519 IN SOA ns-1.eriko.us. hostmaster.eriko.us. 2007042201 28800 14400 2419200 86400
eriko.us. 3519 IN TXT "v=spf1 mx ~all"
eriko.us. 3519 IN NS ns-1.eriko.us.
eriko.us. 3519 IN NS ns-2.eriko.us.
eriko.us. 3519 IN NS ns2.mydyndns.org.
eriko.us. 3519 IN NS ns3.mydyndns.org.
eriko.us. 3519 IN NS >>>
Note how all the answers are different, and are returning private addresses. ns-1 and ns-2 are the same boxes that were answering before, but since the request came from inside, they give the internal view. If the request comes from outside, they give the external view. (At my office, there are *four* views -- internal, external, vpn, and dmz.)
eriko2 ~ -> dig +short mail.eriko.us
192.168.0.25
eriko2 ~ -> dig eriko.us any
; <>> DiG 9.3.3 <>> eriko.us any
;; global options: printcmd
;; Got answer:
;; ->>HEADER< - opcode: query, status: noerror, id: 60471br> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 3
;; QUESTION SECTION:
;eriko.us. IN ANY
;; ANSWER SECTION:
eriko.us. 3600 IN SOA ns-1.eriko.us. eriko.eriko.us. 2007051301 10800 3600 604800 86400
eriko.us. 3600 IN NS ns-1.eriko.us.
eriko.us. 3600 IN NS ns-2.eriko.us.
eriko.us. 3600 IN MX 20 ns-1.eriko.us.
eriko.us. 3600 IN MX 10 mail.eriko.us.
;; ADDITIONAL SECTION:
ns-1.eriko.us. 3600 IN A 192.168.0.21
ns-2.eriko.us. 3600 IN A 192.168.0.25
mail.eriko.us. 3600 IN A 192.168.0.250>>>
You are not logged in, either login or create an account to post comments
If the Xserv is on a private address, you may have to do something so that it uses the public IP in it's headers. If my quick googling is correct, OS X server uses Postfix for the SMTP MTA. This gives instructions for configuring Posftfix for a server that sits behind NAT, though it may well be something that Apple provides an easier config interface for.
posted by Good Brain at 1:32 PM on July 27, 2007