Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2012 09:47:22 -0500
From:      "Paul A. Procacci" <pprocacci@datapipe.com>
To:        m s <mah.sa.0530@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: setting up dns server
Message-ID:  <20120704144722.GB1884@nat.myhome>
In-Reply-To: <CAH--LMcDBkOUrw=xAnZxU8hTJq==JXRU1ZqfViz7abOmJMtDNw@mail.gmail.com>
References:  <CAH--LMcDBkOUrw=xAnZxU8hTJq==JXRU1ZqfViz7abOmJMtDNw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
- What bind listening?  (Can you see it with netstat?)
- What port is it listening to?
- What errors (if any) are in the error log?

I'm afraid your question really isn't a specific FreeBSD problem.
You might have better luck on the BIND mailing list.

~Paul

On Wed, Jul 04, 2012 at 06:43:00AM -0700, m s wrote:
> Hi all.
> I want to config FreeBSD as a dns server. I did below configuration but
> when I use "nslookup" command it doesn't work. I also enabled named servi=
ce
> in rc.conf file and put my ip as a nameserver in "resolv.conf".
> what am I missing?is there anything else I should do?
>
> any help would be appriciated.
>
> My "named.conf" file:
> -------------------------------------------------------------------------=
------------------------------------------
>
> options {
>
>                 directory              "/etc/namedb";
>
>                 pid-file  "/var/run/named/pid";
>
>                 dump-file            "/var/dump/named_dump.db";
>
>                 statistics-file       "/var/stats/named.stats";
>
> };
>
>
>
> zone "." { type hint; file "/etc/namedb/named.root"; };
>
>
>
> zone "0.0.127.IN-ADDR.ARPA" {
>
>               type master;
>
>               file "master/localhost.rev;
>
> };
>
>
>
> zone "ictptk.net" { type master; file "/etc/namedb/master/db.domain"; };
>
>
>
> zone "10.10.10.in-addr.arpa" {
>
>              type master;
>
>              file "/etc/named/master/db.ict";
>
> };
>
> -------------------------------------------------------------------------=
------------------------------------------
>
>
> my "db.ict" file :
>
>
> -------------------------------------------------------------------------=
------------------------------------------
>
>
>
> $TTL       3600
>
>
>
> @            IN           SOA       ns.ictptk.net. root.ns.ictptk.net.   =
(
>
>
> 2001220200
> ;Serial
>
>                                                                 3600
> ;Refresh
>
>                                                                 900
> ;Retry
>
>
> 3600000
> ;Expire
>
>                                                                 3600
> )
>  ;Minimum
>
>                 IN           NS          ns.ictptk.net.
>
> 1              IN           PTR        ictptk.net.
>
> -------------------------------------------------------------------------=
------------------------------------------
>
> my "db.domain" file :
>
> -------------------------------------------------------------------------=
------------------------------------------
>
> $TTL       3600
>
>
>
> @            IN           SOA       ns.ictptk.net. root.ns.ictptk.net.   =
(
>
>
> 2001220200
> ;Serial
>
>                                                                 3600
> ;Refresh
>
>                                                                 900
> ;Retry
>
>
> 3600000
> ;Expire
>
>                                                                 3600
> )
>  ;Minimum
>
>                                    IN        NS         ns.ictptk.net.
>
> ictptk.net               IN          A           10.10.10.1
>
> www.ictptk.net.   IN    CNAME   ictptk.net.
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"

________________________________

This message may contain confidential or privileged information. If you are=
 not the intended recipient, please advise us immediately and delete this m=
essage. See http://www.datapipe.com/legal/email_disclaimer/ for further inf=
ormation on confidentiality and the risks of non-secure electronic communic=
ation. If you cannot access these links, please notify us by reply message =
and we will send the contents to you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120704144722.GB1884>