PDA

View Full Version : [ubuntu] Bind Server's IP with a domain name



Varemenos
June 6th, 2012, 07:36 PM
I own a domain name "name.gr" and i also got a ubuntu server (11.10). I'd like to point the nameservers of the domain name to the server. Can anyone help me set it up properly? I have no idea how to even begin.
Thanks in advance

poolet
June 6th, 2012, 10:37 PM
check the following links and warning::
http://www.thesitewizard.com/domain/point-domain-name-website.shtml

::Be careful with::

1. Registrars - Some companies have tricky stuff that lock your domain and you can't sell it or transfer it into another provider.

2. You should read and contact with your provider first before you continue to build your Apache 2 (LAMP server) - be sure that you know exactly what your are doing, search for more information with wiki and ubuntu community..
https://help.ubuntu.com/community/ApacheMySQLPHP
http://www.ubuntugeek.com/step-by-step-ubuntu-11-04-natty-lamp-server-setup.html
http://en.wikipedia.org/wiki/LAMP_%28software_bundle%29

3. Do not start with the following turorials before you finished part 1 and 2 and you have understand what's happens. Authentication is very important thing, especially for admin users.. !!!
http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html
http://www.yolinux.com/TUTORIALS/LinuxTutorialApacheAddingLoginSiteProtection.html
http://www.debianhelp.co.uk/apachead.htm

4. If your using database into your website you need to build and setup MySql (with php & phpmyadmin to have access into your website... *optional if can do that from terminal if you want... ) check the first link on part 1. and the following links(3 links you can pick one..)::
https://help.ubuntu.com/community/phpMyAdmin
http://www.ubuntugeek.com/howto-install-mysql-database-server-with-phpmyadmin-frontend.html
http://ubuntuexperiment.wordpress.com/2008/11/10/installing-apache-php-mysql/

5. Go back to part 3 and confirm that your LAMP server is working ping the ip address of the server and as well for the localhost, best job is to ping the server from other computer in the same network and capture the network with wireshark to check for delays or any problems that it would appear.....
http://blog.sudobits.com/2010/06/23/how-to-install-wireshark-on-ubuntu-10-04/
http://wiki.wireshark.org/CaptureSetup

Good Luck!!!!!

Varemenos
June 7th, 2012, 09:18 AM
Hey, thanks for the great reply.
I set my domain name's A Record to the static IP of my server and now everything works just fine (well, i also had to add a redirect rule on my .htaccess to redirect all 'www.' urls to the same ones without the 'www.').