Fully qualified domain name

1 Actually yes, certainly if the box is used for hosting.
2 Yes, you won’t need a new installation.

Under Webmin, look for networking settings and change the hostname to say: ns1boricuavps.com
In your namecheap account, register the nameservers. Click on your domain and in the left menu is:

Advanced Options
Nameserver Registration

Update

So I went ahead and format the hd and install all fresh. Here is what I did.

  • Installed a fresh copy of Ubuntu 10.04 (named my computer boricuavps.com) dont know if it need it but I did anyway.
  • Installed all extras and updates
  • Installed sendmail (because virtualmin did not installed it the last time)
  • Installed Virtualmin, and it picked up my FQDN as boricuavps.com and it all went smooth.
  • I ran the Post-Installation Wizard, and used boricuavps.com as my Primary Nameserver it went fine (I think)
  • before I ruin anything, what is the corect way to regiter my nameserver? should I use ns1.boricuavps.com or juts ns1? or what? or should I just edit the A Record?

EDIT: Ups, sorry I most of been typing this message while u was answering back to me and I did not see ur response.

Im going to try doing the nameserver registration no, but If I do the nameserver registration the option for the A Record disappears, is that ok?

yes that is okay
registering a nameserver has little to do with the A record in the zonefile.

you should name your computer ns1.boricuavps.com not just boricuavps.com
are you sure you want sendmail? Imo postfix is much easier to handle

Can I still change the computer name to ns1.boricuavps.com? I know Linux but not a Linux user, I’m more windows OS. About sendmail, I really don’t care, I thought I need it. I have no idea go to setup nether of them lol

Under Webmin - Networking - Network Configuration - Hostname and DNS Client is where you can change the hostname (computername)

Ok I did that. But when I type hostname -f on the terminal, I get a ‘Hostname: name of servive is not known’ message. Only if i type just hostname that I get ns1.boricuavps.com. Do I have to rename both the hostname and the host?

  • sudo gedit /etc/hostname
  • sudo gedit /etc/host

I know that you have help me a lot, but please, can you post the settings I’ll have to edit to configure postfix? I did setup an email with my domain at namecheap. But have no idea how would I transfer or merge that to postfix. Thx for your help Ronald. If is easier to do it remotely I’m good with that I have teamviewer install on this machine.

I dont see the nameservers (ns1.boricuavps.com and ns2) yet at namecheap: http://www.intodns.com/boricuavps.com
this needs to propagate first.
Then you create a domain in virtualmin: boricuavps.com
At the moment your domain can not be found.

Once https://ns1.boricuavps.com:10000 is resolvable, then you can look at what needs to be done further

Do you actually have a static IP to your server? www.whatismyip.net

I think that’s part my fault, I registered (ns1.boricuavps.com) and (ns2.boricuavps.com) but since I don’t know what the hell I’m doing or if I was doing it right I deleted them (I forgot about the damm 24hr propagate wait time), yea yea I know, I’m an ass lol.

So then last night I came and re-registered my nameservers again, but I think I’m using namecheap’s nameservers.
Should I switch to my nameservers, then wait for them to propagate? As of right now, ns1.boricuavps.com:10000 only works locally on my home network.

To use my nameservers I go to General -> Transfer DNS To Webhost?

BTW I checked my namecheap acc and it saids:

ns1.boricuavps.com xxx.xxx.xxx.xxx Created: 2012-06-14
ns2.boricuavps.com xxx.xxx.xxx.xxx Created: 2012-06-14

General -> Transfer DNS To Webhost?
Sounds good. It will need some time to propagate again and then you can use virtualmin/BIND to control the zonefile

Ok I just updated the DNS to use my nameservers and when I went to the namecheap email I had setup, I got this message:

This domain name is using third party DNS, please contact your DNS provider to add the following records:
mail.boricuavps.com IN CNAME 0 oxwebmail.registrar-servers.com.
boricuavps.com IN MX 10 oxmail.registrar-servers.com.
boricuavps.com IN TXT 0 v=spf1 include:ox.registrar-servers.com ip4:xxx.xxx.xxx.xxx ip4:xxx.xxx.xxx.xxx -all

So I’m on my way to see where the heck I put that in Virtualmin. if u read this post before I mess up anything don’t be afraid to jump in lol and, as always point me in the right direction lol thx Ronald.

