Solved

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

Posted on 2011-02-11
12
734 Views
Last Modified: 2012-06-27
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:

picture
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?
0
Comment
Question by:jhston
  • 6
  • 6
12 Comments
 
LVL 8

Expert Comment

by:Toxacon
ID: 34872476
You have to set the MX record to mail.abc.com to receive email.
0
 

Author Comment

by:jhston
ID: 34876415
but i thought dyndns says it should point to their server which is mx1.mailhop.org / mx2.mailhop.org ?
0
 
LVL 8

Expert Comment

by:Toxacon
ID: 34877312
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.
0
 

Author Comment

by:jhston
ID: 34877321
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?
0
 

Author Comment

by:jhston
ID: 34877337
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)
0
 
LVL 8

Expert Comment

by:Toxacon
ID: 34877366
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.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:jhston
ID: 34877388
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.
0
 
LVL 8

Expert Comment

by:Toxacon
ID: 34877908
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.
0
 
LVL 8

Expert Comment

by:Toxacon
ID: 34877929
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.
0
 

Author Comment

by:jhston
ID: 34878058
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?
0
 
LVL 8

Accepted Solution

by:
Toxacon earned 500 total points
ID: 34878180
DNS is based on zones. A zone contains information about a domain such as administrative contact, mail exchanger (MX), hosts (A) and aliases (CNAME). Someone always owns a zone or domain. The .com domain is owned somewhere in the US and you own the example.com. The DNS is a distributed system and to prevent provider such as DynDNS dying under DNS queries and prevent internet congestion, the zone data is copied accross the world to secondary DNS servers of local ISPs. For example, your domain data should be redownloaded to local cahe every 10800 seconds which is three hours. The zone expires in 604800 seconds which is seven days. Expiration means that zone information older than 7 days must not be used. So, technically, it is possible to receive email to the old MX seven days from the change but usually the ISPs copy it (the copy process is called zone transfer) more frequently.

According to the DNS information, emails to your domain will be primarily sent to mx1.mailhop.org. The mx1.mailhop.org is configured to relay the email to your server mail.example.com. Where the example.com is pointing has no effect on email and it does not technically matter if there is no IP for that at all. However, in practice it does: you can type word 'example' the URL box of your Internet Explorer and it will possibly try to add suffix .com to the address. If your example.com points to your website, the browser can access your website. Otherwise the person needs to type www.example.com.
0
 

Author Closing Comment

by:jhston
ID: 34878208
thank u, will observe for the next few days everything seems ok now
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates‚Ķ

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now