DomainName Alert+Need Help

13 posts / 0 new
Last post
#1 Fri, 06/05/2009 - 03:01
milvers

DomainName Alert+Need Help

Hi Folks

I am newbie and currently brought Virtualmin Pro 10 to test my website rather than using hosting company.(Too slow and waste of bandwidth to use hosting company). I tend to use my own server as fast method to upload and test my website.

I brought cardotrade.com and set it up though Virtualmin "create virtual Server". Now how can I find out or how to set up the nameserver so that I can tell dynadot to point the domainname to my server?

Sorry if this had already asked but I would highly anyone's help to guide me through steps to get this working.

Thanks Folks Wilbur

Fri, 06/05/2009 - 07:06
andreychek

Howdy,

Before we get into how to set this up -- is your server a dedicated system directly connected to the Net, or is it on a dynamic IP and/or behind a NAT router (ie, perhaps on a system on a private lan at your house)?

My suggestion of how to do all this differs depending on the above ;-)
-Eric

Fri, 06/05/2009 - 21:04 (Reply to #2)
milvers

Hi there

I don't have a decdicated system, just average system.
I think I have dynamic IP and am using a router.

Are these suggestion prevent me from setting the name server?

Thanks :)

Fri, 06/05/2009 - 23:53 (Reply to #3)
Joe
Joe's picture

To add to ronald's (accurate) points...You cannot run name service for the Internet at large on a dynamic IP address. Name servers are how the world knows how to find you. If they move around, the world won't even know where to find your name servers!

So, you'll need to use DynDNS.org or similar, if you need world-facing service from your system (though generally running a production web server on a home network is a bad idea...consumer Internet is horribly unreliable compared to a facility built for hosting). But, Virtualmin does support DynDNS for name service. It is free, or very cheap, depending on your needs, and pretty easy to setup. Once you have an account, just enable dynamic DNS support in Virtualmin and configure it to use your DynDNS account, and it'll Just Work from then on.

--

Check out the forum guidelines!

Fri, 06/05/2009 - 23:38 (Reply to #4)
ronald
ronald's picture

for testing your website, you wouldn't need nameservers. You can reach it locally. http://localhost or in LAN the lan ip of the computer its running on.

Also it would be enough to point the A record to your WAN IP at the registrar.
Since you have dynamic IP it would be best to use a free service like DynDNS to keep the IP up-to-date though.

running your own nameservers behind a NAT device and a dynamic IP for testing a local website would be somewhat overkill imo.
Besides you would need to register 2 nameservers at your registrar (which not all registrars do)

Sat, 06/06/2009 - 01:32 (Reply to #5)
ronald
ronald's picture

assuming you have 2 computers on your lan
1 with the virtualmin-website
1 where you work on with dreamweaver

you need to know the LAN ip on the website's machine. (type: ifconfig in a shell prompt- look for 192.168.x.x or 10.0.x.x or similar)
then connect to it by using that IP
don't use the domainname as its useless inside your LAN, unless you would add entries in your hosts file. But that seems unnecessary in this set up.

buying a static IP isn't really necessary as you want to develop/test a website locally.
the module you need after signing up at DynDNS can be found under virtualmin-Addresses and Networking-Dynamic IP Update
You would then be able to surf to your website if you are outside the LAN, e.g. not at home.

Sat, 06/06/2009 - 02:55 (Reply to #6)
ronald
ronald's picture

<div class='quote'>the default master DNS server example is not a fully qualified domain name</div>
so your machine is called example.
you need to change that to a fqdn like server1.cardotrade.com
ssh over into the machine and type as root:
hostname server1.cardotrade.com

is there a specific reason for using 127.0.0.2? as it seems you need to enter the IP of that machine which is more likely to be 192.168.x.x

Sat, 06/06/2009 - 04:09 (Reply to #7)
ronald
ronald's picture

the world outside cannot find your machine when it is called example.
the world can find your machine when it is called as a Fully Qualified Domain Name running on your machine, in your case cardotrade.com.
the first part (server1) is to differ between multiple machines if you would have had them. The first part doesn't matter, could be ns., sv01., dns etc etc

since you probably won't need a mailserver you should disable this in the Features and Plugins module under virtualmin-System Settings
Uncheck:
Mail for domain
Spam filtering
Virus filtering

Sat, 06/06/2009 - 01:04
milvers

Thanks guys for you help but there some question I wanted to ask

-If I get static IP then this would solve my problem?
-where can I find &quot;enable&quot; Dynamic DNS support via Virtualmin?

Outside this question, I got dreamweaver and wanted to connect the server to work with my website.

I know how to configure dreamweaver but when I copy the ftp.cardotrade.com from cardotrade that virutalmin created for me. Dreamweaver had trouble looking up the server same goes to FileZilla. Is there a way that I need to configure to fix this problem?

Do I have to set up FTP server to get the function I need and what is the best solution to do this?

Again Thanks to allfor the NameServer issue and I now understand the problem about dynamic that cause the prevention. Might look into static IP but sound expensive to me.

Sat, 06/06/2009 - 02:08
milvers

Yes I have two machines (one for Dreamweaver and the other webserver)

And thanks for the direction to enable dynamic via Virtualmin also when I recheck my server it come up series of errors? I put the 127.0.0.2 at the top and my current dynamic below, save it and recheck the system and this is what gave me?

Checking Configuration

The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active ..

BIND DNS server is installed, and the system is configured to use it. However, the default master DNS server example is not a fully qualified domain name.

None of the supported mail servers (Sendmail, Postfix and Qmail) were detected on your system. Maybe they are not installed, or their Webmin modules have not been set up properly.

.. your system is not ready for use by Virtualmin.

So guessing I doing something wrong?
Is this caused by my dynamic IP or what?

Sorry I thought this is right place to ask

Sat, 06/06/2009 - 03:41
milvers

OK I followed your step but that just change my hostname of my machine? Can you explain to me why it recommend to change it? Did change to server1.cardotrade.com

Also I recheck the system and it bring back this statement

<b>The status of your system is being checked to ensure that all enabled features</b> are available, that the mail server is properly configured, and that quotas are active ..

BIND DNS server is installed, and the system is configured to use it.

None of the supported mail servers (Sendmail, Postfix and Qmail) were detected on your system. Maybe they are not installed, or their Webmin modules have not been set up properly.

.. your system is not ready for use by Virtualmin.

So I am guessing that the BIND DNS is working? just the Mail Server as I don't need?

Sat, 06/06/2009 - 21:39
milvers

ok

I have rechange the hostname to ns1.scorgon would this good idea identify my machine as I have multiple domain names and naming my machine's hostname server1.cardotrade sound like it only host that domain name?.

According to your instruction, It wont let me fully save it when uncheck Mail for domain and gave me this error after saving it

Failed to save enabled features : Suexec is enabled in the default template, but the Apache module mod_suexec is not installed or not enabled.

Do I have to install mod_suxec or enabled it?

Tue, 09/21/2010 - 08:55
andreychek

I've actually never seen a case where suexec wasn't both installed and enabled... what distro are you using? And do you by chance have a non-standard Apache version?

The suexec program is typically included with Apache, so my guess is that it's on your server and just not enabled.

-Eric

Topic locked