hey people... I really need some help... Yesterday I configured the DNS zone for 1 of my domains...and I received a unusual error.... So, to start with the beginning: I purchased a VPS server 2 days ago... I have 5 dedicated Ips on it, and 1 of them is the main IP... So, I wanted to put a site to a different IP adress, and I did it. Let's suppose that my main IP is 111.111.111.111, but the other dedicated IP, on which my site is, is 222.222.222.222 I have all of my domains registered on godaddy...and there with a few clicks I can change the DNS zone, including the IP, and the nameserver. my nameservers are ns1.domain.com and ns2.domain.com So, my question is: Should I point my domain and the nameservers to my main IP adress? Or I can point them to any other dedicated Ip from my account? Thanks Alexx
What are the registered nameservers for the domain? That is where you will want to change the DNS. Assuming you are using godaddy's DNS, you will want to point an A record for the domain mydomain.com, and mail.mydomain. at your server's IP. You will want to add a cname for www, smtp, pop, etc.. and any other subdomain that should be at the same IP, to the root domain. mail is always supposed to have it's own a record. Although it's common practice, hosting the DNS of a site on the same server is hosted on is a bad idea. If the server goes down, not only is your site gone, but there isn't any record where it should even be.
Thanks Jestep for your help Unfortunately I have no idea where to start and where to do all these things, but I hope the guy from hosting support will help me solving this... I got this error today: IMPORTANT: Do not ignore this email. The hostname (server.mydomain.net) resolves to . It should resolve to xxx.73.12.203. Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain. Some are all of these problems can be caused by /etc/resolv.conf being setup incorrectly. Please check this file if you believe everything else is correct. You may be able to automatically correct this problem by using the ' Add an A entry for your hostname ' under ' Dns Functions ' in your Web Host Manager I don't know what to do And 1 more thing for you Jestep, maybe you know what this means... I got some e-mails from my host, some reports from the server: 5 failed login attempts to account XXX (system) -- Large number of attempts from this IP: 202.194.22.245 5 failed login attempts to account XXX (system) -- Large number of attempts from this IP: 122.224.238.154 What is this? I got more than 4-5 emails per day from my host... And I checked the IPs and they are all from China... Anyone had something like this? Thanks Alexx
If you have ssh ability, log into your server. enter this: nano /etc/hosts Enter your Ip address and domain name above the 127... entry. Use the exact same pattern. This is from one of my servers. Yours should end up looking similar. ::1 localhost6.localdomain6 localhost6 # Do not remove the following line, or various programs # that require network functionality will fail. xxx.73.12.203 myserver.mydomain.net myserver 127.0.0.1 localhost Code (markup): Hit Ctrl X, and then Y, to save the changes. If you can't do this, ask your hosting provider to do it for you. As far as the server DNS zone goes, after the above is performed. In WHM, under the DNS Functions, click on the "Add an A Entry for your Hostname" link. This should fix the above problems. As far as the access question, your server is public so it is going to be under attack all the time. If you allow ssh, ftp, or telnet access at all, make sure to use very good passwords (16 chars or more is good), I would use 20 or more for the root password. If your servers starts to see a lot of attacks, you may want to try something like this: http://www.configserver.com/. I use these on all of my cpanel servers. It is without a doubt worth the $125 / server to have solid anti-spam, and a good software firewall.
I checked in WHM, and under the DNS functions, at "Add an A Entry for your Hostname", there is Adding an A entry for your hostname Hostname Server Main Ip server.mydomain.net xxx.73.12.203 So, I think this is configured good...or not? But this IP, xxx.73.12.203 it is my main IP... and I added another site to an other dedicated IP, and it's still not working... At godaddy, in control panel...I added the Nameservers, ns1.mysecondsite.com ns2.mysecondsite.com, and in the IP field I put my main IP xxx.73.12.203 Is this correct?
Just follows and/or check the following steps: [1] Create nameservers from WHM. (Login to WHM -> Nameserver IPs) [2] Enter ns1.domain.com and click on "Assign" [3] Enter ns2.domain.com and click on "Assign" Now create these nameservers in your Godaddy control panel and then you can use these nameservers to point any domain to your server. Once you point your domain to your VPS your hostname will resolve correct IP address as you have already add A record for your hostname in your VPS' DNS server. Kailash