LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-29-2007, 04:22 PM   #1
natv
Member
 
Registered: Mar 2006
Posts: 66

Rep: Reputation: 15
Linux box on home network with dynamic IP :(


Hi guys,

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...


Any ideas or advice?


Thanks
Nathalie
 
Old 01-29-2007, 04:33 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...
 
Old 01-29-2007, 04:41 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Google search for dyndns linux router shows many links. Here are few. See if they help. If not check for others on google.
http://www.linuxhomenetworking.com/w..._:_Dynamic_DNS
http://joesbitbucket.blogspot.com/search/label/Linux

Brian
 
Old 01-29-2007, 05:08 PM   #4
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
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?
 
Old 01-29-2007, 05:26 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
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.
 
Old 01-30-2007, 02:07 PM   #6
natv
Member
 
Registered: Mar 2006
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks!

Thansk Chort!

That seems to be working!


Nat
 
  


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
cant ping one linux box on home network JoeC21 Linux - Networking 5 05-19-2007 11:14 AM
stupid question: how should i name my linux computers on home network with dynamic IP RottenMutt Fedora 4 11-02-2006 02:59 AM
How do I call home to a box with a dynamic IP? KTheorem Linux - Networking 5 08-19-2006 11:26 PM
Joining my Linux box to my XP/98 home network cbjhawks Linux - Networking 2 09-08-2005 11:17 AM
Adding linux box (wireless) to existing home network drwatts Linux - Wireless Networking 4 12-21-2003 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:55 AM.

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