LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-03-2012, 08:52 PM   #1
Ceafin
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, 02:21 PM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 773
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, 07:05 PM   #3
RobertEachus
Member
 
Registered: Dec 2011
Posts: 32

Rep: Reputation: 8
Example

Here is an example from http://www.zytrax.com/books/dns/ch6/#forwarding

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.

Code:
// FORWARDING & CACHING NAME SERVER for EXAMPLE, INC.
// maintained by: me myself alone
// CHANGELOG:
// 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 {10.0.0.1; 10.0.0.2;};
  forward only;
  // disables all zone transfer requests
  allow-transfer{"none";};
  // 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 {192.168.3.0/24;};
};
// 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
logging{
  channel example_log{
   file "/var/log/named/example.log" versions 3;
   severity info;
   print-severity yes;
   print-time yes;
   print-category yes;
 };
 category default{
  example_log;
 };
};
// required local host domain
zone "localhost" in{
  type master;
  file "pri.localhost";
  allow-update{none;};
};
// localhost reverse map
zone "0.0.127.in-addr.arpa" in{
  type master;
  file "localhost.rev";
  allow-update{none;};
};
 
  


Reply

Tags
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 05:26 PM
BIND 9 not logging to custom logs skibler1223 Linux - Server 9 05-23-2009 03:30 PM
custom/advanced??? DNS settings (BIND) dhrumantgoradia Linux - Server 2 12-08-2008 03:50 PM
amavisd-new blacklisting TLDs packetz Linux - Software 0 04-11-2005 02:07 PM
BIND: local TLD work, but not outside TLDs remi Linux - Networking 4 07-06-2004 08:25 AM


All times are GMT -5. The time now is 03:21 PM.

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