Problem with MX record : I need some help.

bg75000 at hotmail.fr bg75000 at hotmail.fr
Sun Aug 27 11:18:58 UTC 2006


I have a problem with Bind9 DNS.
I expose you my configuration with 2 DNS servers :
- a first DNS server named srv2 which manages 2 zones : site2.fr and
the root zone.
- a second one named srv1 which manages the site1.fr zone and which
forward to srv2 all the requests which it cannot resolve.

My objective is that the first DNS server which manages the root zone
(srv2) always returns  the same IP address when it cannot solve a
request of the MX type.
I took 2 computers and I did the 2 configurations of my 2 DNS servers.
For instance when I do a request of the MX type since srv1 to site1.uk,
the server answers the address indicated in the root zone. But, when I
enter site1.fr, it gives me an error because it recognizes fr at the
end of site1.fr.

My problem with MX record :
I use the nslookup utility in DOS mode, you can see what I do on the
srv1 server :
nslookup
set type=MX
srv2.site2.fr : it gives me as result IP address of srv2 = 142.74.0.10
(correct operation).
srv1.site1.fr : it gives me as result IP address of srv1 = 142.76.0.10
(correct operation).
toto.uk, test1.com : it gives me the IP address inticated in the root
zone : MX * record (correct operation).
toto.fr : all requests ending in fr give an error and not the address
indicated in root.
I would like that even with fr termination, the server gives me the IP
address inticated in the root zone. The fr terminaition is recognized,
the root file is not read by the server but all requests having the
other terminations like the uk, com give the address defined in the
root file.

You can see here my configuration files of the 2 servers :
- For srv1:
File named.conf :
options {
forwarders {142.74.0.10;};
datasize 64m;
stacksize 64m;
coresize 64m;
files 1024;
directory "c:\windows\system32\dns\etc";
pid-file "named.pid";
version "9.3.2";
allow-query 	{any;};
allow-recursion {any;};
};
//-------------------------------------------------
zone "site1.fr" {
type master;
file "site1.fr.dns";
};

File site1.fr.dns :
;
-----------------------------------------------------------------------------------------
$ORIGIN site1.fr.
$TTL 600

@		IN  	SOA 	srv1.site1.fr. admin.site1.fr. (
                		2006080000		; serial number
                		600       		; refresh
                		600       		; retry
                		86400     		; expire
                		3600      ) 		; minimum TTL
;
-----------------------------------------------------------------------------------------
;  Zone NS records

@		NS		srv1.site1.fr.

@		MX	10	srv1.site1.fr.

;
-----------------------------------------------------------------------------------------
;  Zone records

srv1		A	142.76.0.10


- For srv2 :
File named.conf :
options {
	datasize 64m;
	stacksize 64m;
	coresize 64m;
	files 1024;
	directory "c:\windows\system32\dns\etc";
	pid-file "named.pid";
	version "9.3.2";
	allow-query {any;};
	allow-recursion {any;};
	};
//--------------------------------------------------------------------
zone "." {
	type master;
	file "root.dns";
	};
//--------------------------------------------------------------------
zone "site2.fr" {
	type master;
	file "site2.fr.dns";
	};

File site2.fr.dns :
;
-----------------------------------------------------------------------------------------
$ORIGIN site2.fr.
$TTL 600

@		IN	SOA	srv2.site2.fr. admin.site2.fr. (
                        	2006080000		; serial number
                        	600        		; refresh
                        	600         		; retry
                        	86400       		; expire
                        	3600      ) 		; minimum TTL
;
-----------------------------------------------------------------------------------------
;  Zone NS records
;
@		NS		srv2.site2.fr.

@		MX	10	srv2.site2.fr.

;
-----------------------------------------------------------------------------------------
;  Zone records

srv2		A	142.74.0.10


File root.dns :
;
-----------------------------------------------------------------------------------------
$ORIGIN .
$TTL 600
@		IN  	SOA 	srv2.site2.fr. admin.site2.fr. (
                        	2006080000		; serial number
                        	3600        		; refresh
                        	600         		; retry
                        	86400       		; expire
                        	3600      ) 		; minimum TTL
;
-----------------------------------------------------------------------------------------
;  Zone NS records
	     	NS		srv2.site2.fr.		;dns principal

*		MX 	20	srv2.site2.fr.		;smtp
;
-----------------------------------------------------------------------------------------
;  Zone records

srv2.site2.fr.		A	142.74.0.10


If you want more informations to help me ask me.
Thank you.



More information about the bind-users mailing list