DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
out of space in /usr/local rdikarlus OpenBSD General 2 29th December 2018 08:41 PM
mysql won't run via rc.local benben159 OpenBSD Packages and Ports 3 8th August 2010 02:41 PM
log from rc.conf.local and rc.local sdesilet OpenBSD General 1 21st January 2010 02:37 AM
local dns (dnsmasq) bsdperson FreeBSD Ports and Packages 3 3rd September 2008 06:48 AM
proxy : replace gif with local gif milo974 OpenBSD General 4 17th July 2008 06:45 AM


All times are GMT. The time now is 01:03 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick