Configuring dns in local domain

Hi everybody,
for revolving local host name of my network, I set up an dns server to solve my problem, but til now, nothing happen when I ping a hostname, but work on IP. Can you help me to correct the configuration. Here is all my settings:
Voici mes fichiers de configuration:

  • /etc/resolve.conf
search local
nameserver 127.0.0.1
nameserver 212.165.130.9                      
  • /etc/named.conf
options {
        listen-on port 53 { 127.0.0.1; 10.10.0.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;
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "."{
        type hint;
        file "named.ca";
};
zone "local"{
type master;
file "local.zone";
};                      

-/var/named/local.zone

$ttl 86400
 @          IN     SOA    ns1.local. root.local.(
                 2010062505 ; Serial
                 28800     ; Refresh
                 14400     ; Retry
                 3600000 ; Expire
                 86400 ) ; Minimum
 
  TXT                     "Serveur DNS primaire"
 
  NS                       ha1ub 
 
  NS                       ha1ub.local. 
 
  MX                       10 ha1ub 
 
 
 localhost               A                          127.0.0.1
 
 ha1ub                   A                          10.10.0.1
 
 mail                    CNAME                      ha1ub                      

Please, can you help me?

what does your nsswitch.conf look like?

The TLD local. is usually reserved for ZeroConf / Multicast targets. To enable DNS resolution of Unicast IPs, add the line

mdns off

in your /etc/resolv.conf