I’m glad, this is been a one on one… better then 1000 ppl asking 1000 questions.

BTW Ronald check out now in the link u gave me I can see my nameservers but I don’t understand one bit off what tha means, there are blue, green and red dots there lol. Still can’t access my ns1.boricuvps.com server using that link tho. Maybe by tomorrow, I’ll try again, who knows.

Yes it is all working now. I can see a website and virtualmin panel.
Of course mail is not handled by namecheap now anymore but by your virtualmin installation.
So you can start adding users to your domain boricuavps.com and the will have email

If u were here u would probably slap the crap out of me. I’m just a pain in the ass when it comes to installing or configuring stuff. They have to be as close as perfect as possible. If I have the slide idea the is something not running as smooth as it should and without to many tweaks, I have to start fresh. I hated the fact that I was not getting my Ubuntu local host name right so it would resolved by it self without me tweaking it. So once AGAIN, I did a fresh Ubuntu installation… (this is a spare laptop drivei have) Oh yes I did. This time, I think I got it right, finally. It’s really tricky to get this right, especially is ur a noob like myself. And even though Virtualmin does tells you and advise, One MOST Have a real/resolvable Domain name, we always do what we want thinking we can get away with it and fixed it later.

I finish work at 12am last night, home by 12:30am back at work by 10am this morning, but by the time I turn my back to look at my bed, it was day light 5:30am don’t know how that happen tho, lol but I said to my self, I have to get this thing to work as smooth as it could be and without any mayor tweaks and I think I did it. but all thanks to ur help. I keep coming to the post and reading and reading and reading to make sure I didn’t make any of my old mistakes. Once again I have to say thank you Ronald.

About the email stuff, I have no idea what’s going on there. I was at work today and around 11:30am I look at my phone and I have this really crazy email, Mail delivery notification (Failure), from webmin@ns1.boricuavps.com. I have not done anything to the mail server or any settings of any mail kind. It could be that I forward my namecheap email to the server but I have not adjust the settings at the server. I migh post the error here later sou can see if u make anything out of it or I can email it to u if u want, it’s a big file that’s why.

Anyway I’m onthe train on my way home. I’ll read u later.

So Linux is way, way different than Windows. There is almost never a need to reinstall the OS.
Everything lets itself to be configured the way you want it. This is hardly the case with windows OS.

If you think you made a mistake in configuring something, then don’t worry, it is all a matter of adjusting the configuration in the files. This is just how easy Linux is.

I could have a look at your virtualmin installation regarding the mail stuff and BIND if you’d like.
Is your Laptop always on?

I have play around with some Linux Distros, but are not an expert on any of them, I do love the flexibility that Linux has but there are way to many commands and I have a bad memory lol. I remember in one of my experiments with Linux, I think it was with Zorin Linux, There was an option there similar to System Restore in Windows, I wish I could remember the name of that sw. I know that you can even make an installation cd/dvd of whats already install including all the sw you have add to the distro.

So far I think the installation has work, including the domain names and nameserver and all that, exempt fo the mail stuff. The onlty red mark I see in http://www.intodns.com/boricuavps.com is the, Missing nameservers reported by your nameservers, But I guest thats because Im not using any of those two ns2 and ns3 nameservers, I really dont know, the rest of the stuff look much better (at least no red marks).

Thanks to your help. I have made a step-by-step instructions on the process I use to install and configure the basics of the Virualmin, I may port it later, You can feel free to correct whats not right or a better way to do it.

Im in New York so Im in Easter Time (2am now) I some times leave it on, but I can leave it on if you tell me when would you be able to do that. Do you want to use teamviewer or should I make you a login info as a master admin?

BTW I dont know if your a father, but if you are, Happy Fathers Day, Here in NY fathers day is today Sunday.

You let me know when and how you want to do this. Thx

