Okay... I've been reading up quite a bit. All the tutorials tell me what each record type is for, how to setup a master/slave zone, etc. What I need to know is what zones are required for this to work.
Here is what I have so far:
Linux hostname set to: myname.local
I've created a Master zone: myname.local
Here are my records:
myname.local. NS mail1.myname.local.
mail1.myname.local A 192.168.2.50
myname.local. MX 10 mail1.myname.local.
I've create a Master zone (reverse): 192.168.2
Here are my records:
2.168.192.in-addr.arpa. NS Default mail1.myname.local.
50.2.168.192.in-addr.arpa. PTR Default mail1.myname.local.
Webmin (or BIND) created the following master zones:
Root Zone
0
127
255
localhost
My problem is that I'm now trying to test things to make sure they are setup correctly. If I goto the command prompt and type "# dig localhost" I get the ANSWER field returned. If is type in "# dig myname.local" or "# dig mail1.myname.local" there is no ANSWER field returned. I have applied the settings with the BIND module.
Can someone please tell me what I've done wrong? Here is what I'm getting in response:
# dig localhost
Code:
# dig localhost
; <<>> DiG 9.7.0-P1 <<>> localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48651
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;localhost. IN A
;; ANSWER SECTION:
localhost. 1 IN A 127.0.0.1
;; Query time: 1 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Sat Aug 13 00:30:33 2011
;; MSG SIZE rcvd: 43
# dig thornton.local
Code:
# dig thornton.local
; <<>> DiG 9.7.0-P1 <<>> thornton.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 15237
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;thornton.local. IN A
;; Query time: 1 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Sat Aug 13 00:31:34 2011
;; MSG SIZE rcvd: 32
# dig mail1.thornton.local
Code:
# dig mail1.thornton.local
; <<>> DiG 9.7.0-P1 <<>> mail1.thornton.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 55887
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mail1.thornton.local. IN A
;; Query time: 2 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Sat Aug 13 00:32:45 2011
;; MSG SIZE rcvd: 38
I don't understand what I've done wrong, it all looks correct to me.