How To Setup DNS For 2 Servers With One Domain Name
Apr 8, 2008
I have 2 servers. How do I setup the DSN for these 2 servers with my domain? For example, I have domain "mydomain.com" and server1 and server2. I want
ns1.mydomain.com, ns2.mydomain.com --> server1
ns3.mydomain.com, ns4.mydomain.com --> server2
We have two in-house servers, one is hosting our public web server. The other one was just purchased to host a mirror of the production server (as a backup). The site is protected by an SSL cert... my question is how do i set up the server(s) so if/when the backup server needs to be switched into produciton, the SSL cert will transition flawlessly?
We are currently looking into getting a new setup to serve our online store, and I would be thankful for feedback as to which servers to choose.
Today almost the entire store is on a single three year old dual proc/dual core server (4 gb ram, RAID5) that is beginning to get overloaded. (There is also a simpler secondary server that serves some static content and does some cron jobs.)
The system is a in-house developed LAMP (where the P is mod_perl/Mason). The database is rather large, two tables with 2-6 million rows are hit multiple times on most public pages - these grow with ~10% per year. Several other often-used tables are in the few-hundred thousand to a million rows, also continuously growing.
We anticipate rapid sales/visit growth over the next couple of years (a good day today is 6000-8000 visits), so I'm thinking of separating the database and web server. The most likely hosting candidate right now is Softlayer's WDC data center (we are located in Europe).
With that background, does this sound like an adequate setup:
Database server Dual Xeon 5430 - 2.66GHz 8GB ram RAIDed 3x73GB (or possibly 147GB) (15k rpm). I'm thinking RAID1? The big tables are not written to too much during the day, so read performance is more important than writing. Web server
This (these) would be serving the Apache/mod_perl part of the system. Some static content (images and some PDFs) unless we put them on a separate server (all static content are placed in a single folder so it would be easy to do a mod_rewrite to an image server). Dual Xeon 5050 or 7320 4GB ram 2x73GB (SCSI 10k rpm) RAID1
I don't think we need to load balance between two web servers from the beginning but that is something we will keep in mind (and hopefully have to do at some point). Are the two configurations sane (or is one overkill compared to the other)? Generally, how many web servers can a single database server serve? Email is handled separately (Google Apps). I estimate our budget to not more than $1000-1500 a month (if we go with Softlayer we will most likely use some other services such as firewalls, SAN and so on).
We currently use Suse, I have previously used RedHat on personal servers at ThePlanet. Is RedHat 4 32-bit a sensible choice? I have some experience with CPanel so we would most likely use that.
We're building a bunch of new servers (as I mentioned in another thread). What do you guys think is the best drive layout? Traditionally we just have the entire 4-6 drives in a RAID 5, but now I'm wondering if it makes sense to have a separate OS drive, and then the rest in a raid 5?
On a side note, we need a giant ~2TB-3TB partition on these boxes, that's why we go with the multi-drive raid setup. Thoughts? I know it was customary to have a separate OS drive back in the day (I remember having WD raptor's for that), but now when the WD Black-edition (which we'll be using for the raid setup) are as fast as the raptor's, is it even worth it?
I have a server at volumedrive it has cpanel and whm installed etc I am trying to setup the name servers but everytime it fails is there something that I might be missing?
some setup recommendations as I feel I have outgrown my current server.
I have two websites:
#1 is a busy vBulletin based forum with 42,000 members.
#2 is a website with Wordpress and Vbulletin installed (though the forum is nowhere near as busy as the first site) and gets roughly 2000 uniques a day.
When site #2 gets a good surge of visitors from offline media or a large site, site #1 will die first with the "mysql error: too many connections" error and site #2 will take a very very long time to load.
For every other day, the load is quite low, nearly always under 1.50.
The current server that both sites reside on has the following specs:
Quote:
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 2.66GHz stepping : 9 cpu MHz : 2667.540 cache size : 512 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr bogomips : 5339.18
One of our customers need to use a domain.de (.de ext), he registered the domain using godaddy, and godaddy have a few very special requirements for .de domains:
• The first 3 bits of the IP address (C-class) is different for each name server. • A glue record is necessary for the domain on the name servers. • The SOA (Start of Authority) must be within the following guidelines:
This is all done, 2 different C class IPs for each name servers, glue record, and SOA has been configured between specified values. Because of the 2 C class, we created DNS at server1, and pointed all www traffic to server2 (where the domain.de will be hosted)
This is the DNS zone at server1 (an Ensim server):
$ORIGIN . $TTL 3600 ; 1 hour sitename.de IN SOA nameserver1.server.com. support@hostingcompany.com. ( 2008010804 ; serial 10000 ; refresh (1 hour) 1800 ; retry (10 minutes) 604800 ; expire (2 weeks) 345600 ; minimum (1 hour) ) NS nameserver1.server.com. NS nameserver2.server2.com. $TTL 86400 ; 1 day A XX.XX.XX.XX $ORIGIN sitename.de. ftp A XX.XX.XX.XX www A XX.XX.XX.XX
This is the DNS zone at server2 (an cPanel server):
; Modified by Web Host Manager ; Zone File for sitename.de $TTL 3600 @ 86400 IN SOA nameserver2.server2.com. support@hostingcompany.com. ( 2008010804 10000 1800 604800 345600 )
sitename.de. 86400 IN NS nameserver2.server2.com. sitename.de. 86400 IN NS nameserver3.server2.com.
sitename.de. 14400 IN A XX.XX.XX.XX
localhost.sitename.de. 14400 IN A 127.0.0.1
sitename.de. 14400 IN MX 0 sitename.de.
mail 14400 IN CNAME sitename.de. www 14400 IN A sitename.de. ftp 14400 IN A XX.XX.XX.XX While checking the domain at [url], an error appears:
Zone sitename.de. Primary nameserver1.server.com. IP_ADDRESS_HERE Secondary nameserver2.server2.com. IP_ADDRESS_HERE
Test results
---- fatal ---- f: [TEST SOA record present]: server failure (IN/SOA: sitename.de.)
* nameserver2.server.com./IP_ADDRESS_HERE
I have verified every single thing at sitename.de.db on both servers at /var/named/, disabled DNS Recursion protection, stopped firewall, and the error continues.
And the error as you can see only happens with SOA at second server.
I have a VPS account with WHM/Cpanel console access. I have three domains that I am trying to setup. Within WHM I have setup three different accounts, one for each domain. I am able to login to the cPanel for all three accounts. This also created a new web directory for each domain in /home/domain_name/public_html/. I have placed my default index.php in all three public_html with the same permissions. But only 1 domain is working the other two are not. What am I missing? I have confirmed that all three have the correct DNS servers with godaddy and I can do an nslookup on all three. My provider told me to share the IP so that is what I am configured as..
Hi there, i have few question for the best suited DNS Setup for our compagny.
We have tree server located in montreal. Two are running web services, one of them is only for dns ( home server ).
Two main server have Whm/Cpanel. One run Cpanel Dns only.
Main server have 7 ips each Dns server, only have 1
Let say we use domain xxx.com Right now we have ns1/ns2/ns3/ns4 point to server1 ns5/ns6/ns7 point to server2
We have no Nameserver that point to our dns only server for now. I'd like to advoid runing DNS Service on all of them, maybe having two slave one master would be fine. Question: What would be the best suited dns setup with my current config for best responding time and fast replication?
I just got a VPS plan for the first time where I want to host several new websites. In the past I've used individual accounts to host a couple of other websites and haven't paid much attention to nameserver setup, just configured at my registrar whatever I was given from the hosting service.
So, I got a brand new domain to act as the host of the rest of the domains I'm setting up: www.example.com.
In the VPS I have setup this one as the default domain for nameservers: ns1.example.com ns2.example.com
Question 1: - Can I setup ns1.example.com and ns2.example.com as the nameserververs for www.example.com ? i.e. nameserver is used for the same domain in which it is named. Even if this is possible, is it a good idea or would it be better to host it somewhere else? When I try to define those as the nameservers in Godaddy I get the error message Nameserver not registered. What am I missing?
Other DNS questions Question 2: - If I host my nameservers in my VPS, I will need a separate IP for each one (ns1, ns2...and so on). Can I still use those IP's to actually host websites, or do I need additional IP's to host the actual sites? Any value in keeping each IP dedicated to a nameserver?
For example: IP#1 = used for ns1 IP#2 = used for ns2 IP#1 = used for website 1 IP#2 = used for website 2
Question 3: - Are DNS backup services valuable if I host my own nameservers? Any suggestions on good quality providers? Price not an issue.
Question 4: - If I used DNS backup services for example.com will that apply to ns1.example.com and ns2.example.com which I used for my VPS? and therefore will be applicable to other domains I host? Does this make sense? Or would I need a separate backup for each domain I host? Can I use one backup for multiple domains?
Question 5: - What are the drawbacks of hosting multiple sites under the same IP? I control all sites under these IPs
Question 6: - Can somebody recommend a good resource to learn how IP, DNS, nameservers, etc work? Any book, paid website, video... anything ? While there's a ton of info on the web, all is scattered and none seems to be too detailed enough for somebody starting to learn about this.
I have registered a domain using godaddy. I have hosted my site on a server of my shared hosting provider(lets call them X).Currently I have pointed mydomain.com to the server and it is up and running.Sometimes, I have experienced downtimes.
In order to solve this problem, I have hosted a clone of my site on another server from another hosting company(lets call them Y).
1. I want mydomain.com to point to Y when X is down
2. again point it to X when it is up.
My main aim is to have my site live with less downtime. The probability having both servers down is very less.
I dont know if it is technically feasible, just a thought out of dirty mind. I tried to google but was not able to find an answer specific to my problem.
Can anybody tell me how to achieve this through godaddy domain.
Added note, My site is not a commercial site and I cant afford large dedicated servers with clustering and failovers.
I am looking for setup a gateway (reverse proxy I guess?), specifically how to configure Apache to point to different webservers depending on domain name.
I currently have a single webserver running multiple virtual domains all accessible via a single external IP address.
I would like to break this into 2 servers each running multiple virtual domains accessible via gateway with a singe external IP address.
As an example, a single internet IP address points to port 80 on the gateway machine. The gateway machine will determine if its example1.com, example2.com, example3.com or example4.com. If its example1.com or example2.com it will direct internally to webserver1 and if its example3.com or example4.com it will direct internally to webserver2.
Webserver1 and webserver2 each host different websites via virtual hosts.
Is this possible and if so, what is the correct configuration of the gateway machine. I currently have installed apache2 with mod_proxy enabled, but I am struggling with configuring it properly.
How would I go about setting up Bind on one of my Dedicated Servers? I noticed that you use three dns servers through pipedns and I thought you might be able to help me answer this question.
How would I be able to have my friends and I point our domains to my server(s) and have bind make it work? I want to have one dns server and then I have my friends each on there own DEDI using my bind dns servers but I'm not sure how to do this.
How would we add domains and the bind server know which server they are hosted on? Do you have to add the domains through bind? If so, how would I do that automatically and how would it work through cPanel when someone parks a domain?
I know reminds you of something else doesn't it? Seriously though, If I have 1 managed linux dedicated server (CentOS w/ cpanel v.11) and 1 managed windows dedicated server (Windows Server 2003 w/ Plesk 8) and want to the setup automatically through WHMCS under the same domain name (or appearance) how would I accomplish this task?
I know that I could simply add additional servers to the server configuration of 1 whmcs billing software installation. The problem is if I had to buy a separate domain for the other server and run them through 1 website it may appear shady to have the domain name change in the url during checkout.
I've seen few web hosts other both kinds of hosting through 1 website without redirecting to a different domain. If I have to have 2 different domains assigned to 2 different server boxes could I mask/cloak/I don't know the technical word for it so that the url appears as the same domain weather purchasing shared hosting for windows or linux?