Ubuntu server setup issues - please help

Asked by n3m3s1s4u

Hey all:
This noob is needing a little advice.

I love Ubuntu so though I would stick with it on this one - but need some advice on configuring it.
Here are my objectives.
I have got a domain name and want to host a mail server, webserver, ftp server etc on this domain name at home on my broadband line.

I ideally want to receive email and have a web interface to the email as well - <email address hidden>
any mail that is not in the userlist will end up in the postmast box and the rest to the actual set up users. the users can access their email say at webmail.mynewdomain.com

ftp.mynewdmain.com will work and have user accounts as well.

I am having difficulty getting my head around Bind and dnsing for this site - here are the details on the server end.

internal ip - 192.168.1.10 - external ip - 87.245.69.85 (for eg) all ports for 8080, 23,21,25 etc etc - pointing to 192.168.1.10

My confusion is setting up hostname and dns on the server as well as the domain control panel - what do i need to set -
I would like the server to be called server1 for eg. so the whole name is server1.mydomain.com
as for the ip address's and dns records I get well confused - could anyone point me in the right direction - I will be willing to give any information needed as i would really like to learn these things - Once i have it all working I will then see HOW it works and be able to do it again later.

eventually I want to take it a few more steps futher and have either 2 different domains pointing to the same server but different webpages. Or have my wife have a webpage on a subdomain like mywife.mynewdomain.com and she has her webpage there. and my main one on www.mynewdomain.com

Any help will be much appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Alan Pope 🍺🐧🐱 🦄
Solved:
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#1

Ok, here's what I used to do.

1. install mail server (exim4) and web server (apache) on my server at home.
2. Make sure it works internally, but editing my hosts file to allow me to get to www.example.com pointing to the IP of my server.
3. Register with dyndns to give me a dynamic dns entry example.dyndns.org
4. Install a dyndns client on my server so that if my public IP address changes the example.dyndns.org host still points to my box.
5. Register a domain on the internet and get it to point to example.dyndns.org, and the MX record to also point to example.dyndns.org.
6. Open port 80 and port forward on my router to allow external web access to my box.
7. Open port 25 and port forward on my router to allow mail in.

That's it really.

That said I am now no longer doing this because it is unreliable and means I'm paying more for my electricity having that server on all day/night at home. Instead I use a virtual xen server hosted in a proper data centre.

Revision history for this message
n3m3s1s4u (n3m3s1s4u) said :
#2

Well you see - I have asked around for some advice and a lot of people have mentioned about running a dns server bind - needs to be configured along sub domains such as ns1/ns0.mynewdomain.com and set things up on the linux box - I am very new to Bind and dns and it is getting confusing. I will be having a static ip address so i will not be needing the dydns account or settings but in the long run would like to run more than one web page on my linux box either :1 = antotherweb.mynewdomain.com or a whole new domain pointing to a seperate web page on my machine - now will i need to fiddle about with dns and bind to do this - as well as using Joomla on the top too - this is a first time real setup and once i have accomplished it with some help - I will then see first hand on how things work and then will be able to takes things further.
Many thanks thus far for the help.

Revision history for this message
n3m3s1s4u (n3m3s1s4u) said :
#3

Well I have been all over - read all there is about DNS and bind - Read Howto forums etc - but still seem to be stumbling on something - but cant put my finger on it.

Here are my objectives but not sure if i am taking things further than i need and would really appreciate some help.

I have got a 123-reg domain - mywebspace.co.uk (here i am allowed to change everything on dns, nameservers, A records CNAME's etc.

I have a Ubuntu -server installation on my personal home machine (running at the moment as a virtual machine Until i get things right)

I have pointed my domain name to the external (static) Ip address of my router - 888.888.888.888 (for eg)
I have configure my router to forward ports on 8080, 80, 23, 21, 110, 10000 etc etc to the internal ip address (static) 192.168.1.10

My true intentions are : to have multiple webpages under my domain name : like - me.mywebspace.co.uk and mymate.mywebspace.co.uk and once i have email set up for <email address hidden> to goto a web login at say webmail.mywebspace.co.uk . (obviosly will have all the mail stuff set up according to the howtoforge guid on 6.06 perfect setup)

Now I am not sure if i need it but I looked and attempted to use ISPconfig but this seems to confuse me more.

The front end to it all - I would love to use the Joomla system (as i know how to ue it for a single web system) but not sure what i need to do to manage more than one webpage.

What is getting to me the most is DNS and nameservers etc. I have tried so many different things - but not sure how involved i need to be with the configs.

Do i need to have my own nameserver? ns.mywebspace.co.uk and configure the control panel at 123-reg to point my name server to this ns.mywebspace.co.uk and the (external or internal) ip address of it?

when i edit the /etv/hosts file - server1.mywebspace.co.uk - do i use 192.168.1.10 or the external ip address of my router?

do i need to edit or creater /etc/resolv.conf ? what do i need to put in there?

If i need to create a nameserver - what should i do? (they mention 2 name server are needed) but i have one server - what do i point to as the second server?

If i want to create a subdomain - webmail.mywebspace.co.uk - how do i go about doing it?

Once this has been fully explained and installed and working - It will then be able to look into it to understand it better.

Any help will be muchly apreciated -
cheers

Revision history for this message
Óscar Rodríguez Ríos (ingorr01) said :
#4

You have all done <a href="http://www.howtoforge.com/perfect_setup_ubuntu_6.06">here</a>.

Revision history for this message
n3m3s1s4u (n3m3s1s4u) said :
#5

thanks a lot