Debian 7 + Bind 9 - Fresh install
I bought elfoip.net (to exepriment, so it's mine, and it's only to learn about dns, so please don't accuse me of hidden advertising !)
My registrar told my elfoip.net domain is setup for be authoritative for any elfoip.net subdomains.
To start, I'm trying to simply have access to my www.
[cut]
Is it right? www.elfoip.net is NOT responding. How can I diagnose what's wrong ?
EDIT 1: Update files after all of your suggestion applied, but still not working:
root@elfoip:/etc/bind# cat named.conf.local
zone "elfoip.net" {
type master;
file "/etc/bind/elfoip.net.db";
};
root@elfoip:/etc/bind# cat elfoip.net.db
$TTL 2d
$ORIGIN elfoip.net.
@ IN SOA ns1.elfoip.net. hostmaster.elfoip.net. (
2003080801 ; se = serial number
12h ; ref = refresh
15m ; ret = update retry
3w ; ex = expiry
2h ; min = minimum
)
@ IN NS ns1.elfoip.net.
@ IN NS ns2.elfoip.net.
elfoip.net IN A 127.0.0.1
@ IN A 109.168.99.6
www IN CNAME elfoip.net.
Actually NOT WORKING
root@elfoip:/etc/bind# dig @localhost www.elfoip.net
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @localhost www.elfoip.net
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 18850
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.elfoip.net. IN A
;; Query time: 1 msec
;; SERVER: ::1#53(::1)
;; WHEN: Fri Jun 21 14:49:44 2013
;; MSG SIZE rcvd: 32
Esit of whois: ispeed is where I bought elfoip.net
root@elfoip:/etc/bind# whois elfoip.net|grep 'Name Server'
Name Server: NS01.ISPEED.IT
Name Server: NS02.ISPEED.IT
Edit: add this simple ping test from the same machine running bind9
root@elfoip:/etc/bind# ping www.elfoip.net
ping: unknown host www.elfoip.net
root@elfoip:/etc/bind# ping elfoip.net
ping: unknown host elfoip.net
EDIT: Conclusion: I asked to my registar to create a nameserver for my domain on opensrs. Now all works ! Damn
BUT: My config file was really wrong when I posted, so I voted up all of your answers and choosen the most vote as the best. Thanks to everyone.