Slightly Confused (DNS & Server Help)
Hi, I've been trying to figure this out for a couple of hours now. I know it's probably a stupid question, but I haven't been able to find any results by searching the forums.
Anyhow, I have everything setup. I installed Ubunutu, got ISPConfig running. I thought everything would be perfect, however, I must have skipped the whole "DNS education" part when I learned how to use the internet throughout my life, so far.
Is it possible to have ISPConfig be both the DNS and the webserver? It appears as though it is running as both, but I lack the understanding as to how to configure the domain to properly serve as both. I have a domain registered through GoDaddy, and I originally assigned the domain to that IP.
It's statically assigned using the DNS tool they offer. I just maid it @ and www = my servers IP. However, I can't see that as being correct. Or is it? If so, will my server be able to act as a nameserver for its own domain? Could I specifiy my own DNS instead of just pointing directly to the server IP within GoDaddy's DNS setup?
Or is that an illogical loop, and will only newly registered domains be able to use my nameserver? I'm completely confused, and in desperate need of help here. Also, this relates to the whole hostname/domainname issue. Currently I have my servers hostname setup as www.domain.com, which I assume is correct. Within the ISPConfig settings, I have two nameservers setup ns1.domain.com and ns2, both pointing to my server's IP. I have yet to actually setup a website yet, even though Apache is running correctly and such.
Any advice/help would be greatly appreciated. Thanks in advance, and hopefully this is the right forum :)
I'm attempting the same thing.
I'm glad to hear I'm not the only one trying this out. If you've read the boards over the last 2 weeks, I've been working on this same problem and I think I'm about to solve the problem. If I do, I'll be sure to post it, but I'm actually typing this to ask that, if you find the solution, to post it as well. :) Any time saved solving this would be greatly welcomed.
In this post by Sapient
it sounds like he had the same problem and solved it... but, sadly, that made no sense to me. Maybe if he reads this, he'll have some 'idiot-proof' steps we might take?
As to my attempt at solving this, in some of the posts I've read, some suggestions were made that I want to incorporate which might end up working to my benefit.
In particular, this post:
Which says that on a multi-homed server, browsing to http://ipaddress, you get a generic 'Sorry, you cannot browse this IP address, please type in the domain name' message (similar to ie. http://www.server274.com/ ) This way, browsing to the IP address gives you an error message instead of the first website created.
There may be a different way to do this, but I set up the server before with the mindset that the first domain was the 'admin' domain or root, and I think this creates part of the problem.
I'm thinking that if I set up the server, keeping in mind that 'admin' will be the IP address, not a domain name, then creating a domain name to use to host the Name Server, might work better? I guess the problem is having the domain that's acting as the DNS pointing to itself. If this doesn't work, then I'll probably register another domain name to use strictly for resolving my new ns.domain.com, point it to zoneedit and then point all the other domains to that domain name...
That may have been completely confusing... but, hopefully that will work. If not, I'm back to square one.
By the way, if anyone else has any other ideas or solutions to this problem, please post it for both of us. ;)
Right now, my issue is that the nameservers I have created, don't really exist. The two hostnames ns1.mysite.com and ns2.mysite.com are not resolving. mysite.com, does, however resolve to the default apache directory.
All that means, is that apache is running, and that the IP is being pointed to directly from GoDaddy. I really think the issue lies within the correct settings in the GoDaddy manager.
I have tried using my domain name, my IP, and both nameserver domains as the nameserver choices for a second domain I have registered, and neither one is accepted by GoDaddy or Namecheap.
My thoughts were, it isn't an issue with either one of the registrars, but rather a setting I (you, and possibly others) have misconfigured. So, below is the setup of names I have working... hopefully it helps.
DNS Manager Settings:
IP Address: xxx.xxx.xxx.xxx
Nameserver 1: ns1.mysite.com
Nameserver 2: ns2.mysite.com
ns1 and ns2 are both xxx.xxx.xxx.xxx
GoDaddy.com DNS Settings
Originally, before they added the DNS Manager, I had my IP's forwarded to, but now they allow the manager... and the settings are as follows.
@ and WWW are both xxx.xxx.xxx.xxx
That's essentially it. I just removed the few site examples I had been playing around with so that I could start from a clean slate. If anything above looks incorrect, please let me know... or if you need any conf files, etc, please reply. Hopefully this "problem," if it really is a problem, not just a misunderstanding (or lack of knowledge) can get resolved. :)
I didn't know about the Domain Host Utility at GoDaddy. This looks promising... I'll give it a try soon and let you know if I get any results.
Use your GoDaddy DNS Manager to create ns1.mysite.com and ns2.mysite.com, and then you can use these nameservers in ISPConfig.
Ok, I have done that, I created a sample site and put in those settings.
Mysite2 has the nameservers ns1.mysite.com and ns2.mysite.com (within ISPConfig), however, GoDaddy won't allow this. It gives me the "Unavailable error in field Host name" message, which seems to mean that the nameserver doesn't exist... but, again, with MySite1, GoDaddy is correctly pointing ns1 and ns2 to MySite1's IP address, and they both resolve correctly when browsing to them.
Within GoDaddy, for Mysite2, I'm assuming I should be putting in ns1.mysite.com, and ns2... as the nameservers, because if I have to point MySite2 to my actual server IP, then it will be doing the same thing as MySite1, and will become an identical clone, but with a different URL.
Thanks for your help so far, I appreciate it greatly :)
It works! Here's what I did:
In my ISPConfig settings for the server, I created 2 Co-Domains. ns1.domain.com and ns2.domain.com.
In the DNS Manager, I made sure that I had A Records for ns1 and ns2 that pointed to my server's internal LAN IP address (ie. 192.168.x.x)
Then I went to GoDaddy, selected my domain name, scrolled down to 'Domain Host Summary' (don't worry about the Nameserver Summary yet) and added only the first host, ns1, that points to my external IP Address. Than I clicked Save Changes. I waited about a minute for the changes to take place then clicked on the '+' next to Domain Host Summary to make sure the changes took, then I did the same process again for ns2.
Now, once both ns hosts were entered, I clicked on the '+' next to name server summary, then on 'see details or modify' link, and added 2 nameservers. I was using zone edit, and wanted to keep those ns entries in as backups (during testing), so I moved them to Name Server 3 and Name Server 4, and added my ns1.domain.com in Name Server 1 and ns2.domain.com in Name Server 2.
The 'unavailable' error you were getting (and I was getting before) was because our Nameservers aren't fully qualified and GoDaddy won't allow it. But, if you put the info in the Domain Host Summary, GoDaddy will allow your own DNS.
Once I got all the info entered... I had to wait about 3 hours before the changed took effect and browsing to mydomain.com picked up the new NS info... it wasn't instant. (I guess 3 hours is good, GoDaddy said it could take up to 2 days.)
Hope this helps.
Sounds pretty good to me, it allowed the DNS to work at least :)
Did you end up using your own nameserver for your site with the same domain? Even though it's supposed to be impossible...
ns1.mydomain.com is the nameserver for domain.com
(within godaddy's DNS settings)
And one other thing, what do you mean by co-domain? Do you mean actual "sites" from the ISP manager, or just two A records for one added domain (ns1 and ns2)? OR, did you create domain1.com, domain2.com, and then assign domain2.com the two nameservers from domain1.com with both godaddy and ISPConfig?
I'm still confused, and this is making me feel like an idiot... :o
Edit: Ok, does the first actual site you create become the main site (ie. the server IP's actual website)? Because the first site I created is showing up as the domain I plugged ns1 and ns2 into... I guess I need a third domain to test it.
|All times are GMT +2. The time now is 18:13.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.