Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Mark Rogers on April 02, 2002, 02:08:44 PM

Title: Wildcard DNS entries
Post by: Mark Rogers on April 02, 2002, 02:08:44 PM
I posted this to General Discussion without response but with hindsight it's probably better here (apologies to anyone who sees it twice)

Are wildcard entries possible with the e-smith DNS setup? I don't mind hacking files directly as long as I know where to go.

I have an internal webserver "webserver", which with my previous DNS setup (pre- e-smith) could be accessed from anywhere as just "webserver" (no domain suffix) or "sitename.webserver" where sitename is any one of about 100 test sites which I have set up as virtual hosts on the server.

Note: webserver is another machine on my network, it is *not* the e-smith machine.

Can anyone help?
Title: Re: Wildcard DNS entries
Post by: Mark Rogers on April 02, 2002, 08:25:52 PM
To follow up my own post, I have proved that adding
   *.webserver       IN      A       192.168.10.10

.. to /home/dns/var/named/db.mydomain.co.uk works.

However, hacking the db.* file directly is a Bad Idea [tm] so can someone tell me where I should put it instead?

It would be nice if the front end allowed me to put *.webserver in directly but it doesn't. Where do the scripts that generate the db.mydomain.co.uk file get the list of hosts from?