URL: https://linuxfr.org/forums/linux-redhat/posts/erreur-sur-simple-configuration-dns-en-intranet Title: Erreur sur simple configuration DNS en intranet Authors: didi16783 Date: 2013年04月14日T14:25:07+02:00 License: CC By-SA Tags: Score: 0 Bonjour, Je suis nouveau dans linux et j'essaie de configurer un serveur DNS, mais ça fait 2 jours que j'y arrive pas malgré avoir suivi mille et uns tutos sur le net. Je suis sous CENTOS 6. J'ai installé le serveur dns et fait les config, et lorsque je teste nslookup dans la zone normale, j'ai une bonne réponse comme ci desous : [root@dcim didi167]# nslookup dcim.fan.def Server: 192.168.32.200 Address: 192.168.32.200#53 Name: dcim.fan.def Address: 192.168.32.200 Par contre lorsque je fait le nslookup dans la zone inverse j'ai une erreur "server can't find 200.32.168.192.in-addr.arpa.: NXDOMAIN", voyez ci dessous : [root@dcim didi167]# nslookup 192.168.32.200 Server: 192.168.32.200 Address: 192.168.32.200#53 ** server can't find 200.32.168.192.in-addr.arpa.: NXDOMAIN Alors ci dessous je vous communique mes fichiers de config : Mon nom de domaine est : fan.def Le nom de ma machine qui est en même temps le dns est : dcim **Le fichier /etc/sysconfig/network-scripts/ifcfg-eth0** DEVICE=eth0 TYPE=Ethernet UUID=ca115d82-bbb5-4bd0-8716-bd9d1eb1e5d5 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO="static" DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0" IPADDR=192.168.32.200 NETMASK=255.255.248.0 GATEWAY=192.168.32.200 DNS1=192.168.32.200 # DNS2=xxx.xxx.xxx.xxx DOMAIN=fan.def HWADDR=4C:72:B9:62:05:67 LAST_CONNECT=1365743310 **Le fichier /etc/hosts** 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.32.200 dcim.fan.def **Le fichier /etc/resolv.conf** search fan.def domain fan.def nameserver 127.0.0.1 nameserver 192.168.32.200 **Le fichier /etc/named.conf** // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { listen-on port 53 { 192.168.32.200/21; 127.0.0.1; }; # listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; allow-query { any; }; recursion yes; forwarders { 127.0.0.1; }; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; zone "fan.def" IN { type master; file "/var/named/forward.zone"; allow-update { none; }; }; zone "localhost" IN { type master; file "named.localhost"; allow-update { none; }; }; zone "32.168.192.in-addr.arpa" IN { type master; file "/var/named/32.168.192.in-addr.arpa"; allow-update { none; }; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; **Le fichier /var/named/forward.zone** $TTL 604800 @ IN SOA dcim.fan.def. root.dcim.fan.def. ( 1 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum IN NS dcim.fan.def. dcim IN A 192.168.32.200 **Le fichier /var/named/32.168.192.in-addr.arpa** @ IN SOA dcim.fan.def. root.dcim.fan.def. ( 2 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum IN NS dcim.fan.def. 5 IN PTR dcim.fan.def. Voilà vous avez tout. ça fait 2 jours que je m'arrache les cheveux à essayrer de comprendre pourquoi ça marche pas, je vous prie de bien vouloir me venir en aide. Merci.