Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-06-2007, 06:43 PM   #1
LQ Newbie
Registered: Jan 2007
Location: New Hampshire
Distribution: Mandriva 2008
Posts: 29

Rep: Reputation: 15
Setting up a domain name?

I have a web server installed on my Mandriva 2008 server. I can't connect to it by typing http://mandriva (mandriva is the hostname) but I want to have it so my friends can connect to it with a domain name rather than the IP.

How can I do this?
Old 12-06-2007, 06:59 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69

Depending on where your friends on (inside your network, outside your network) you may or may not have to register a domain name (or get a free one from somewhere like If they are internal then it's as easy as getting a centralized DNS server (usually a router has one in it, you just have to figure out if you can manipulate it or need to disable it and let your Mandriva system do the DNS for your network) to resolve your hostname to your IP. Then (for any device who uses your DNS server as a DNS server which should be most if you setup your network right) all you have to do is what you've noted above.

If they are outside your network and you have to get a domain name registered, you would need to use port forwarding from your router (you do have a router right?) to point port 80 (the http port) to that machine; this is called Port Forwarding in a lot of routers but might be called something like Applications and Gaming depending on your router type. If you have no router or firewall then all you will need to do is setup your new domain to resolve to your IP (something like; not 192.168.1.X or 10.0.0.X).

Good luck!

Old 12-06-2007, 07:04 PM   #3
LQ Newbie
Registered: Jan 2007
Location: New Hampshire
Distribution: Mandriva 2008
Posts: 29

Original Poster
Rep: Reputation: 15
My friends are outside my network. I'm checking out that site right now. That computer is set up as a DMZ Host so I dont need to forward any ports.

Thank you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting domain name! justsimran Linux - General 4 03-13-2007 10:10 AM
setting up a domain mbvo Linux - Networking 7 10-09-2006 05:40 PM
Setting up a domain network logosys Linux - General 1 02-14-2006 06:24 PM
Setting up a sub-domain DPenguin Linux - Networking 3 03-14-2005 02:23 PM
Setting up a domain name... Sanna Linux - Newbie 2 05-02-2004 02:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration