Virtual Host & DNS Help

10 posts / 0 new
Last post
#1 Wed, 12/19/2007 - 13:50
glovebox.

Virtual Host & DNS Help

I've got Virtualmin up and running on my company's web server. Everything seems to be going well except for DNS. I'm not sure if I have it set up properly on my server or with our registrar.

We have an external static IP pointing to our web server (it passes through Novell's Access Manager first, if that means anything to anyone). I have been assured by our Novell technician that anything coming to that IP is untouched by Access Manager. I've checked the firewall on the server and all of the appropriate ports are opened. We use Network Solutions which allows me to put in our IP address in the advanced DNS section. After doing so, it shows a nameserver of ns1.worldnic.com and ns2.worldnic.com for the domain I am currently trying to set up. When I set up a new virtual server in Virtualmin it appears to do everything properly but I can't get to the site from the outside. I'm sure that I'm messing up something along the way, but I can't figure out what.

The virtual server is created with an address of 192.168.1.218 (the web server's internal ip). In the DNS the address records show an address of 127.0.0.1.

I apologize in advance for my ignorance. I'm sure this issue is something simple that I'm just not getting.

Thu, 12/20/2007 - 15:21
Joe
Joe's picture

Howdy Glovebox,

Not sure how you ended up with DNS gettings 127.0.0.1. That's definitely not gonna work.

You can explicitly set the IP for DNS records in the "Default IP address for DNS records" field in the Module Configuration:System Settings section. This won't effect existing virtual servers--you'll need to use the Change IP Address form for that, or the BIND module to update the records manually (someone reported that the Change IP form isn't in Virtualmin GPL, so if you're using that version, you'll have to do it manually until the next version of GPL comes out).

--

Check out the forum guidelines!

Wed, 01/02/2008 - 11:55 (Reply to #2)
gulmezt

Hello Joe,

I purchased Virtualmin a while ago and I just want to as a question make my mind clear.
If i create dns record in my domain register company for example .
ns1.domain.com and ns2.domain.com and forward this records to my static
public ip address .
After set up my Virtualmin box and create clients domain name in virtualmin. Client change own nameserver and put ns1.domain.com ns2.domain.com entry .Virtualmin going to serve the website .
Am i missing anything or not. Can you explain how to do ? Thank you very much
Kind regards

Wed, 01/02/2008 - 14:09 (Reply to #3)
Joe
Joe's picture

Howdy gulmezt,

I'm not sure what you're asking. I think the answer is "yes", but I'm not sure what you're asking when you say, "Can you explain how to do?" Registrar configuration is specific to each registrar, and not under the control of Virtualmin (though there is a Domain Registration module for Register.com which takes care of some of the details, with other registrars to come, as soon as we wrap out head around the various other APIs, and make sure they offer the functionality we need).

--

Check out the forum guidelines!

Wed, 01/02/2008 - 15:02 (Reply to #4)
gulmezt

Hello Joe
Firstly, sorry about my english
Basicly my question is . I am not planning to use a domain registerer.
For example i have got couple of domain names registered different hosting company. I want to create a sub domain like ns1.domain.com
and ns2.domain.com and forward into static public ip address.
i am asking is virtualmin box resolve the related domain address and serve the right website.?
Can you recommed the way you would like to set up ?
Do you have any siple graphical explanation of Virtualmin use and DNS
setup ?
Thank you very much
Taylan

<b>Joe wrote:</b>
<div class='quote'>Howdy Glovebox,

Not sure how you ended up with DNS gettings 127.0.0.1. That's definitely not gonna work.

You can explicitly set the IP for DNS records in the &quot;Default IP address for DNS records&quot; field in the Module Configuration:System Settings section. This won't effect existing virtual servers--you'll need to use the Change IP Address form for that, or the BIND module to update the records manually (someone reported that the Change IP form isn't in Virtualmin GPL, so if you're using that version, you'll have to do it manually until the next version of GPL comes out).</div>

Fri, 12/21/2007 - 07:53
glovebox.

Thanks for your help. Do I set the default IP for the DNS records to the external IP or our server's internal IP?

Fri, 12/21/2007 - 14:26 (Reply to #6)
Joe
Joe's picture

External, of course. That's the only way outside clients can possibly reach your system. ;-)

--

Check out the forum guidelines!

Sat, 12/29/2007 - 04:36 (Reply to #7)
blunt

I have a doubt that relates to this topic.

I have a static public IP, which my router redirects to 192.168.1.101, my server's lan IP address. The problem is that I set dns records to be added with my external IP, so dns querys can be successful. the problem is that with apache, the virtual hosts are being created with that IP, and don't work correctly. I have to manually change every virtual host to 192.168.1.101:80, in order to resolve the virtual hosts to their specific folder...

I don't know if there is a way around this, in order to automatically assign the virtual hosts with my internal IP.

thank you

Sat, 12/29/2007 - 14:41 (Reply to #8)
Joe
Joe's picture

Oh, you've set &quot;Default virtual server IP address&quot; when you should have set &quot;Default IP address for DNS records&quot;. You want the first to be the internal address (automatically detected is usually correct), and the second to be the external address.

You can reset DNS addresses to the new address by disabling and re-enabling DNS service for the vritual servers in question.

--

Check out the forum guidelines!

Fri, 01/04/2008 - 06:01
glovebox.

Joe -
Thanks for your help! The DNS stuff has been worked out and all of our domain names are pointing to the right place. As for email....that's a whole other topic. THanks again.

Topic locked