Problem with Reversed DNS

14 posts / 0 new
Last post
#1 Fri, 10/09/2015 - 22:47
webminlover

Problem with Reversed DNS

Hello,

I created Reversed DNS for my domains.

The main domain is myfirstdomain.com with Name server ns1.myfirstdomain.com and ns2.myfirstdomain.com

I configure some subdomains from: mail01.myfirstdomain to mail10.myfirstdomain.com.

Then I add the new virtual Machine, with domain name: myseconddomain.com.

I create the subdomains again from mail01.myseconddomain.com to mail10.myseconddomain.com with reversed ip.

I have each ip for each sub domains.

By the way, when dig the subdomains of the myseconddomain.com, they are all resolved to first domain.

$ dig -x xxx.xx.xx.xx +short mail01.myfirstdomain.com. (xxx.xx.xx.xx is the ip reversed for mail01.myseconddomain.com)

I really don't understand why. I tried to delete all and created again but still the same result.

How can i fix it?

Thanks

Sat, 10/10/2015 - 02:38
Diabolico
Diabolico's picture

You can set rDNS only in two ways, hosting company have enabled this option for their clients or you contacted your hosting company and ask them to set rDNS for you. What is your case? And what did you set as rDNS?

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Sat, 10/10/2015 - 07:32
webminlover

I have my VPS and webmin installed.

Sat, 10/10/2015 - 07:46
webminlover

I created the A Records for them.

Here is the record for domain2.

@    IN  SOA ns1.domain1.com root.domain1.com (
            2015101020
            10800
            3600
            604800
            38400 )
domain2.com.    IN  NS  ns1.domain1.com
domain2.com.    IN  A   xxx.xx.xx.32
www.domain2.com.    IN  A   xxx.xx.xx.32
ftp.domain2.com.    IN  A   xxx.xx.xx.32
m.domain2.com.  IN  A   xxx.xx.xx.32
localhost.domain2.com.  IN  A   127.0.0.1
webmail.domain2.com.    IN  A   xxx.xx.xx.32
admin.domain2.com.  IN  A   xxx.xx.xx.32
mail.domain2.com.   IN  A   xxx.xx.xx.32
domain2.com.    IN  MX  5 mail.domain2.com.
domain2.com.    IN  TXT "v=spf1 a mx a:domain1.com ip4:xxx.xx.xx.32 ip6:2xxx.xx.xx::36 ?all"
domain2.com.    IN  AAAA    2xxx.xx.xx::36
www.domain2.com.    IN  AAAA    2xxx.xx.xx::36
ftp.domain2.com.    IN  AAAA    2xxx.xx.xx::36
m.domain2.com.  IN  AAAA    2xxx.xx.xx::36
webmail.domain2.com.    IN  AAAA    2xxx.xx.xx::36
admin.domain2.com.  IN  AAAA    2xxx.xx.xx::36
mail.domain2.com.   IN  AAAA    2xxx.xx.xx::36
domain2.com.    IN  NS  ns2.domain1.com
mta12.domain2.com.  IN  A   xxx.xx.xx.44
mta13.domain2.com.  IN  A   xxx.xx.xx.45
mta14.domain2.com.  IN  A   xxx.xx.xx.46
mta15.domain2.com.  IN  A   xxx.xx.xx.47
mta16.domain2.com.  IN  A   xxx.xx.xx.48
mta17.domain2.com.  IN  A   xxx.xx.xx.49
mta18.domain2.com.  IN  A   xxx.xx.xx.50
mta19.domain2.com.  IN  A   xxx.xx.xx.51
mta20.domain2.com.  IN  A   xxx.xx.xx.52
mta21.domain2.com.  IN  A   xxx.xx.xx.53[/QUOTE]
 
 
Here is the reversed records:
 
[QUOTE]$ttl 38400
xxx.xx.xx.in-addr.arpa. IN  SOA ns1.domain1.com. root.domain1.com. (
            2015101028
            10800
            3600
            604800
            38400 )
xxx.xx.xx.in-addr.arpa. IN  NS  ns1.domain1.com.
32.xxx.xx.xx.in-addr.arpa.  IN  PTR ns1.domain1.com.
33.xxx.xx.xx.in-addr.arpa.  IN  PTR ns2.domain1.com.
44.xxx.xx.xx.in-addr.arpa.  IN  PTR mta12.domain2.com.
45.xxx.xx.xx.in-addr.arpa.  IN  PTR mta13.domain2.com.
46.xxx.xx.xx.in-addr.arpa.  IN  PTR mta14.domain2.com.
47.xxx.xx.xx.in-addr.arpa.  IN  PTR mta15.domain2.com.
49.xxx.xx.xx.in-addr.arpa.  IN  PTR mta17.domain2.com.
51.xxx.xx.xx.in-addr.arpa.  IN  PTR mta19.domain2.com.
50.xxx.xx.xx.in-addr.arpa.  IN  PTR mta18.domain2.com.
48.xxx.xx.xx.in-addr.arpa.  IN  PTR mta16.domain2.com.
52.xxx.xx.xx.in-addr.arpa.  IN  PTR mta20.domain2.com.
53.xxx.xx.xx.in-addr.arpa.  IN  PTR mta21.domain2.com.
34.xxx.xx.xx.in-addr.arpa.  IN  PTR mta2.domain1.com.
35.xxx.xx.xx.in-addr.arpa.  IN  PTR mta3.domain1.com.
36.xxx.xx.xx.in-addr.arpa.  IN  PTR mta4.domain1.com.
37.xxx.xx.xx.in-addr.arpa.  IN  PTR mta5.domain1.com.
38.xxx.xx.xx.in-addr.arpa.  IN  PTR mta6.domain1.com.
39.xxx.xx.xx.in-addr.arpa.  IN  PTR mta7.domain1.com.
40.xxx.xx.xx.in-addr.arpa.  IN  PTR mta8.domain1.com.
41.xxx.xx.xx.in-addr.arpa.  IN  PTR mta9.domain1.com.
42.xxx.xx.xx.in-addr.arpa.  IN  PTR mta10.domain1.com.
43.xxx.xx.xx.in-addr.arpa.  IN  PTR mta11.domain1.com.
Sat, 10/10/2015 - 07:46
webminlover
$ttl 38400
@   IN  SOA domain1.com. root.domain1.com. (
            2015101021
            10800
            3600
            604800
            38400 )
