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 12-28-2004, 06:09 AM   #1
nizbit
LQ Newbie
 
Registered: Dec 2004
Location: Upstate
Posts: 2

Rep: Reputation: 0
Own DNS server possible with dynamic IP


I was wondering if it is possible for me to run my own DNS server even though I have a dynamic IP. I heard if you keep the TTL's low, it shouldn't be a problem. Would this actually work and be useful, could be done, but not practical, or simply no chance in hell?
 
Old 12-30-2004, 10:41 AM   #2
jeickal
Member
 
Registered: Oct 2004
Distribution: Mandrake, DSL, SuSE, RedHat
Posts: 71

Rep: Reputation: 15
Do you mean that your server you wanna run the DNS on has a dynamic IP?
Well, you can surely do that but what for?
DNS clients have the DNS server's IP address hard-coded in their IP config. Or if they use DHCP, it is hard coded in the DHCP server. So if your DNS server has a dynamic IP, well, when its IP will change, clients won't be able to resolve no more as they'll keep trying to connect to your old DNS server's IP, unless you manually change the IP config of all the client or of the DHCP server...
Now if this is about learning stuff about DNS, why not?
 
Old 01-01-2005, 08:14 AM   #3
louis_m_c
LQ Newbie
 
Registered: Dec 2004
Location: Saint-Hubert, Canada
Posts: 26

Rep: Reputation: 15
Lightbulb

it could be acheived by building a script that would check it eth0 Ip's have change. If so, it would change the "router" entry in your host.conf file then do a route del default , route add default gw router eth0. Then restart dhcpd. named should not notice it as the dns servers have not changed, just your IP. But just in case, restart it too it only takes a few secs. I'm not sure enough about this to let you restart only the dhcp server. Personally I would restart every server that do something out of my external IP (I'm paranoid).

happy new year
 
Old 01-01-2005, 09:59 AM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
If you want to make a DNS server for just computers sitting on your local network, that works great no matter what your Internet IP Address does.

If you want to make a DNS server so computers out on The Internet can use you as their DNS server or as the nameserver for a domain you own that isn't really a good idea with a dynamic IP. The fact that your IP could change means there will be some time between when it changes and your TTL where systems on The Internet can not see you. Using a lower TTL will just put more load on the computer listing your DNS entry and that computer is usually not under your control so you can't likely change it's value anyhow.

The idea of DNS is that there will be known good IP addresses that have servers to resolve names, this whole concept is violated when you try to put one of these servers on an IP address that could change. If it's just for your local network, that is fine because then the system will have it's dynamic Internet IP and an IP address on your internal network that likely does not change.
 
  


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
Dynamic DNS Server. NickCoons Linux - Networking 6 10-20-2005 04:17 AM
Dynamic DNS server shane200_ SUSE / openSUSE 1 07-14-2005 06:34 PM
Dynamic DNS - Mail Server fuelinjection Linux - General 2 07-05-2004 04:36 AM
I want to be a dynamic dns server. jmanjohn61 Linux - Software 0 01-19-2004 08:40 AM
Dynamic DNS server in RH9 najeeb Linux - Networking 0 08-24-2003 02:12 AM

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

All times are GMT -5. The time now is 08:07 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