Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
As part of my learning, I've set up a linux box at home (CentOS) on my cable modem connection.
I have a linksys cable/dsl router, and for now what I've done is assigned the box a static internal IP, and then on my Linksys router I set up port forwarding to send ssh, pop, smtp, etc.. port requests to that IP (probably there is a better way?)
I'm able to SSH into my box. Mail in/out is not working ("sender verify failed errors") but I'm sure that's another project and related to the fact that the domain name I named this server isn't really pointing there yet...
.. but this is what I want to change.
I want to learn DNS/BIND, etc.. and set up my domain name my server, either by having it serve it's own DNS or by creating a zone file at registerfly where the domain is registered.
The MAIN issue right now is how do I do any of this since my cable modem IP address is not static and keeps changing?
I have a free DynDNS.org account, and I have a host name with them that resolves that host name to the IP address of my cable modem (via a Windows based PC on my home network that updates DynDNS using update software)
But that doesn't help me since it only redirects using the dyndns subdomain assigned to me.
For example, if I want to set up a DNS Zone with registerfly so that it points my domain to my server... I need to know my actual IP, and since this changes often...
well i'd just say don't do it... you can get free dns hosting at sites like zoneedit.com and just hold your dns there. what you could do if you really wanted was use the dyndns account as the name server only. so you run the dyndns client on the box and update that ip on change, and so the dns server's ip changes which is fine, and your own bind is then reached, you do not need an ip address for this, a domain name is officially fine. note though that this can still cause lots of problems in theory as it may still take time for dns changes to propagate the internet and for caches to timeout, but i would expect that dyndns serve fairly short ttl's on their dns anyway to help this...
Have you considered registering domain through DynDNS? You can do this through their Custom DNS options in services. Think they charge $40/year or something.
Have you contacted your ISP about getting a static IP?
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
This isn't that bad, especially if you use the zone file editing tools provided by your domain name registrar.
What you do is you setup CNAME records to point to your dyndns domain name. Say you buy a domain called "mydomain.com" and your dyndns domain is "dyndomain.dyndns.org". Here is what it would look like:
Code:
mydomain.com. IN MX 10 dyndomain.dyndns.org.
www.mydomain.com. IN CNAME dyndomain.dyndns.org.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.