- Modifié
Bonsoir, j'ai tenté d'installer un serveur DNS sur mon serveur (Debian 7) mais je n'y arrive pas avec le tuto mais je n'y arrrive pas.
Je pense que le côté serveur est bon :
Les fichiers standards
/etc/resolv.conf
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
/etc/hosts
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
x.x.x.x hostname.abc.xyz
::1 localhost ip6-localhost ip6-loopback
La conf Bind
/etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "abc.xyz" IN {
type master;
file "/etc/bind/taguy.xyz/db.abc.xyz";
allow-transfer { 192.249.60.67; 213.251.128.151; 127.0.0.1; };
allow-query { any; };
notify yes;
};
/etc/bind/named.conf.options
acl clients {
localhost;
localnets;
};
options {
directory "/var/cache/bind";
recursion yes;
allow-query { clients; };
allow-recursion { clients; 127.0.0.1; };
forwarders {
# dns.watch
84.200.69.80;
84.200.70.40;
};
dnssec-enable yes;
dnssec-validation auto;
auth-nxdomain no;
listen-on { 127.0.0.1; any; };
allow-transfer { none; } ;
allow-update { none; } ;
version none;
hostname none;
server-id none;
};
/etc/bind/abc.xyz/db.abc.xyz
; ZONE : abc.xyz
; ------------------------------------------------------------------
$TTL 3600
@ IN SOA ns1.taguy.xyz. hostmaster.taguy.xyz. (
2016091401 ; Serial
14400 ; Refresh
600 ; Retry
1209600 ; Expire - 1 week
86400 ) ; Minimum
; NAMESERVERS
@ IN NS ns1.abc.xyz.
; Enregistrements A
hostname IN A x.x.x.x
ns1 IN A x.x.x.x
@ IN A x.x.x.x
; Web
code IN CNAME hostname
Je ne comprends pas comment trouver un serveur secondaire (j'ai le petit vps ramnode et un nom de domaine ovh).
Est-ce que vous pourriez me dire si mes fichiers de cons sont bons svp ?
Avec
named-checkconf -z
et les autres commandes de verification ils ne me retournent pas de problèmes mais mon domaine est actuellement inaccessible .
Merci d'avance !
EDIT : zone du côté d'OVH :
$TTL 1800
@ IN SOA dns107.ovh.net. tech.ovh.net. (2016092001 86400 3600 3600000 300)
IN NS ns107.ovh.net.
IN NS dns107.ovh.net.