LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-21-2007, 04:28 PM   #1
ManOnTheDollar
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
How to associate my IP with a domain name?


I have Ubuntu running Apache server. People anywhere (outside my LAN) can access the website it is serving by going to my IP address, so I know I have everything set up correctly thusfar.

Now what I would like to do is associate a domain name with my (static) IP address so that people can access it by going to that domain, just like any other website in the world. I have a few domains registered from a couple years ago, so that's all set. I just don't know how to link it to my computer.

I assume this requires bind? I downloaded bind9 and followed a tutorial to set it up, but even in the tutorial it seemed to expect that I already had nameservers elsewhere (ns1.something.com), so I guess bind isn't the only thing I need. I'd rather not use something like DynDNS, I want to do this fully on my own, you know?

So, how can I do this? Any help is appreciated. I don't really need a full hand-held walkthrough since I'm pretty good with Google, but I just need to know, like, what elements I need to be setting up, or if it's even possible.

Thanks!

Last edited by ManOnTheDollar; 07-21-2007 at 04:30 PM.
 
Old 07-21-2007, 04:43 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You would do this on the domain registrar side, not the actual server. You need to tell whoever you have the domain name registered with what the static IP of your server is, and they will update their records and push it out to all of the DNS servers.
 
Old 07-21-2007, 05:08 PM   #3
ManOnTheDollar
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by MS3FGX
You would do this on the domain registrar side, not the actual server. You need to tell whoever you have the domain name registered with what the static IP of your server is, and they will update their records and push it out to all of the DNS servers.
Thanks for your reply. Wouldn't I have to set up some sort of nameserver on my server first? Usually when I switch hosting companies, it's the nameservers I change in the domain registration. Isn't that different than a normal web server?
 
Old 07-21-2007, 05:37 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
The DNS servers you put into the server's configuration are so that the server can resolve hostnames for itself, not the other way around. You would change these when you switched ISPs, but that is just because each ISP runs their own DNS servers that they would prefer (though you can use whatever ones you want) their subscribers use.

You want people on the outside to be able to resolve your hostname. Since you don't have control over the root DNS servers on the Internet (that is where the DNS registrar comes in) you have no control over it directly. Nothing you can do on the server side will ever make a person on their home computer be able to resolve the IP of your server, that needs to be done at a higher level than you have access to.

Now, it could be that the registrar you have only allows you to point your domain name to another DNS server, and then that DNS server resolves the hosts on said domain. That would depend on your registrar, so you need to figure out exactly what they want first. Since you only have a single server on a static IP, hopefully you won't need to do that.
 
Old 07-23-2007, 02:34 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The registrar updates the root servers to point to YOUR DNS servers. These then resolve actual hostnames into IP addresses. I like djbdns for a DNS server: it's both lightweight and very secure. Check it out.
 
Old 07-23-2007, 03:01 PM   #6
ManOnTheDollar
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks guys, I see now I was, um, stupid, and didn't understand things as much as I thought I did. So I decided not to use my own DNS, and I went with domain-dns.com. It works, I've set up subdomains, I'm sickeningly happy with myself.

Now here's a different question. My ISP (Charter ) blocks port 80, sooo right now I have to use mydomain.com:1985, which is pretty ugly. Is there a DNS that still lets me keep my own domain, but somehow "internally" redirects to port 1985, so people don't have to specify a port when they're typing my domain? Or is that a "different thing" and not really a DNS?

Last edited by ManOnTheDollar; 07-23-2007 at 03:02 PM.
 
Old 07-23-2007, 03:30 PM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
That is entirely different. All DNS does is resolve a name to an IP address. It could care less if the intended port is 1, 22, 80, or 9999.

That being said, some companies offer a transparent proxy service that will mask the special port at the end of the address. The problem is these are paid services, and generally not worth it.

Also, your ISP blocks 80 because they don't want people running websites from their homes, they want you to pay for a business level of service. Right or wrong, if they catch you running a site from home, they can cancel your service. Some ISPs are tolerant of it, and some aren't. I strongly urge you to check with your ISP before you go through with this.

There also is another thread going on right now asking the exact same thing in this same forum -

http://www.linuxquestions.org/questi...d.php?t=571415

Peace,
JimBass
 
Old 09-10-2007, 08:23 AM   #8
nileshgr
Member
 
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84

Rep: Reputation: 16
I have a similar problem. My friend has bought a domain. his site is gonna be on my server. the site will be located in a separate directory in /home (httpd userdirs enabled) . my server does not have a domain name. its just under a free service of noip. (itk.zapto.org) what is the nameserver which i shud give him to point to his site? Which part of BIND has to be configured. I have installed Webmin which a GUI interface for configuring BIND, httpd, mysqld, many more system wide apps, etc.

See this webmin screenshot of BIND section:

http://itk.zapto.org/scr/bind.png

Tell which section to configure?

Last edited by nileshgr; 09-10-2007 at 08:36 AM.
 
  


Reply



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
Associate without WEP? kellinjar Linux - Wireless Networking 6 04-11-2006 08:53 AM
ipw2200 will not associate rimcrazy Linux - Wireless Networking 4 02-12-2006 05:37 PM
SuSe 10.0 can't associate rroden12 SUSE / openSUSE 1 11-01-2005 09:44 PM
associate program PlatinumRik Linux - General 2 10-31-2005 08:33 AM
How to associate with an other AP ? Mr. Slappy Linux - Wireless Networking 2 11-15-2004 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:51 PM.

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