LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problem with Reversed DNS on Webmin (https://www.linuxquestions.org/questions/linux-server-73/problem-with-reversed-dns-on-webmin-4175555799/)

voda22 10-10-2015 12:53 PM

Problem with Reversed DNS on Webmin
 
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.domain1 to mail10.domain1.com.

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

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

I have each ip for each sub domains.

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

$ dig -x xxx.xx.xx.xx +short
mail01.domain2.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?


Here is the record for domain2.


Quote:

@ 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 ip4xx.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
Here is the reversed records:

Quote:

$ttl 38400xxx.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.
My first domain:

Quote:

$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 ip4xx.xx.xx.32/24 ip6xx.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
Thanks

Rinndalir 10-10-2015 03:11 PM

Not sure what the question is here.

voda22 10-10-2015 03:37 PM

The problem i got was PTR record:

$ dig -x xxx.xx.xx.xx +short
mail01.domain2.com.

So I want the ip of sud domain2.com resolve to it instead of the sudomain of domain1.com. Can you get it?

Rinndalir 10-10-2015 04:09 PM

Quote:

Originally Posted by voda22 (Post 5432727)
The problem i got was PTR record:

$ dig -x xxx.xx.xx.xx +short
mail01.domain2.com.

So I want the ip of sud domain2.com resolve to it instead of the sudomain of domain1.com. Can you get it?

It isn't possible to answer your question when there are only xxx and no ips. You can use fake addresses like

voda22 10-10-2015 05:27 PM

Quote:

Originally Posted by Rinndalir (Post 5432744)
It isn't possible to answer your question when there are only xxx and no ips. You can use fake addresses like

I am sorry for that.

Quote:

$ dig -x 192.168.1.10 +short
mail01.domain2.com.
For example.

voda22 10-12-2015 09:37 AM

Hello,

I have 2 domain names. I tried to create the subdomain for domain2.com like this:

sub1.domain2.com.

I created the DNS zone with that subdomain and ip. However, when i checked it, that ip was reversed to sub1.domain1.com instead of sub1.domain2.com.

I checked the losf with pid of named, i found these:

Quote:

named 14987 named 21u IPv4 2040244 0t0 TCP server.domain1.com:domain (LISTEN)
named 14987 named 22u IPv4 2040246 0t0 TCP mta1.domain1.com:domain (LISTEN)
named 14987 named 23u IPv4 2040248 0t0 TCP mta2.domain1.com:domain (LISTEN)
named 14987 named 24u IPv4 2040250 0t0 TCP mta3.domain1.com:domain (LISTEN)
named 14987 named 25u IPv4 2040252 0t0 TCP mta4.domain1.com:domain (LISTEN)
named 14987 named 26u IPv4 2040254 0t0 TCP mta5.domain1.com:domain (LISTEN)
named 14987 named 27u IPv4 2040256 0t0 TCP mta6.domain1.com:domain (LISTEN)
named 14987 named 28u IPv4 2040258 0t0 TCP mta7.domain1.com:domain (LISTEN)
named 14987 named 29u IPv4 2040260 0t0 TCP mta8.domain1.com:domain (LISTEN)
named 14987 named 30u IPv4 2040262 0t0 TCP mta9.domain1.com:domain (LISTEN)
named 14987 named 31u IPv4 2040264 0t0 TCP mta10.domain1.com:domain (LISTEN)
named 14987 named 32u IPv4 2040266 0t0 TCP mta11.domain1.com:domain (LISTEN)
named 14987 named 33u IPv4 2040268 0t0 TCP mta12.domain1.com:domain (LISTEN)
named 14987 named 34u IPv4 2040270 0t0 TCP mta13.domain1.com:domain (LISTEN)
named 14987 named 35u IPv4 2040272 0t0 TCP mta14.domain1.com:domain (LISTEN)
named 14987 named 36u IPv4 2040274 0t0 TCP mta15.domain1.com:domain (LISTEN)
named 14987 named 37u IPv4 2040276 0t0 TCP mta16.domain1.com:domain (LISTEN)
named 14987 named 38u IPv4 2040278 0t0 TCP mta17.domain1.com:domain (LISTEN)
named 14987 named 39u IPv4 2040280 0t0 TCP mta18.domain1.com:domain (LISTEN)
named 14987 named 40u IPv4 2040282 0t0 TCP mta19.domain1.com:domain (LISTEN)
named 14987 named 41u IPv4 2040284 0t0 TCP mta20.domain1.com:domain (LISTEN)
named 14987 named 42u IPv4 2040286 0t0 TCP mta21.domain1.com:domain (LISTEN)
named 14987 named 43u IPv4 2040288 0t0 TCP mta22.domain1.com:domain (LISTEN)
named 14987 named 44u IPv4 2040290 0t0 TCP mta23.domain1.com:domain (LISTEN)
named 14987 named 45u IPv4 2040292 0t0 TCP mta24.domain1.com:domain (LISTEN)
named 14987 named 46u IPv4 2040294 0t0 TCP mta25.domain1.com:domain (LISTEN)
named 14987 named 47u IPv4 2040296 0t0 TCP mta26.domain1.com:domain (LISTEN)
named 14987 named 48u IPv4 2040298 0t0 TCP mta27.domain1.com:domain (LISTEN)
named 14987 named 49u IPv4 2040300 0t0 TCP mta28.domain1.com:domain (LISTEN)
named 14987 named 50u IPv4 2040302 0t0 TCP mta29.domain1.com:domain (LISTEN)
named 14987 named 51u IPv4 2040304 0t0 TCP mta30.domain1.com:domain (LISTEN)
named 14987 named 52u IPv4 2040306 0t0 TCP mta31.domain1.com:domain (LISTEN)
named 14987 named 53u IPv4 2040309 0t0 TCP ns1:rndc (LISTEN)
named 14987 named 512u IPv4 2040241 0t0 UDP ns1:domain
named 14987 named 513u IPv4 2040243 0t0 UDP server.domain1.com:domain
named 14987 named 514u IPv4 2040245 0t0 UDP mta1.domain1.com:domain
named 14987 named 515u IPv4 2040247 0t0 UDP mta2.domain1.com:domain
named 14987 named 516u IPv4 2040249 0t0 UDP mta3.domain1.com:domain
named 14987 named 517u IPv4 2040251 0t0 UDP mta4.domain1.com:domain
named 14987 named 518u IPv4 2040253 0t0 UDP mta5.domain1.com:domain
named 14987 named 519u IPv4 2040255 0t0 UDP mta6.domain1.com:domain
named 14987 named 520u IPv4 2040257 0t0 UDP mta7.domain1.com:domain
named 14987 named 521u IPv4 2040259 0t0 UDP mta8.domain1.com:domain
named 14987 named 522u IPv4 2040261 0t0 UDP mta9.domain1.com:domain
named 14987 named 523u IPv4 2040263 0t0 UDP mta10.domain1.com:domain
named 14987 named 524u IPv4 2040265 0t0 UDP mta11.domain1.com:domain
named 14987 named 525u IPv4 2040267 0t0 UDP mta12.domain1.com:domain
named 14987 named 526u IPv4 2040269 0t0 UDP mta13.domain1.com:domain
named 14987 named 527u IPv4 2040271 0t0 UDP mta14.domain1.com:domain
named 14987 named 528u IPv4 2040273 0t0 UDP mta15.domain1.com:domain
named 14987 named 529u IPv4 2040275 0t0 UDP mta16.domain1.com:domain
named 14987 named 530u IPv4 2040277 0t0 UDP mta17.domain1.com:domain
named 14987 named 531u IPv4 2040279 0t0 UDP mta18.domain1.com:domain
named 14987 named 532u IPv4 2040281 0t0 UDP mta19.domain1.com:domain
named 14987 named 533u IPv4 2040283 0t0 UDP mta20.domain1.com:domain
named 14987 named 534u IPv4 2040285 0t0 UDP mta21.domain1.com:domain
named 14987 named 535u IPv4 2040287 0t0 UDP mta22.domain1.com:domain
named 14987 named 536u IPv4 2040289 0t0 UDP mta23.domain1.com:domain
named 14987 named 537u IPv4 2040291 0t0 UDP mta24.domain1.com:domain
named 14987 named 538u IPv4 2040293 0t0 UDP mta25.domain1.com:domain
named 14987 named 539u IPv4 2040295 0t0 UDP mta26.domain1.com:domain
named 14987 named 540u IPv4 2040297 0t0 UDP mta27.domain1.com:domain
named 14987 named 541u IPv4 2040299 0t0 UDP mta28.domain1.com:domain
named 14987 named 542u IPv4 2040301 0t0 UDP mta29.domain1.com:domain
named 14987 named 543u IPv4 2040303 0t0 UDP mta30.domain1.com:domain
named 14987 named 544u IPv4 2040305 0t0 UDP mta31.domain1.com:domain


All times are GMT -5. The time now is 03:04 AM.