Named + DHCP

hey, I am using BIND 9.3.0 and I want to know how to add a new NS for the subdomain test.test.phukish.com, I currently run the primary server for test.phukish.com and linux.bogus any help would be appreciated, and also anyone know a good guide for setting up a DHCP server under linux? here is my named.conf file:

Code:
options {
        directory "/var/named/pz";
};
zone "linux.bogus" in {
        type master;
        file "db.linux.bogus";
};
zone "." in {
        type hint;
        file "db.cache";
};
zone "104.0.168.192.in-addr.arpa" in {
        type master;
        file "db.192.168.0.104";
};
zone "0.0.127.in-addr.arpa" in {
        type master;
        file "db.127.0.0";
};
key "rndc_key" {
        algorithm hmac-md5;
        secret "********************************************************";
};
zone "test.phukish.com" {
        type master;
        file "/var/named/test.phukish.com.hosts";
        };

the zone files:

Code:
$TTL 3h
linux.bogus. IN SOA ns.linux.bogus. postmaster.linux.bogus. (
                          1        ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 hour

;
; Name servers
;
linux.bogus.  IN NS ns.linux.bogus.
;
; Addresses for the canonical names
;
localhost.linux.bogus.  IN A     127.0.0.1
test.linux.bogus.  IN A     192.168.0.104
linux.bogus. IN A 192.168.0.104

Code:
$TTL 3h
104.0.168.192.in-addr.arpa. IN SOA ns.linux.bogus. postmaster.linux.bogus. (
                          1        ; Serial
                          3h       ; Refresh after 3 hours
                          1h       ; Retry after 1 hour
                          1w       ; Expire after 1 week
                          1h )     ; Negative caching TTL of 1 hour

;
; Name servers
;
104.0.168.192.in-addr.arpa.  IN NS ns.linux.bogus.

;
; Addresses point to canonical name
;
104.0.168.192.in-addr.arpa.  IN PTR test.linux.bogus.
 
Back
Top