[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bind9 and ns delegation



Hi,

I did an ns delegation transfert from my registrar to my server (with
one fixed Ip address).
I am trying to set up the bind9 files (.hosts and .rev) of this
machine that host everything (www + smtp) but it doesn't work.

In /etc/hosts I have the following:

127.0.0.1     localhost.localdomain	localhost
192.168.0.6  tidi1.mydomain.com	      tidi1

In /etc/resolv.conf I put:

Search mydomain.com
Nameserver 192.168.0.44

And here is what I wrote in the .hosts file:

mondomaine.com.	  IN	SOA	ns0.mydomain.com.
 (
   2004113025	; Serial
   3600		; Refresh
   3600		; Retry
   6048000	; Expire
   38400 )	; Negative Cache TTL

mydomain.com.		  IN	NS	ns0.mydomain.com.
mydomain.com.		  IN	NS	ns1.mydomain.com.
mydomain.com.	 	  IN	MX	10 smtp.mydomain.com.
mydomain.com.	 	  IN	A	195.138.248.168 (my fixed IP)
www.mydomain.com.	  IN	A	195.138.248.168
168.248.138.195.mydomain.com. 	IN    PTR  www.mydomain.com.


I had to notify two nameservers for my registrar. Both have the same
ip address on the registrar side

Here is the content of the .rev file:

mondomaine.com.	  IN	SOA	ns0.mydomain.com.
(
2002011700	; Serial
28800		; Refresh
14400		; Retry
2419200	; Expire
10800 )	; Negative Cache TTL

mydomain.com.	  IN	NS	ns0.mydomain.com.
mydomain.com.	  IN	NS	ns1.mydomain.com.
2		              IN	PTR	ns0.mydomain.com.
44	   	  	  IN	PTR	ns0.mydomain.com.
195.138.248.168	  IN	PTR	www.mydomain.com.

I have been trying different configuration for more than a week now
and I don't know where is my mistake.

Thanks in advance for your help.

Best regards,

frederic



Reply to: