Dave Funk wrote:
On Sat, 14 Feb 2009, Marc Perkel wrote:
Marc Perkel wrote:
Hi,
I have a quick bind question. I want to set the MX records on a
domain to something normal but I want to set the MX for all
subdomains to something else.
example.com mail.example.com
xxx.example.com blackhole.example.com
Thanks in advance
I should be more specific. I asked the question wrong.
*.example.com blackhole.example.com
What I need is that any subdomain point to blackhole.
Then replace 'xxx' with '*'. EG:
Briefly, in the zone file for example.com:
@ MX 10 mail.example.com.
* MX 10 blackhole.example.com.
Yes, it -is- that simple. ;)
Not recommended for normal use but if you understand the risks involved,
it does work that way.
Thanks Dave, but I already tried that and it didn't work.
dig @localhost churchofreality.com mx
; <<>> DiG 9.5.1-P1-RedHat-9.5.1-1.P1.fc10 <<>> @localhost
churchofreality.com mx
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 48505
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;churchofreality.com. IN MX
Thanks for the attempt though.