Link to home
Start Free TrialLog in
Avatar of jhston
jhstonFlag for Singapore

asked on

Question about hosting email on our own server with dyndns custom dns service

Hi i have a domain which registrar/webpage hosting/email hosting service were kept with a company. however, i now wish to host my own emails, but let the company continue hosting our company's webpage. please help as i am new to this.

what i did:
1) subscribe custom dns and sendlabs service with dyndns
2) get the company to point the name server of my domain to dyndns
3) on the dyndns website, point the mx records to dyndns as well.
4) download and installl dyndns updater client on my server
5) on the dyndns website, point www.example.com to the webhosting company but point example.com and mail.example.com to my server

please see below picture:

User generated image
problems i faced:
mails does not come in, but went to the webhosting company's server instead. are there any other settings beside pointing the nameservers to dyndns?
Avatar of Toxacon
Toxacon
Flag of Finland image

You have to set the MX record to mail.abc.com to receive email.
Avatar of jhston

ASKER

but i thought dyndns says it should point to their server which is mx1.mailhop.org / mx2.mailhop.org ?
Are you sure that the authorative answer for MX records points to DynDNS? You can easily check that with nslookup.

It means that you must let DynDNS to handle all DNS for your domain and usually the web hosting company does that ==> you must assign DynDNS as your authorative DNS for your domain.
Avatar of jhston

ASKER

Name Servers:
        NS1.MYDYNDNS.ORG
        NS2.MYDYNDNS.ORG
        NS3.MYDYNDNS.ORG
        NS4.MYDYNDNS.ORG
        NS5.MYDYNDNS.ORG
 i did nslookup/whois, and the above name servers were listed. how do you check the mx records of the domain?
Avatar of jhston

ASKER

i check another time using http://network-tools.com/nslook/

the following were listed:

name class type data time to live
example.com IN MX preference: 20
exchange: mx2.mailhop.org
 3600s (1h)
example.com IN MX preference: 10
exchange: mx1.mailhop.org
 3600s (1h)
example.com  IN SOA server: ns1.mydyndns.org
email: zone-admin@dyndns.com
serial: 2011021065
refresh: 10800
retry: 1800
expire: 604800
minimum ttl: 1800
 3600s (1h)
example.com IN A 116.14.24.123 60s (1m)  (this is my server's ip)
example.com IN NS ns4.mydyndns.org 3600s (1h)
example.com IN NS ns2.mydyndns.org 3600s (1h)
example.com IN NS ns5.mydyndns.org 3600s (1h)
example.com IN NS ns3.mydyndns.org 3600s (1h)
example.com IN NS ns1.mydyndns.org 3600s (1h)
Everything seems to be ok. How long ago you did the change? Sometimes it takes up to 72 hours to propagate the change accross the Globe as local ISPs have only cached copy (secondaries) of the zone.
Avatar of jhston

ASKER

yes mail comes in now, but it also goes to the webhosting company's server once in a while, i'm login on to the webmail client of the webhosting company's server to make sure mails there get read and forwarded back to us.

by the way, i point everything including www.example.com to my server which i prefer to be hosted by the webhosting company, how do i do this?
i have the ip address of the webhosting company's server.
i mean there are some option on dyndns such as cname/webhop direct/host with ip address/offline hostname... which one do i select?
- will pointing www.example.com to the webhosting company's server affect the mails again?
- i know that i need to point mail.example.com to my server, what about example.com itself, do i point it to my server or the webhosting company's server.

i'm sorry for the the many questions asked, but i am an idiot at this.
You create an A record (host record) for host www at your domain example.com.

When a web browser looks for host www.example.com, the DynDNS server has to reply with the IP of the webhosting company.

If your email occasionally goes to webhosting company's email then there is obsolete DNS information still available somewhere in the World.
Making www.example.com to point to webhosting IP does not affect email. Configuring example.com IP address depends much about the webhosting company's ability to redirect connection attempts to the host www. Usually they are able to do that automatically. It means that if you type http://example.com to your browser the actual response comes from www.example.com.
Avatar of jhston

ASKER

hi can you further explain what does this mean "If your email occasionally goes to webhosting company's email then there is obsolete DNS information still available somewhere in the World"


another question: do you mean that for mails to come into my server, i only need mail.example.com to point to my server. whether example.com point to my server or not, it does not matter? is this correct?
ASKER CERTIFIED SOLUTION
Avatar of Toxacon
Toxacon
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jhston

ASKER

thank u, will observe for the next few days everything seems ok now