View Single Post
  #1   (View Single Post)  
Old 13th November 2019
notooth notooth is offline
Shell Scout
 
Join Date: Jul 2015
Posts: 114
Red face Need help setting up a local DNS

Hello,

Can anyone help me fix my local DNS configuration?

/etc/resolv.conf
Code:
search laboratorio.local
nameserver 192.168.100.200
nameserver 8.8.8.8
/etc/named.conf
Code:
options {
        directory "/etc/namedb";
        allow-transfer { 192.168.100.0/24; };
        allow-query { 192.168.100.0/24; };
        listen-on port 53 { 192.168.100.1; };
};

zone "." {
        type hint;
        file "root.cache";
};

zone "laboratorio.local" {
        type master;
        file "laboratorio.local";
};

zone "100.168.192.IN-ADDR.ARPA" {
        type master;
        file "100.168.192";
};

zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" {
        type master;
        file "loopback.v6";
};
/etc/namedb/laboratorio.local
Code:
$TTL    3600
@       IN      SOA     laboratorio.local. hostmaster.laboratorio.local.  (
                                1999012100      ; Serial
                                3600            ; Refresh
                                300             ; Retry
                                3600000         ; Expire
                                3600 )          ; Minimum
                        IN      NS      laboratorio.local.
laboratorio.local.      IN      A       192.168.100.200
                        IN      AAAA    ::1
/etc/namedb/100.168.192
Code:
$TTL    3600
@       IN      SOA     laboratorio.local. hostmaster.laboratorio.local.  (
                                1999012100      ; Serial
                                3600            ; Refresh
                                300             ; Retry
                                3600000         ; Expire
                                3600 )          ; Minimum
        IN      NS      laboratorio.local.
200     IN      PTR     laboratorio.local.
Here is the error:
Code:
$ nslookup laboratorio.local
Server:         8.8.8.8
Address:        8.8.8.8#53

** server can't find laboratorio.local: NXDOMAIN
Reply With Quote