Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-25-2006, 11:59 PM
|
#1
|
Member
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190
Rep:
|
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
|
|
|
03-26-2006, 07:24 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
|
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
|
|
|
03-26-2006, 11:14 AM
|
#3
|
Member
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190
Original Poster
Rep:
|
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.
|
|
|
03-26-2006, 12:26 PM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
|
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.
|
|
|
03-26-2006, 06:29 PM
|
#5
|
Member
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620
Rep:
|
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 04:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|