Hi all,

Here I am again and guess what, I am still stuck with the usual NAT/DNS, although this seems to be purely a DNS problem.

Here is what I get when I try and resolve localhost:

Code:
# host localhost
localhost.mydomain.com does not exist (Authoritative answer)
mailq
Code:
253A47C3C9     3962 Fri Sep 26 20:19:28  john@mydomain.com
(Host or domain name not found. Name service error for name=localhost type=A: Host not found)
                                         frank@gmail.com
So I thought I'd add a dirty little hack

db.mydomain
Code:
localhost   IN A        127.0.0.1
and it looked good

Code:
# host localhost
localhost.mydomain.com A       127.0.0.1
until I saw the mailq:

mailq
Code:
70D3E7C3CF     4830 Fri Sep 26 20:34:32  john@mydomain.com
                                     (mail for localhost loops back to myself)
                                         frank@gmail.com
Can anyone help me solve this... I am going round in circles.

The DNS is on the zimbra server and the important configs are as follow.

db.local
Code:
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              3         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
@       IN      A       127.0.0.1
db.127
Code:
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@                       IN              NS              localhost.
1.0.0   IN      PTR   localhost.
db.mydomain.com
Code:
$TTL    604800
@       IN      SOA     mail.mydomain.com. hostmaster.mydomain.com. (
           2008092607           ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
                        IN              NS              mail.mydomain.com.
                        IN              MX 10           mail.mydomain.com.
mail                    IN              A                       10.0.0.1
I think this is something obvious but I have been at it for too long.

Any help would be much appreciated.

PS: "order hosts,dns" didin't help.

Thanks
-eco