LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Running my own top level domain with BIND9 (https://www.linuxquestions.org/questions/linux-networking-3/running-my-own-top-level-domain-with-bind9-428548/)

KneeLess 03-25-2006 11:59 PM

Running my own top level domain with BIND9
 
Hello, I am attempting to run my own TLD but named is telling me that it has no NS records, and won't resolve. I don't know much about BIND, and what I have is a crudely amalgamated configuration pieced together from several books and websites. The command 'host emory.athf' doesn't work (well, obviously).

named.conf:
Code:

zone "athf" IN {
  type master;
  file "athf";
  allow-transfer { 10.0.0.0/8; };
  allow-query { 10.0.0.0/8; };
};

/etc/namedb/athf:
Code:

$ORIGIN athf.
$TTL 86400

@ IN SOA emory.athf. root.emory.athf. (
2002090100 ;
10800 ;
3600 ;
604800 ;
60 ;
)

IN NS emory.

ns IN A 10.0.0.1
nic IN A 10.0.0.1

emory IN A 10.0.0.1
majorshake IN A 10.0.0.50

And here is the actual error from /var/log/messages:
Code:

Mar 26 00:48:50 Emory named[1302]: zone athf/IN: has no NS records

bathory 03-26-2006 07:24 AM

Quote:

IN NS emory.
Well, this is wrong. You should either remove the trailing dot, or write the full hostname ending whith the dot.
Code:

IN NS emory
or
IN NS emory.athf.

That is because if the dot is not present, bind adds the domain at the end

KneeLess 03-26-2006 11:14 AM

Quote:

Originally Posted by bathory
Well, this is wrong. You should either remove the trailing dot, or write the full hostname ending whith the dot.

Okay, I changed my file to this now:
Code:

$ORIGIN athf.
$TTL 86400

@ IN SOA emory.athf. root.emory.athf. (
2002090100 ;
10800 ;
3600 ;
604800 ;
60 ;
)

IN NS emory

ns IN A 10.0.0.1
nic IN A 10.0.0.1

emory IN A 10.0.0.1
majorshake IN A 10.0.0.50

Unfortunately, the same error comes up with either of your fixes.

bathory 03-26-2006 12:26 PM

Quote:

2002090100 ;
You didn't change the serial? Everytime you make a change in a zone file you must increase the serial, so that named re-reads it. Note that the format of the seriai is usually YYYYMMDDNN (Year, Month, Day, revision Number), so you always know when you last changed it.

scowles 03-26-2006 06:29 PM

Either indent your NS record (continuation from previous record) or change it to:

@ IN NS emory


All times are GMT -5. The time now is 11:51 AM.