Google Answers Logo
View Question
 
Q: Problem with wildcard's in DNS ( Answered,   0 Comments )
Question  
Subject: Problem with wildcard's in DNS
Category: Computers > Internet
Asked by: tbach-ga
List Price: $2.00
Posted: 07 Apr 2003 17:12 PDT
Expires: 07 May 2003 17:12 PDT
Question ID: 187400
I need to know how to make it so i can answer with a particular MX for
all my domains.
Right now i have used a wildcard to match all domains that lookup to a
ip but for some reason i cant get MX to work.
Answer  
Subject: Re: Problem with wildcard's in DNS
Answered By: cerebrate-ga on 08 Apr 2003 02:29 PDT
 
Dear tbach-ga,

While I'd really need to see the zone file in question to diagnose
your problem with certainty, I strongly suspect that this particular
counter-intuitive behaviour is to blame:

What are the limitations of wildcards? Wildcards do not match names
for which there is already data. Suppose you did use wildcards within
your zone data, as in these partial contents of db.movie:

*     IN  MX  10 mail-hub.movie.edu.
et    IN  MX  10 et.movie.edu.
jaws  IN  A   192.253.253.113
fx    IN  NS  bladerunner.fx.movie.edu.
fx    IN  NS  outland.fx.movie.edu.

Mail to terminator.movie.edu will be sent to mail-hub, but mail to
et.movie.edu will be sent directly to et. An MX lookup of
jaws.movie.edu would result in a response that said there was no MX
data for that name. The wildcard doesn't apply because an A record
exists. The wildcard also doesn't apply to domain names in
fx.movie.edu, because they don't apply across delegation."
  - "DNS & BIND", Third Edition, Cricket Liu & Paul Albitz,
    O'Reilly & Associates, 1998
    http://www.defcon1.org/e-books/ch15_02.htm

"Does BIND not understand wildcard MX records such as the following? 

     *.foo.com       MX      0       mail.foo.com.

No. It just doesn't work. 

Explicit RR's at one level of specificity will, by design, "block" a
wildcard at a lesser level of specificity. I suspect that you have an
RR (an A RR, perhaps?) for "bar.foo.com" which is blocking the
application of your "*.foo.com" wildcard. The initial MX query is thus
failing (NOERROR but an answer count of 0), and the backup query finds
the A RR for "bar.foo.com" and uses it to deliver the mail directly
(which is what you DIDN'T want it to do). Adding an explicit MX RR for
the host is therefore the right way to handle this situation.

See RFC 1034, Section 4.3.3 ("Wildcards") for more information on this
"blocking" behavior, along with an illustrative example. See also RFC
974 for an explanation of standard mailer behavior in the face of an
"empty" response to one's MX query.

Basically, what it boils down to is, there is no point in trying to
use a wildcard MX for a host which is otherwise listed in the DNS.

It just doesn't work."
  - Question 5.9: wildcard MX records, comp.protocols.tcp-ip.domains
FAQ
    http://www.intac.com/~cdp/cptd-faq/section5.html#mx

If you have any other records for the domains you're trying to match,
in other words, your wildcard MX record won't match them. You'll need
explicit MX records for them.

If this answer isn't quite what you're looking for, please feel free
to request a clarification.

cerebrate-ga

Search strategy:

Personal knowledge as hostmaster
Google search, "wildcard MX records" -
://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=wildcard+MX+records

Request for Answer Clarification by tbach-ga on 08 Apr 2003 13:28 PDT
So your basicly saying its not possible really right?
Maybe something i can do on sendmail itself then??
I would be happy right now for just getting a few select domains
working.
I thought i could do a wildcard to match all domains to goto a
specific ip and just do select domains to certain ip's but that doesnt
seem to be working.
Here's my present config.
-----------named.conf-----------
options {
        directory "/zones/all";
};

zone "242.28.66.in-addr.arpa" {
        type slave;
        file "242.28.66.in-addr.arpa";
};

zone "voipconnection.net" {
        type master;
        file "voipconnection.net";
};
zone "thehalsteadfamily.com" {
        type master;
        file "thehalsteadfamily.com";
};
zone "." in {
    type master;
    file "dummy";
----------------------------------------------------------
I thought if i moved the last lines to the end it would help but no
luck..Didnt make a difference.
Here's what dummy file looks like.
-----dummy---
; Zone created: Sat Oct 19 13:43:09 EDT 2002

$TTL 86400
@ IN SOA ns.yku.org. quicknet.hotmail.com. (
        20021019        ; Serial
        10800           ; Refresh after 3 hours
        3600            ; Retry after 1 hour
        604800          ; Expire after 1 week
        86400   )       ; Minimum TTL of 1 day

                        IN      NS      ns.10k.net.
                        IN      NS      ns2.10k.net.
                        IN      MX      0 mail.whitie.com.
mail.whitie.com.        IN A    A 66.46.125.1
www.            IN      A       207.44.152.22
ftp.            IN      A       207.44.152.22
*.              IN      A       207.44.152.22
-------------------------------------------------------
So basicly i want everything to use mail.whitie.com
I have also tried changing just the domain itself in the zone files
and having say voipconnection.net have a different ip and mx exchanger
but that isnt working.
Heres a example of z9.org which i used to have in /etc/named.conf but
it didnt work it just used dummy file values.

-----------------z9.org zone file contents-----
; Zone created: Sat Oct 19 13:43:09 EDT 2002

$TTL 86400
@ IN SOA ns.yku.org. quicknet.hotmail.com. (
        20021019        ; Serial
        10800           ; Refresh after 3 hours
        3600            ; Retry after 1 hour
        604800          ; Expire after 1 week
        86400   )       ; Minimum TTL of 1 day

                        IN      NS      ns.yku.org.
                        IN      NS      ns.wp.nu.
                        IN      MX      10 ns.10k.net.
ns.yku.org.             IN      A       64.246.28.100
ns.wp.nu.               IN      A       216.234.186.200
z9.org.         IN      A       64.246.28.100
*.z9.org.               IN      A       64.246.28.100

------------------------------------------------------------------

I am working if there's maybe a sendmail option that would help with
the mailing thing.
Not sure what to do about the seperate domains except for sending them
to another nameserver.
Hopefully there's a easier solution then that though.
So basicly i want to if anyone looks up any of my domains that use
ns.10k.net it will use dummy values.
If i have a zone files entry in named.conf use it's values.
Right now i get no MX entry for anything.
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy