Operating System - Linux
1827810 Members
1894 Online
109969 Solutions
New Discussion

DNS problem of 2 domains?

 
Chowroc
Occasional Advisor

DNS problem of 2 domains?

I built a domain like this:
zouben.org.
1D IN A 127.0.0.1
1D IN A 192.168.0.11
Chowroc 1D IN A 192.168.0.11
mail 1D IN A 192.168.0.11
@ 1D IN MX 5 mail.zouben.org.
L01 1D IN A 192.168.0.2
L03 1D IN A 192.168.0.4
smtp 1D IN CNAME L03.zouben.org.
@ 1D IN MX 10 smtp.zouben.org.

IN NS localhost.
11 IN PTR Chowroc.zouben.org.
2 IN PTR L01.zouben.org.
4 IN PTR L03.zouben.org.

It works properly.

Then I built a now domain:
dm02.org.
1D IN A 127.0.0.1
1D IN A 192.168.1.3
L02 1D IN A 192.168.1.3
smtp02 1D IN A 192.168.1.3

IN NS localhost.
3 IN PTR L02.dm02.org.

It's OK.

Then I built the right route, make them can ping each other IP. for example:
mail: ping 192.168.1.3 OK
L02: ping 192.168.0.11 OK

then I set their resolv.conf:
mail:
nameserver 127.0.0.1
nameserver 192.168.1.3

L02:
nameserver 127.0.0.1
nameserver 192.168.0.11

Now:
L02: ping mail.zouben.org OK
mail: ping L02.zouben.org unknown host L02.zouben.org

So I don't know how can I make them resolve domain name for each other?

I built the hosts L01,L02,L03 with VMware, so there is no chance to test on L01 or L03, and I don't know is the VMware have influence?

Is there any one can help me?

thank you.
2 REPLIES 2
Chris Xu
Trusted Contributor

Re: DNS problem of 2 domains?

If I understand your issue correctly, you should remove the line "nameserver 127.0.0.1" in your resolv.conf.

Chris
Chowroc
Occasional Advisor

Re: DNS problem of 2 domains?

very shame :( !!!

I forgot to start the named of the virtual machine because i have been accustomed to start it at boot of my real machine.

extremely sorry to waste your time.