Report this

What is the reason for this report?

Setting up Registrar email service with Digital Ocean DNS

Posted on August 20, 2014

Hello,

I am using a mail service from my registrar Gandi where is my domain in order to have an email like contact@domain.com ! I am using Digital Ocean DNS so Gandi tell me to put in a zone file this :

pop 10800 IN CNAME access.mail.gandi.net. webmail 10800 IN CNAME agent.mail.gandi.net. smtp 10800 IN CNAME relay.mail.gandi.net. imap 10800 IN CNAME access.mail.gandi.net. @ 10800 IN MX 10 spool.mail.gandi.net. @ 10800 IN MX 50 fb.mail.gandi.net.

I add this to my db.domain.com in etc/bind directory (Debian) and also add to DNS control panel from Digital ocean.

Seems have somme errors when testing with this command : named-checkconf -z

zone domain.com/IN: loading from master file /etc/bind/db.domain.com failed: CNAME and other data zone epsilon-lyr.com/IN: not loaded due to errors.

or with nslookup :

** server can’t find espilon-lyr.com: NXDOMAIN

What i am doing wrong ? Thanks for your help.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Zone file undo like before. Only DNS on Digital Ocean set.

Everything work fine.

Thank you :)

Are you using DigitalOcean’s DNS servers or are you using bind to create your own nameservers on a DigitalOcean droplet? In Gandi’s control panel, did you change your nameservers?

It looks like maybe you’ve worked this out already? I’m seeing the CNAME working correctly:

# dig pop.epsilon-lyr.com

; <<>> DiG 9.9.5-3-Ubuntu <<>> pop.epsilon-lyr.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21329
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;pop.epsilon-lyr.com.		IN	A

;; ANSWER SECTION:
pop.epsilon-lyr.com.	1799	IN	CNAME	access.mail.gandi.net.
access.mail.gandi.net.	18543	IN	A	217.70.184.9

;; Query time: 195 msec
;; SERVER: 8.8.4.4#53(8.8.4.4)
;; WHEN: Wed Aug 20 16:26:18 EDT 2014
;; MSG SIZE  rcvd: 99

Ok, i can receive email at last on the email contact@domain.com … So it’s works. Seems to only have to set gandi’s CNAME and MX on Digital Ocean DNS panel and not on this zone file on bind. Still have errors (same) on it.

What do you think ?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.