O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  



HACK
#56
Running Your Own Top-Level Domain
Set up your own TLD in BIND for ease of navigation
The Code
[Discuss (0) | Link to this hack]

The Code

Snippet 1

zone "bp" {
        type master;
        file "data/bp";
        allow-transfer { 192.168.1/24; };
        allow-query { 192.168.1/24; };
};

Snippet 2

$TTL 86400
@     IN SOA  ns.bp. root.homer.bp. (
                2002090100      ; Serial
                10800           ; Refresh after 3 hours
                3600            ; Retry after 1 hour
                604800          ; Expire (1 week)
                60              ; Negative expiry time
                )

      IN NS           ns.bp.

ns            IN A                 192.168.1.1

homer         IN A                 192.168.1.10
bart                IN A         192.168.1.11
lisa                IN A         192.168.1.12

Snippet 3

zone "bp" {
        type slave;
        file "db.bp";
        masters { 192.168.1.1; };
};


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.