Catchall BIND configuration for DNS parking service
Mark Andrews
marka at isc.org
Sat Jun 11 01:46:51 UTC 2011
Named really isn't designed to be a catch all server. It's designed
to serve the configured zones and only the configured zones. That
being said the later versions of named allow zones to be added via
rndc so the configuration effort required to add a new zone is much
lower.
e.g.
rndc addzone 'example.com { type master; file "parked.domains"; };'
However if even this is too much effort I would just use a specialised
server that has been configured to know which label patterns identify
end user zones and can generate canned responses based on that
indentification.
e.g.
<label>.com
<label>.com.au
Mark
In message <4DF143B2.2090504 at ipfrom.com>, Gianfranco Pra Floriani writes:
> Hello there,
> I'm trying to configure BIND (BIND 9.7.3) as a "catchall" DNS server for a pa
> rking domain service. This is a way to let
> users/clients park their domains automatically by pointing primary and second
> ary DNS servers there. It should work with ANY TLD
> (both generic and countrycodes).
>
> In named.conf, I have created a test zone (for debugging porpuses, will be re
> moved once working):
>
> zone "working.test" IN { type master; file "parked.domains"; };
>
> and I have defined the "." zone as master:
>
> zone "." IN { type master; file "parked.domains"; };
>
> So, as you see, both working.test and "." use the same zone.
>
> The parked.domains zone looks like this:
>
> $TTL 86400
> ; parked.domains zone
> @ IN SOA ns1.parkingdomini.com. postmaster.ns1.parking
> domini.com. (
> 2011052800
> 86400
> 3600
> 604800
> 86400 )
> NS ns1.parkingdomini.com.
> NS ns2.parkingdomini.com.
>
> MX 100 mail.parkingdomini.com.
> IN A 1.2.3.4
> * IN A 1.2.3.4
>
> Here is the problem:
> If I explicitly declare a zone in named.conf with "parked.domains" as zonefil
> e, it behaves correctly. But as "catchall" is not
> anwering correctly.
> If I run:
>
> dig working.test @localhost ANY
>
> the ANSWER SECTION IS:
>
> ;; ANSWER SECTION:
> working.test. 86400 IN SOA ns1.parkingdomini.com. postma
> ster.ns1.parkingdomini.com. 2011052800 86400 3600
> 604800 86400
> working.test. 86400 IN NS ns1.parkingdomini.com.
> working.test. 86400 IN NS ns2.parkingdomini.com.
> working.test. 86400 IN MX 100 mail.parkingdomini.com.
> working.test. 86400 IN A 1.2.3.4
>
> while, if I dig anything else, the ANSWER SECTION IS:
>
> ;; ANSWER SECTION:
> somethingelse.test. 86400 IN A 1.2.3.4
>
> Why? The zone defined is exactly the same.
>
> Any help is welcome.
> Thank you
> gian
>
> _______________________________________________
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: marka at isc.org
More information about the bind-users
mailing list