No DNS found at child. Extra DNS listed at parent.

I'm trying to set up a DNS with BIND. I've purchased a book but won't have it until after the weekend, and I'm eager to get started :)

I've read large parts of: (DNS for Rocket Scientists)
which is also from where I've gotten most of these configuration files.
1 )
When I start bind, I get two error messages that I find myself unable to correct:

17-Apr-2010 13:45:53.315 general: error: zone has no NS records
17-Apr-2010 13:45:53.316 general: error: zone localhost/IN: NS 'localhost' has no address records (A or AAAA)

2 )
Despite the above errors bind starts, and when I run an "undelegated test" from my TLD (.se) to see if everything is ok, I get back (translated from swedish):
"No DNS-servers were found at child.
No DNS-servers were found at the child. This normally means that the child is not configured to answer queries about the zone"

"Extra DNS-server listed at parent:
A DNS-server is listed in the parentzone but not in the childzone. This is likely an administration error. You should update the parent zone so that it lists the same DNS-servers that the child zone does as soon as possible."

A related question. Is there anything in the below configuration files that need to be kept secret and should be altered now that I've published them? There may be security implications that I don't yet understand.
options {
        directory "/var/bind";
        version "get lost";
        allow-transfer {"none";};
        pid-file "/var/run/named/";

        channel example_log{
                file "/var/log/named/named.log" versions 3 size 2m;
                severity notice;
                print-severity yes;
                print-time yes;
                print-category yes;
        category default{
// required zone for recursive queries
zone "." {
        type hint;
        file "/var/bind/";
zone "" in{
        type master;
        file "master/";
// required local host domain
zone "localhost" in{
        type master;
        file "master.localhost";
// localhost reverse map
zone "" in{
        type master;
        file "localhost.rev";


$TTL 2d    ; 172800 secs default TTL for zone
@             IN      SOA (
                2003080800 ; se = serial number
                12h        ; ref = refresh
                15m        ; ret = update retry
                3w         ; ex = expiry
                3h         ; min = minimum
                        IN      NS
                        IN      MX  10      IN      A       IN      A
www                     IN      A

$TTL    86400 ; 24 hours could have been written as 24h
$ORIGIN localhost.
; line below = localhost 1D IN SOA localhost root.localhost
@  1D  IN        SOA @  root (
                2002022401 ; serial
                3H ; refresh
                15 ; retry
                1w ; expire
                3h ; minimum
@  1D  IN  NS @
1D  IN  A
$TTL    86400 ;
; could use $ORIGIN 0.0.127.IN-ADDR.ARPA.
@       IN      SOA     localhost. root.localhost.  (
                1997022700 ; Serial
                3h      ; Refresh
                15      ; Retry
                1w      ; Expire
                3h )    ; Minimum
        IN      NS      localhost.
1       IN      PTR     localhost.

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Please explain what it is you are trying to do.  It seems to me your DNS issues can be solved fairly easily.
In my own configuration, I do not have a forward zone called localhost. I would put the following near the top of master/ (first A record):
localhost    A

In your zone file localhost.rev, do this:
1               PTR     localhost.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Also, there's nothing in that config that needs to be kept secret- there are no passwords or view configurations that would give someone insight into private data.

You might consider getting on the BIND users list. It's extremely useful! If you sign up for the digest then you won't get so many messages.
Discover the Answer to Productive IT

Discover app within WatchGuard's Wi-Fi Cloud helps you optimize W-Fi user experience with the most complete set of visibility, troubleshooting, and network health features. Quickly pinpointing network problems will lead to more happy users and most importantly, productive IT.

Jan SpringerCommented:
Your records in the localhost.rev file looks good.

Your master.localhost should have these records:

                IN NS           @
                IN A  
                IN AAAA         ::1

These are the authoritative servers that I get when querying           604740  IN      NS           604740  IN      NS           604740  IN      NS

I do not get a valid address record when querying

When querying ns1 and, I do not get an address record for

So, if your goal is to take over DNS for your own domain, get to configure an address record for for you.  Either ask them to configure to also be authoritative or remove that entry from your registrar records.
letharionAuthor Commented:
My intention is to set up my own dns master server for my private domain.

Thank you both. :) I've got my book now, so I'm gonna read up on the advice you gave.
Maybe I will sign up to the BIND list aswell :)
letharionAuthor Commented:
I should mention that after posting this question, but before I got any replies, I started over with a clean install, and read gentoo's installation instructions instead of the "dns for rocket scientists" and got it working :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.