I'm trying to set up a domain parking site. To do this, I need my DNS server to take all incoming queries that are not explicitly defined to go to a default IP address... basically wildcarding. How can I make this happen with BIND DNS? I don't want to have to add a zone file for every single domain name, since that would require separate action on the domain parker's end, and also mine.
I doubt you can do that with Bind, you need to have a zone for each domain which is what you don't want to do. There is a MySQL DNS server about, if you have the privileges (i.e. root) to use it, you can tweak it to return the same IP for unknown zones. Jay
Hi, You can easily do it with bind but it becomes significantly more complicated if you want to use the same server for forward and recursive queries. Assuming you are just using it for forward queries: Simply create a zone like the following. $ORIGIN . $TTL 3600 ; 1 hour . IN SOA ns1.example.net. dnsadmin.example.net. ( 255 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 604800 ; expire (1 week) 86400 ; minimum (1 day) ) NS ns1.example.net. NS ns2.example.net. ; define name-servers ns1.example.net. IN A 10.0.1.1 ns2.example.net. IN A 10.0.2.1 ; define wildcard-host *. IN A 10.0.3.1 Code (markup): The name-servers do not need to be defined in this zone if they are defined in a different zone on both of the name-servers you are using for your wild-card setup. In this example the ip address 10.0.3.1 will always been returned for any zone that is not ns1.example.net. or ns2.example.net.
Assuming you placed that in a file named: /var/bind/pri/root.zone (The file name doesn't matter as long as they match) zone "." { type master; notify no; file "/var/bind/pri/root.zone"; }; Code (markup):
how can I drive clicks to my domains that are parked with a domain parking company. i know this can be done