domain1.com.    IN  NS  ns1.domain1.com.
domain1.com.    IN  A   xxx.xx.xx.32
www.domain1.com.    IN  A   xxx.xx.xx.32
ftp.domain1.com.    IN  A   xxx.xx.xx.32
m.domain1.com.  IN  A   xxx.xx.xx.32
localhost.domain1.com.  IN  A   127.0.0.1
webmail.domain1.com.    IN  A   xxx.xx.xx.32
admin.domain1.com.  IN  A   xxx.xx.xx.32
mail.domain1.com.   IN  A   xxx.xx.xx.32
domain1.com.    IN  MX  5 mail.domain1.com.
domain1.com.    IN  TXT "v=spf1 a mx ptr ip4:xxx.xx.xx.32/24 ip6:xxx.xx.xx::36 include:google.com all"
domain1.com.    IN  AAAA    xxx.xx.xx::36
www.domain1.com.    IN  AAAA    xxx.xx.xx::36
ftp.domain1.com.    IN  AAAA    xxx.xx.xx::36
m.domain1.com.  IN  AAAA    xxx.xx.xx::36
webmail.domain1.com.    IN  AAAA    xxx.xx.xx::36
admin.domain1.com.  IN  AAAA    xxx.xx.xx::36
mail.domain1.com.   IN  AAAA    xxx.xx.xx::36
domain1.com.    IN  NS  ns2.domain1.com.
ns1.domain1.com.    IN  A   xxx.xx.xx.32
ns2.domain1.com.    IN  A   xxx.xx.xx.33
mta1.domain1.com.   IN  A   xxx.xx.xx.33
mta2.domain1.com.   IN  A   xxx.xx.xx.34
mta3.domain1.com.   IN  A   xxx.xx.xx.35
mta4.domain1.com.   IN  A   xxx.xx.xx.36
mta5.domain1.com.   IN  A   xxx.xx.xx.37
mta6.domain1.com.   IN  A   xxx.xx.xx.38
mta7.domain1.com.   IN  A   xxx.xx.xx.39
mta8.domain1.com.   IN  A   xxx.xx.xx.40
mta9.domain1.com.   IN  A   xxx.xx.xx.41
mta10.domain1.com.  IN  A   xxx.xx.xx.42
mta11.domain1.com.  IN  A   xxx.xx.xx.43
Sat, 10/10/2015 - 09:04
Diabolico
Diabolico's picture

You cant set rDNS with Wmin/Vmin. You should ask your host to set this for you. Only the owner of the IP can set rDNS.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Sat, 10/10/2015 - 09:37
webminlover

I am the owner of ip.

Sat, 10/10/2015 - 10:41
webminlover

I dont know why the IP still reversed to the domain1.com instead of domain2.com

For example if I dig mta20.domain2.com's ip, it willl show mta20.domain1.com.

Sat, 10/10/2015 - 11:16
Welshman
Welshman's picture

rDNS needs to match your hostname, apparently??

Chaos Reigns Within, Reflect, Repent and Reboot, Order Shall Return.

Sat, 10/10/2015 - 11:36
webminlover

I need it to match its main domain.

Sat, 10/10/2015 - 12:07
Welshman
Welshman's picture

Also,( hostname ) not a domain you use email for?? DNS is mind boggling.

I have yet to see a professional HOWTO that is perfect on how to setup a hostname and rDNS / PTR on a dedicated server running just 1 or multiple domains.

Chaos Reigns Within, Reflect, Repent and Reboot, Order Shall Return.

Sat, 10/10/2015 - 12:21
webminlover

Hostname is the domain i used.

Sat, 10/10/2015 - 12:39
Welshman
Welshman's picture

DNS takes time to change, you can check here... https://www.whatsmydns.net/

A good hostname and rDNS is vital for email along with SPF/TXT record and DKIM etc, especially if you will be communicating with the likes of Gmail, Outlook etc etc with your project.

Chaos Reigns Within, Reflect, Repent and Reboot, Order Shall Return.

Sat, 10/10/2015 - 12:51
webminlover

I know. but i have problem to with rDNS.

Your IP address xxx.xx.xx.xx is associated with the domain mail1.domain1.com. Nevertheless your message appears to be sent from mail1.domain2.com.

Then Email provider will put my email out of inbox.

Topic locked