Re: [MaraDNS list] syntax and wildcards

Remco Rijnders <[email protected]>
Newsgroups gmane.network.dns.maradns.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.