wildcard zone un-create/read/edit-able

jack

Verified User
Joined
Jul 28, 2005
Messages
52
can't creat something like this:
zone "." { type master; file "/var/named/test.com.db"; };
even though don't use it much, but it would be nice to have. (I have to manually edit the file by ssh which kinda suck.):D
 
If DA by default installed non-recursive, non-caching, nameservers, this would be an interesting option to have.

However DA nameservers are by default, recursive and caching, and most users, it seems from these forums, want them to stay recursive, and caching.

If people had the option they might try it. And no longer be able to deliver mail, etc.

In fact I'm betting very few people will want to know why you'd want to do this.

I like it for the ability to create an automatic parking page.

Jeff
 
Hello Jeff,

I'm setting named to look up domains from forwarders, but I don't want the results to be cached. Do you know how to disable DNS caching? Thanks.
 
I'm wanting to do a very similar thing.

I have a usable IP address range xxx.xxx.xx.226 - xxx.xxx.xx.230

My regular websites are on xxx.xxx.xx.226

My named is already non-recursive and not referenced in cat /etc/resolv.conf as the machine is configured to use a diferent DNS server.

I want to set up my machine so that any query to the DNS for the address of an unknown domain will return xxx.xxx.xx.227 and have apache (actually a custom php script of mine) serve requests for any domain that arrives.

I've already got the php script & around 200 domains parked on one domain (albiet on .226), but I really would like to open it up and know how to configure it.

It's my server so I have shell access as root and the DA admin password. I'm quite happy at the command line so I don't need the solution to be done by DA, but I do need it to be compatible with DA.

Any help or pointers would be appreciated.
 
jack said:
I'm setting named to look up domains from forwarders, but I don't want the results to be cached. Do you know how to disable DNS caching? Thanks.
There are lots of posts on these forums explaining this; all in the past month or so. So it should be easy to find them.

Jeff
 
Kiore said:
I want to set up my machine so that any query to the DNS for the address of an unknown domain will return xxx.xxx.xx.227 and have apache (actually a custom php script of mine) serve requests for any domain that arrives.
I hate to guess as to why you want to do this, but I know why I want to do it... so I can set up a free-parking site that will work automatically.

You can certainly create a zone manually and enter it into the /etc/named.conf file manually, as DA won't care.

I presume you know the details of how to create a zone-file manually.

So I guess the only thing I have to remind you of is that in BIND, wildcards only work if there are NO other references to the domain anywhere in your DNS zones. On either the left side or the right side.

That's the gotcha that causes the most problems when you add a record later and suddenly the wildcard doesn't work.

Good references for this can be found in the O'Reilly DNS and Bind book.

Jeff
 
Thanks Jeff

jlasman said:
I hate to guess as to why you want to do this, but I know why I want to do it... so I can set up a free-parking site that will work automatically.

Pretty much the same for me. I have some live sites & a lot of parked domain names. The parked ones are redirected to paid parking services, but I want to catch the initial request to the domain so I can see referrers & file names in the logs.

I can use the information to tweak the keyword selections for any domain with enough traffic to give useful stats. I also hope to avoid the mistake I made once before where I saw a parked domain getting lots of traffic but no revenue so I decided to develop it only to discover that the traffic was mostly hot-linked images.

I'd like to cut down my setup overhead & eliminate the chances of delegating a domain to my server but forgetting to set it up as an alias.

So I guess the only thing I have to remind you of is that in BIND, wildcards only work if there are NO other references to the domain anywhere in your DNS zones. On either the left side or the right side.

Does this mean that I can't have both example.com and *.com on the same server?
 
jlasman said:
There are lots of posts on these forums explaining this; all in the past month or so. So it should be easy to find them.

Jeff

I found a post written by you says need to remove caching-nameserver, but caching-nameserver doesn't seem to exist on my machine. I have already set named to "recursion no;". I don't know what else would do the cache job. Have to restart named to make it obtain new ip from the forwarders, even named reload doesn't work.
 
Last edited:
Kiore said:
Does this mean that I can't have both example.com and *.com on the same server?
That's a good question.

I have no idea.

If it does, then you have to run your wildcard nameserver on it's own virtual or dedicated server.

Jeff
 
jack said:
I found a post written by you says need to remove caching-nameserver, but caching-nameserver doesn't seem to exist on my machine. I have already set named to "recursion no;". I don't know what else would do the cache job. Have to restart named to make it obtain new ip from the forwarders, even named reload doesn't work.
I don't use forwarders, so I can't test. If the caching-nameserver RPM isn't installed on your system, then you obviously don't have to remove it :).

Jeff
 
Back
Top