Avoiding having a www A REC with BIND9
Ian Spray
clug at minimal.cx
Wed Jun 10 23:20:43 CEST 2009
> If you wish to have a domain resolve to the A rec IP of your www host
> (and your www host just be a CNAME of this), how would you accomplish
> this in BIND? The record can't go in the Zone file for your domain, as
> only the hosts/subdomains go in this file? So where does it go? It
> seems to me that it would go at the REGISTRAR level, for they are the
> people that provide the 'glue records' for the nameserver addresses of
> the domains their servers refer you to, but a bit of googling hasn't
> really found much.
Hi Longman,
I'm not 100% sure I see your problem, as I think I'm doing what you
want to do already with my domain name and it's just fine:
; <<>> DiG 9.3.4-P1 <<>> www.minimal.cx A
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22192
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.minimal.cx. IN A
;; ANSWER SECTION:
www.minimal.cx. 3600 IN CNAME mail.minimal.cx.
mail.minimal.cx. 3600 IN A 217.155.68.52
;; Query time: 1456 msec
;; SERVER: 208.67.222.222#53(208.67.222.222)
;; WHEN: Wed Jun 10 16:18:14 2009
;; MSG SIZE rcvd: 67
SMTP RDNS is much more strict than HTTP, so I have my IP map back to
my name server with an A record, then have a CNAME for my www on the
same public IP.
Is this what you mean ? If so I can post fragments of my BIND config,
but if not, could you describe what you're not allowed to do ?
HTH,
--
Ian Spray
GPG Fingerprint: D170 35A3 C858 6E85 9B5B 1557 4CD5 6F6F E176 2D0A
More information about the CLUG
mailing list