I've elfoip.net with bind
$ whois elfoip.net | grep 'Name Server'
Name Server: NS.ELFOIP.NET
I need elfoip.net be able to serve third levels domain, like mickymouse.elfoip.net, etc...
Yes, I'm trying to create an other useless dyndns clone.
i've added some third level as A RR.
Eg: executing this from the server itself
$ dig @localhost mattinauno.elfoip.net
;; ANSWER SECTION:
mattinauno.elfoip.net. 60 IN A 192.81.221.113
I was expecting in one or two days, from my pc i can digit in browser mattinauno.elfoip.net and get page a 192.81.221.113
But this is not happening.
Are there any prerequisites to satisfy to allow dns of my isp to be able to forward dns resolution of *.elfoip.net to MY dns ? (Or to ask to him and then cache ?)
TTL of zone is set a 5m
I've not AllowQuey directive, is it necessary for other dns to cache from mine ?
I've cheched the zone with bind utility named-checkzone but no error detected.
How to diagnose why other dns doesn't take in account RR from mine ?
from my home pc
dig @ns.elfoip.net mattinauno.elfoip.net
;; ANSWER SECTION:
mattinauno.elfoip.net. 60 IN A 192.81.221.113
;; AUTHORITY SECTION:
elfoip.net. 300 IN NS ns.elfoip.net.
but
dig @8.8.8.8 mattinauno.elfoip.net
give no answers
Whole zone file: note I've used nsupdate, so this file has been re-edited and re-formatted from this utility !
root@mirko:/var/named# cat elfoip.net.db
$ORIGIN .
$TTL 300 ; 5 minutes
elfoip.net IN SOA ns.elfoip.net. hostmaster.elfoip.net. (
2013062314 ; serial
3600 ; refresh (1 hour)
600 ; retry (10 minutes)
86400 ; expire (1 day)
60 ; minimum (1 minute)
)
NS ns.elfoip.net.
A 109.168.99.6
$ORIGIN elfoip.net.
$TTL 60 ; 1 minute
google A 173.194.35.56
maiscai A 192.81.221.113
mattinadue A 192.81.221.113
mattinauno A 192.81.221.113
$TTL 300 ; 5 minutes
ns A 109.168.99.6
$TTL 60 ; 1 minute
prova A 208.67.222.222
prova2 A 13.23.34.45
A 13.23.34.46
www CNAME elfoip.net.
EDIT: added named.conf.local
zone "elfoip.net" {
type master;
// file "/etc/bind/elfoip.net.db";
file "/var/named/elfoip.net.db";
allow-update { key elfoip.net ; };
};
EDIT: I've no setup list-on directive
*EDIT Added a TCPDUMP after
[email protected] wwww.elfoip.net from a machine which uses my company internal dns, who allow recursive query.
root@mirko:~# tcpdump -i eth0 'port 53'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
11:57:23.293611 IP host9-210-static.22-87-b.business.telecomitalia.it.45958 > mirko.elfoip.net.domain: 61337+ A? www.elfoip.net. (32)
11:57:23.294114 IP mirko.elfoip.net.domain > host9-210-static.22-87-b.business.telecomitalia.it.45958: 61337* 2/1/1 CNAME elfoip.net., A 109.168.99.6 (95)
11:57:23.294554 IP mirko.elfoip.net.59571 > google-public-dns-a.google.com.domain: 45851+ PTR? 9.210.22.87.in-addr.arpa. (42)
11:57:23.330444 IP google-public-dns-a.google.com.domain > mirko.elfoip.net.59571: 45851 1/0/0 PTR host9-210-static.22-87-b.business.telecomitalia.it. (106)
11:57:23.331181 IP mirko.elfoip.net.44171 > google-public-dns-a.google.com.domain: 33339+ PTR? 8.8.8.8.in-addr.arpa. (38)
11:57:23.439405 IP google-public-dns-a.google.com.domain > mirko.elfoip.net.44171: 33339 1/0/0 PTR google-public-dns-a.google.com. (82)
11:57:31.350654 IP host9-210-static.22-87-b.business.telecomitalia.it.30108 > mirko.elfoip.net.domain: 38269 [1au] A? ns.elfoip.net. (42)
11:57:31.351117 IP mirko.elfoip.net.domain > host9-210-static.22-87-b.business.telecomitalia.it.30108: 38269* 1/1/1 A 109.168.99.6 (72)
If i dig @8.8.8.8 www.elfoip.net, NOTHING happens in dump log !