THe issue i am having is that i am trying to create a email server but my emails are rejected due to invalid ptr record.

$TTL 600
@   IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
    2016012407   ; serial
    14400        ; refresh
    1800         ; retry
    604800       ; expire
    600 )        ; minimum

@                        IN NS      robotns3.second-ns.com.
@                        IN NS      robotns2.second-ns.de.
@                        IN NS      ns1.first-ns.de.

@                        IN A
dns1                     IN A
dns2                     IN A
localhost                IN A
mail                     IN A
mx1                      IN A
mx1.littlefeather.net    IN A
www                      IN A  3600 IN PTR     mx1.littlefeather.net

the above zone file is from the master dns from hetzner. I copied this to my dns server as well. the reverse for my ip is mx1.littlefeather.net

and my email server hostname is mx1.littlefeather.net.

What is wrong with my dns zone file?

  • im also ggetting this error on intodns FAIL: The following nameservers are listed at your nameservers as nameservers for your domain, but are not listed at the parent nameservers (see RFC2181 5.4.1). You need to make sure that these nameservers are working.If they are not working ok, you may have problems! ns1.first-ns.de robotns2.second-ns.de robotns3.second-ns.com – Quill Littlefeather Jan 24 '16 at 18:53
  • With your DNS file none, with your configuration, you are putting a reverse on the forward zone. Reverses go to a separated zone file, and that supposing you are authority to your reverse address. localhost is not supposed to be there. Someone will have to following up with you, leaving for dinner. – Rui F Ribeiro Jan 24 '16 at 18:55

You must have your reverse and forward zones separate from each other at all times.

Example forward zone, zone "angelsofclockwork.net"

$ORIGIN angelsofclockwork.net.
$TTL    86400
@       IN      SOA     angelsofclockwork.net. palaceredirect.angelsofclockwork.net. (
                        1D )

                IN      NS      palaceredirect.angelsofclockwork.net.
palaceredirect  IN      A
                IN      AAAA    2001:470:1f19:138::1
myan            IN      A
                IN      AAAA    2001:470:1f19:138::4

Example reverse zone(s). First one is IPv4, zone "0.100.10.IN-ADDR.ARPA".

$TTL    86400
@               IN SOA  @       root (
                                        70              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN      NS      palaceredirect.angelsofclockwork.net.

1               IN      PTR     palaceredirect.angelsofclockwork.net.
103             IN      PTR     myan.angelsofclockwork.net.

This next one is IPv6, zone "".

$TTL    86400
@               IN SOA  @       ns1.angelsofclockwork.net (
                                        411             ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN      NS      ns1.angelsofclockwork.net.
                IN      NS      ns2.angelsofclockwork.net.
                IN      NS      palaceredirect.angelsofclockwork.net. IN      PTR     palaceredirect.angelsofclockwork.net. IN      PTR     myan.angelsofclockwork.net.
  • i had to have my host create the reverse that was the issue I had controll over my forward lookup zones but not reverse. – Quill Littlefeather Jan 25 '16 at 19:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.