Hello, I have a quick question: How can I run a domain on two different webservers? I need this because I must run the mail server on a computer inside the company and the website on a server with bluehost.com. Is there a way that all the records (ns, mx etc.) point to the company server and only http requests are being sent to bluehost? Or shall I change the ns to point to bluehost and change the mx settings to point to the company mail server? Please advise... Thank you, Marius
make subdomains, mail.domain.com should be in mx record and point to company server, www.domain.com should point to bluehost server
Thanks for your reply. But how do I treat non-www http requests? ie. www.domain.com should go to the same page as domain.com. Can you please provide me with an example of these specific DNS records? Thank you!
you can make it in several ways... for example : setup dns records for www.domain and domain to same ip at you hosting provider define ns.domain host as your nameserver and point it to your company ip (running named obviously), this is optional, btw, you can use free dns management provider like zoneedit, great service, free, stable, and no maintenance headache and really easy way to manage all dns records make new mx record for mail.domain that should handle all mail related stuff for the domain and point it to your company's mail server, just make sure to setup reverse dns for mail server ip to match your domain and its advisable to add spf record also, or you wont be able to send mail to most big mail providers like gmail, hotmail, yahoo etc...
here is the example you looking for: user@host:~$ dig cnn.com ; <<>> DiG 9.5.1-P3 <<>> cnn.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23194 ;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 3, ADDITIONAL: 0 ;; QUESTION SECTION: ;cnn.com. IN A ;; ANSWER SECTION: cnn.com. 300 IN A 157.166.224.25 cnn.com. 300 IN A 157.166.224.26 cnn.com. 300 IN A 157.166.226.25 cnn.com. 300 IN A 157.166.226.26 cnn.com. 300 IN A 157.166.255.18 cnn.com. 300 IN A 157.166.255.19 ;; AUTHORITY SECTION: cnn.com. 600 IN NS ns5.timewarner.net. cnn.com. 600 IN NS ns1.timewarner.net. cnn.com. 600 IN NS ns3.timewarner.net. ;; Query time: 50 msec ;; SERVER: 69.197.153.253#53(69.197.153.253) ;; WHEN: Wed Feb 3 19:20:08 2010 ;; MSG SIZE rcvd: 189 user@host:~$ host cnn.com cnn.com has address 157.166.255.19 cnn.com has address 157.166.224.25 cnn.com has address 157.166.224.26 cnn.com has address 157.166.226.25 cnn.com has address 157.166.226.26 cnn.com has address 157.166.255.18 cnn.com mail is handled by 10 atlmail3.turner.com. cnn.com mail is handled by 10 atlmail5.turner.com. cnn.com mail is handled by 10 hkgmail1.turner.com. cnn.com mail is handled by 10 lonmail1.turner.com. cnn.com mail is handled by 10 nycmail1.turner.com. cnn.com mail is handled by 10 nycmail2.turner.com. user@host:~$ host www.cnn.com www.cnn.com has address 157.166.224.26 www.cnn.com has address 157.166.226.25 www.cnn.com has address 157.166.226.26 www.cnn.com has address 157.166.255.18 www.cnn.com has address 157.166.255.19 www.cnn.com has address 157.166.224.25 user@host:~$