Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-03-2012, 07:52 PM   #1
LQ Newbie
Registered: Jan 2005
Location: Texas
Distribution: #!
Posts: 3

Rep: Reputation: 0
Question Bind with TLDs for custom community use

I am clearly making this harder than it must be, because I am just not seeing how to make my own TLD for myself and my friends to point.

Running off the ideas of OpenNIC, meshnet, and MyLittleDNS, I have a little linux VPS out in the net with a static IP, and I wanted to set up BIND to serve out a custom TLD as a root-server that only those who knew to point to my server would be able to resolve, AND point to/forward/etc the OpenNIC root servers, so that normal interneting is still possible.

Yet, I am clearly making this harder than it is, because I can't find any examples or help on how to use BIND for your own root-server and host a custom TLD.

Any forum threads or web sites that I could be pointed to, since my googleFu isn't strong enough? Or better yet, starting with working code/.conf files to be as the example or "goal" and pick them apart and disect them to see how they work until I break it, and then start back with the original again.

Yes, I am a newbie, I admit I haven't found a solution yet, thus I ask my question, so I appreciate "No"s over big long rants of flaming and how disappointing I must be to everyone and how you're not going to assist.

Otherwise, I greatly appreciate any help you provide in advance! [](/a22)
Old 04-09-2012, 01:21 PM   #2
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 780
Blog Entries: 6

Rep: Reputation: 75
as i understood , you want to use your own unregistered domain but then the domain must be resolved
within your community or group

in my mind this is not very difficult

first you need to setup your own dns server and make it run, then tell your friend to use
your own created dns server, from there you can setup whatever domain your want and your
friend should be able to use it

if this is right then your part is not able to setup bind dns please open new thread with bind related
Old 07-05-2012, 06:05 PM   #3
Registered: Dec 2011
Posts: 32

Rep: Reputation: 8

Here is an example from

If you look at the localhost zone statement this is exactly what you want for a custom TLD.

Note: Domain names are cheep and owning your own domain name means all computers will be able to get to it... slightly cooler I think, as lots of places block you from using a DNS server on the internet... so as your laptops ect move around you will have to keep changing the DNS servers to and from your custom DNS server. If you just want it to work regardless of the DNS servers you could always just add host file entry's on the computers instead of using a custom DNS server.

// maintained by: me myself alone
// 1. 9 july 2003 - did something
// 2. 16 july 2003 - did something else
// 3. 23 july 2003 - did something more
options {
  directory "/var/named";
  // version statement - inhibited for security
  // (avoids hacking any known weaknesses)	
  version "not currently available";
  forwarders {;;};
  forward only;
  // disables all zone transfer requests
  // Closed DNS - permits only local IPs to issue queries 
  // remove if an Open DNS required to support all users 
  // or add additional IP ranges 
  // in this case either allow-query or allow-recursion can be used
  allow-query {;};
// log to /var/log/example.log all events from
// info UP in severity (no debug)
// defaults to use 3 files in rotation
// BIND 8.x logging MUST COME FIRST in this file
// BIND 9.x parses the whole file before using the log
// failure messages up to this point are in (syslog)
// typically /var/log/messages
  channel example_log{
   file "/var/log/named/example.log" versions 3;
   severity info;
   print-severity yes;
   print-time yes;
   print-category yes;
 category default{
// required local host domain
zone "localhost" in{
  type master;
  file "pri.localhost";
// localhost reverse map
zone "" in{
  type master;
  file "localhost.rev";


bind, dns, nameserver

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix: blocking OUTBOUND email to certain TLDs jkd_dude Linux - Software 0 10-25-2011 04:26 PM
BIND 9 not logging to custom logs skibler1223 Linux - Server 9 05-23-2009 02:30 PM
custom/advanced??? DNS settings (BIND) dhrumantgoradia Linux - Server 2 12-08-2008 02:50 PM
amavisd-new blacklisting TLDs packetz Linux - Software 0 04-11-2005 01:07 PM
BIND: local TLD work, but not outside TLDs remi Linux - Networking 4 07-06-2004 07:25 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration