[MaraDNS list] syntax and wildcards

Remco Rijnders remco at webconquest.com
Thu May 19 12:21:46 EDT 2011


On Thu, May 19, 2011 at 11:28:48AM -0400, Mike Sands wrote:
>
>I'm having a bit of trouble with finding the right syntax to set up a default record for a zone. I've been able to get it partially working
>
>I want to respond to requests for 'example.com' with the address for 'www.example.com'
>
>Using the wildcard record I've been able to get it to respond for requests that don't exist in the db file like
>'no-record.example.com' but not when a user requests just 'example.com'
>
>Is there a better way to do this or is my syntax just wrong?
>
>This is an example of what I have in my db file.
>
>www.%  +86400                   A       10.1.10.10 ~
>*.%    +86400                   A       10.1.10.10 ~

Hi Mike,

Adding a record like

%       +86400                   A       10.1.10.10 ~

to your zone file should do the trick.

Cheers,

Remco



More information about the list mailing list