Virtualmin new user

12 posts / 0 new
Last post
#1 Mon, 08/13/2012 - 11:48
skyline7349

Virtualmin new user

Hey guys im a new user to both Webmin and Virtualmin. I just installed it this morning and having some trouble understanding some things. First off this is installed on Ubuntu 12.04 server. Now i tried looking this up but im not exactly sure what to search.

So basically i have the server set up and i can access the website via the IP address but the problem comes when i want to add multiple servers. So lets say i have IP 10.10.20.1 and i have 2 different virtual web servers how do i access them? Do i need an actually domain name?

That brings me to my next questions. How to i add an actually domain to my server? I have a domain from Godaddy.com and i know i need to change the nameservers. But where do i set the nameservers?

Sorry if this is an easy thing im 100% new to linux and ubuntu i just want to learn how to do this kind of stuff and i know forums are usually helpful.

Thanks in advance Eugene

Mon, 08/13/2012 - 21:09
andreychek

Howdy,

but the problem comes when i want to add multiple servers. So lets say i have IP 10.10.20.1 and i have 2 different virtual web servers how do i access them? Do i need an actually domain name?

Yeah, you would indeed want to use a domain name.

If you bought one domain name, you can create as many sites as you want with that using something like foo.domain.tld and bar.domain.tld.

Of course, you could buy multiple domains too, but using sub-domains as described above is a cheap way to get started :-)

That brings me to my next questions. How to i add an actually domain to my server? I have a domain from Godaddy.com and i know i need to change the nameservers. But where do i set the nameservers?

Well, you have two options.

You could either use GoDaddy to host the DNS for your domains, and just setup the DNS records there -- or you could configure your own server to act as the nameserver.

There's details on how to setup your server to work as a nameserver in the article at the bottom of this page titled "How do I setup nameservers for my server":

http://www.virtualmin.com/documentation/dns/faq

I hope that helps, feel free to let us know if you have further questions!

-Eric

Tue, 08/14/2012 - 10:55
skyline7349

Thank you for getting back to me. So im still a little confused and im sorry if you feel like your repeating yourself. I set up the domain and went into go daddy and set the host summary ns1.mydomain.com and ns2.mydomain.com to my 1 IP(Since its being hosted on my computer i only have 1 IP).

So now it could just not be working yet because the settings have set yet. I did this yesterday and when i try to ping the nameservers nothing happens. So maybe it just needs more time but when its done and allows to be pinged all i do is this step.

After registering your nameservers at your domain name registrar -- you'll want to log into Virtualmin, select your "example.com" domain, click Server Configuration -> DNS Records, and create a new "A - IPv4 Address" record for ns1.example.com and ns2.example.com. Lastly, you'll want to tell Virtualmin to use your nameservers when it generates NS records for new Virtual Servers that it creates. You can do that by going into 'System Settings' -> 'Server Templates' -> 'Default Settings' -> 'BIND DNS Domain', and set 'Master DNS server hostname' as well as 'Additional manually configured nameservers'.

After that it should work? And any new domains i just create a virtual server and put domain name in there and give domain correct nameservers and it should work?

Thanks :)

Tue, 08/14/2012 - 16:52
skyline7349

Just for more reference/help here is pictures of my settings in both godaddy and virtualmin.

Pic of VirtualMin settings in the Server Template

http://i49.tinypic.com/f28sw1.png

Pic of Godaddy Host Summary

http://i45.tinypic.com/dcj6o.png

These are only settings i changed. I asked godaddy why i cant ping my nameservers and heres what they said.

Regarding your custom nameservers, we do show that they registered properly and can be used successfully. Please ensure that the server is configured properly for the nameservers to point properly to your hosting. We appreciate your understanding regarding this matter..

So does this mean theres more to setup on my end?

Thanks everyone

Wed, 08/15/2012 - 13:02
andreychek

Howdy,

Well, it's tough to say exactly; what you have there does look good.

And there's multiple reasons a "ping" might not work.

The guide I mentioned does go over the details of setting up DNS/nameservers... in theory that should be what you need to get things up and running! But that is understandably a difficult topic!

I think the best way we could help is to know what your nameservers are.

You can always remove them from your post later, but to be able to help at the moment, it would help to know what your nameservers are, so that we can assist with some testing.

-Eric

Wed, 08/15/2012 - 13:58
skyline7349

Thanks eric heres the name servers ns1.kallivrousis.com and ns2.kallivrousis.com forwarded to ip 71.176.104.244

Wed, 08/15/2012 - 19:51
andreychek

Hmm, I don't seem to be able to communicate with BIND on your server -- I suspect that is the problem.

Is your server behind a NAT router? If so, you would need to make sure port 53 UDP is being forwarded.

You may also want to verify that there isn't a firewall blocking connections to that port.

However, another thing to check is to make sure BIND is listening for connections -- you can do that by running this command:

netstat -an | grep :53

Thu, 08/16/2012 - 12:26
skyline7349

I think i have to reinstall the server because something went wrong and i cant connect with external IP any more. But yea im running this ins a VirtualBox on my main PC with a bridged connection only ports forwarded is 80 and 443. I did not know about the port 53.

Should the firewall on my PC be blocking the connection in VirtualBox?

Thu, 08/16/2012 - 13:37
andreychek

Howdy,

Well, a firewall on your computer certainly could cause that... I see that I'm able to connect to other ports though, such as SSH on 22 and Apache on 80. So if it's your firewall, it's not blocking everything, though it is blocking port 53 UDP.

Also, note that some ISP's restrict access to certain ports -- it's possible they're blocking the ports.

For example, I notice that I can't access Postfix on port 25, which is a common port for ISP's to block.

-Eric

Thu, 08/16/2012 - 17:05
skyline7349

So i decided to reinstall the system because its not much work at all. Now im doing the Post Install Wizard and im at the primary nameserver part. I put in ns1.kallivrousis.com as primary and ns2.kallivrousis.com as secondary and when i click next i get this "Primary nameserver cannot be resolved on this system".

Now just so you know what i did i Port forwarded ports 443,80,and 53. Also i disabled my firewall on main computer.

Heres the output to the command you told me to put in terminal.

crossfire@Server1:~$ netstat -an | grep :53 tcp 0 0 192.168.1.4:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN tcp6 0 0 :::53 :::* LISTEN udp 0 0 192.168.1.4:53 0.0.0.0:* udp 0 0 127.0.0.1:53 0.0.0.0:* udp6 0 0 :::53 :::*

Thu, 08/16/2012 - 22:04
andreychek

Howdy,

That all looks good! BIND is indeed listening for connections, and I'm able to communicate with it.

So the next step is to setup a Virtual Server for your domain, and then add two DNS 'A' records for ns1 and ns2 within that Virtual Server.

-Eric

Sun, 08/19/2012 - 17:25
skyline7349

Thank you everyone for your help. I just looked this morning and the nameservers and domain name are working! Im not sure what did it to make it work but im happy either way. I might redo the server just to get more practice with it.

Topic locked