Re: recipient address must contain a domain

Top Page
Delete this message
Reply to this message
Author: Greg A. Woods
Date:  
To: exim-users
Subject: Re: recipient address must contain a domain
[ On Tue, October 22, 1996 at 15:13:28 (+0100), Philip Hazel wrote: ]
> Subject: Re: recipient address must contain a domain
>
> In particular, is "localhost" special?


Localhost shouldn't be special from the point of view of the DNS.

Particularly if you configure it "right"! ;-)

I don't think I've ever seen anyone set an MX for their localhost.

>From the various documents included with BIND you'll find that the

following configuration should be complete (of course you should
adjust to suit your primary zone! ;-):

(BTW, don't look at my real zone just now -- it's a bit screwed up.)

------ from named.boot ------
; localhost stuff, almost as per RFC 1537...
;
primary         localhost.weird.com             p.localhost
primary         0.0.127.IN-ADDR.ARPA            p.localhost.rev
------ end ------


------ from p.localhost ------
; from /local/etc/named.boot
;$ORIGIN localhost.weird.com.
@                       IN      SOA     ns.weird.com. postmaster.weird.com. (
                                1995052501      ; Serial
                                28800           ; Refresh, 8 hours
                                7200            ; Retry, 2 hours
                                604800          ; Expire, 1 week
                                10800 )         ; Minimum TTL, 3 hours
                        IN      NS      ns.weird.com.
                        IN      A       127.0.0.1
                        IN      MX      1       localhost.weird.com.
                        IN      HINFO   VIRTUAL UNKNOWN
                        IN      UINFO   "A weirdo loopback interface"


; some stuff for naming the loopback network....
; 
loopback.weird.com.     IN      A       127.0.0.0
                        IN      HINFO   NETWORK UNKNOWN
                        IN      UINFO   "It is weirdly fast!"


loopback-net.weird.com. IN      CNAME   loopback.weird.com.


inverse-loopback.weird.com. IN  PTR     0.0.0.127.IN-ADDR.ARPA.
------ end ------


------ from p.localhost ------
; from /local/etc/named.boot
;$ORIGIN 0.0.127.IN-ADDR.ARPA.
@                       IN      SOA     ns.weird.com. postmaster.weird.com.  (
                                1995052501      ; Serial
                                28800           ; Refresh, 8 hours
                                7200            ; Retry, 2 hours
                                604800          ; Expire, 1 week
                                10800 )         ; Minimum TTL, 3 hours
                        IN      NS      ns.weird.com.
                        IN      UINFO   "It goes fast in reverse too!"


1.0.0.127.in-addr.arpa. IN      PTR     localhost.weird.com.
                        IN      UINFO   "Me, Myself, and I"


; reverse lookups for the loopback network and its netmask....
;
0.0.0.127.in-addr.arpa. IN      PTR     loopback.weird.com.
                        IN      A       255.0.0.0
                        IN      UINFO   "It's got a weird netmask too!"
------ end ------


-- 
                            Greg A. Woods


+1 416 443-1734            VE3TCP            robohack!woods
Planix, Inc. <woods@???>; Secrets of the Weird <woods@???>