Part (1): Domain & NameServers Registration

  • I boughty a domain name from namecheap. (You would need a domainname pointing to your server)
  • Went to namecheap and clicked on My Account -> Manage Domains
  • Selected my Domain name -> clicked on Nameserver Registration
  • Selected 3 nameserver (but you only need at least two nameservers) from the drop list
  • Typed my external IP Address on the right side fields
  • Clicked on Add Nameservers
  • To make sure your nameserver were registerd, Click on Find All Existing Nameservers, and you should see your nameservers on a list.
  • From the left menu, clicked on Transfer DSN to Webhost
  • Select ‘Specify Custom DNS Servers’ ( Your own DNS Servers )
  • Enter at least two nameservers:
  • ns1.yourdomain.tld xxx.xxx.xxx.xxx (xxx=IP)
  • ns2.yourdomain.tld xxx.xxx.xxx.xxx (xxx=IP)
  • ns3.yourdomain.tld xxx.xxx.xxx.xxx (xxx=IP)
  • Wait for propagation so your server can become resolvable.
  • Click on Save Changes, You should get: Domain name servers updated! Be aware, you left side menu lose some of the links.

Part (2): System Update and Server installation

  • Install a fresh version of Ubuntu 10.04 and make sure to name your computer as the real domain name you just got from namecheap. (ns1.boricuavps.com)
  • Change host name to match your computer name: gksudo gedit /etc/hostname
  • Make your self the root user: sudo -i
  • Assign a new password to the root user: passwd
  • Install Ubuntu extra packages: sudo apt-get install ubuntu-restricted-extras
  • Install latest updates: sudo apt-get update
  • Download Virtualmin: sudo wget http://software.virtualmin.com/gpl/scripts/install.sh
  • Install Virtualmin: sudo /bin/sh install.sh
  • Login to Virtualmin as root user: in my case, https://ns1.boricuavps.com:10000/ Or https://192.168.x.x:10000
  • Go straight to System Settings -> Virtualmin Configuaration -> Networking Settings -> and edit the following:
  • Default virtual server IP address = 192.168.x.x (your LAN IP)
  • Default IP address for DNS records = xxx.xxx.xxx.xxx (your WAN IP)
  • Create the first Virtual Server using new Domain Name.
  • Domain Name: the domain name you bought, in my case, boricuavps.com
  • Description: What ever you want
  • Administrator password: this will also be the Database password
  • IP address and forwarding: just add you WAN IP address, in my case, xxx.xxx.xxx.xxx
  • Everyting else can stay un-touch, then hit Create Server.
  • Note that you might have to wait up to 24 hrs for propagation.

Part (3): Post-Installation Wizard

  • From the left panel, click on Webmin (top left next to Webmin) -> Virtualmin Virtual Servers (GPL)
  • Click Next and If you have a nice powerful box use this settings if not, then use the default onces
  • Preload Virtualmin libraries? Yes
  • Run email domain lookup server? Yes
  • Run ClamAV server scanner? Yes
  • Run SpamAssassin server filter? Yes
  • Run MySQL database server? Yes
  • Run PostgreSQL database server? No
  • Set MySQL password: whatever
  • MySQL configuration size: Huge system (2G or more) on which MySQL is heavily used
  • Primary nameserver: ns1.boricuavps.com (the first nameserver you registered with your IP at namecheap
  • Password storage mode: Choose an option
  • Next -> Next and done.

I got not one error using this this instructions. The only thing I have not work on is the email stuff. Good Luck thank ronald for the help and I hope this helps someone not make the same mistakes I made lol

Optional:

  • Go to Webmin -> System -> Virtualmin Packages Updates just to check for Packages updates.
  • Select All and click on Update Selected Packages. ( I had 11 updates)
  • Go to Webmin -> Install scripts -> Select the scripts you like to install as per the new Domain you have created.
  • If you want to install default scripts at Virtual server creation stage:
  • Go to Virtualmin -> System Settings -> Server Templates and select the default template
  • From the Drop Down menu, select: Default script installers
  • Select the radio button that said Scripts below
  • Select the ones you like to be install when creating a new Virtual Srver.
  • As an example I selected phpMyadmin and just added the URL path /phpmyadmin and thats it.
  • To check/test your DNS Server you can visit this link: http://www.intodns.com/yourdomain.tld

You can create a user with sufficient rights in webmin and send the credentials to “service [@] stichtingizi.nl”
And then let’s take it from there, I’ll need a few days before i could have a look at it.

Great no problem. I was with family this week end and wasnt allow near the server. But will try doing that asap and email you details.

Is there a way to make a second Admin2 group ( instead of a user with sufficient rights) able to manage all or specific domains without the need to assign him to a specific domain? Just like the root can manage all domains. A would make an Admin2, close to root level rights, but not with all root user power.