Here's the skinny:
I went to the DNS HOWTO at
http://www.langfeldt.net/DNS-HOWTO/B...S-HOWTO-3.html and followed the instructions, for 2 days now, and have gotten no where. So I'm going to post the relevent stuff and see if someone can see what's going wrong.
Here's the named.conf:
Code:
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
//query-source address * port 53;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};
key "rndc_key" {
algorithm hmac-md5;
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
zone "." {
type hint;
file "root.hints";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "pz/127.0.0";
};
And the zone file:
Code:
$TTL 3D
@ IN SOA ns.linux.bogus. hostmaster.linux.bogus. (
1 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS ns.linux.bogus.
1 PTR localhost.
and the rndc.conf file:
Code:
key rndc_key {
algorithm "hmac-md5";
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
options {
default-server localhost;
default-key rndc_key;
};
and when I run dig -x 127.0.0.1 I get the following:
Code:
; <<>> DiG 9.8.0 <<>> -x 127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 41960
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Apr 1 17:34:46 2011
;; MSG SIZE rcvd: 40
Notice the servfail in the top line
And when I run named-compilezone -o out 127.0.0.1 127.0.0
I get the following:
Code:
127.0.0:8: unknown RR type 'ns.linux.bogus.'
zone localhost/IN: loading from master file 127.0.0 failed: unknown class/type
zone localhost/IN: not loaded due to errors.
Any help greatly appreciated.