Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello I am a beginner when it becomes to most things Linux but i'm trying to learn a little more about hosting my own website, i'm curious to know whether I can have a domain name point to my webserver on a dynamic IP? I have BIND installed aswell if I need to configure it in any way. I have heard of some sites that allow you to do this but aren't free, is there any way I can do this myself?
I use Zone Edit to point to by webserver behind a cable modem and firewall. They have some info for us with dynamic IP here. Their basic service is free and easy to configure.
You can't run a DNS server like BIND as a resolving nameserver on a dynamic IP address (DNS server IP addresses need to stay fixed). You should do what meblost suggests or look into dyndns.org and like services for name resolution designed to work with dynamic IPs. You'll be using their DNS servers for their domain, as opposed to doing it yourself.
I have used no-ip.com myself, with no problems. no-ip and dyndns.org have little scripts that will update your ip info automatically, so you don't have to login to the website.
In addition to the other comments I would suggest that you check your ISP's Terms of Service. Some ISP's don't like people running web-servers/mail servers and will block incoming traffic on port 80 and port 25. With port forwarding you can work around this, but you still run the risk of them terminating your account (I assume they would give you a warning first though).
I've been running a web-server off an old PC at home for over a year (with an ISP that forbids running a web-server), and they have yet to say anything, but it is still something to consider...
But then there are very few things as gratifying as running your own web-server and mail server.
I'm not sure that I understand your question, perhaps you could elaborate.
Do you wish to have multiple domains pointing to the same website? Or do you want multiple domains each with their own website served from the same computer?
You can do it with multiple domains. I know since I've done it before.
Basically you just point domain1.com to nameservers that reside in domain2.com and vice versa. That way you do not need to specify glue records in DNS. The only problem is getting it started. Since one of those domains must be able to resolve initially to get the ball rolling.
After that it's not hard to write a simple script that can check your external ip every 15 minutes and if there is a change then update the zone files and reload the nameserver. Just make sure you set low TTLs on your records so the updates get pushed out faster.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.