Solved

Implementing Dynamic DNS

Posted on 2003-11-06
3
531 Views
Last Modified: 2010-03-18
Hi All,

I'm considering implementing Dynamic DNS. I have a Win 2000 Server which is a dhcp server for our LAN, and Bind 9.2.1 on a RH9 box. the RG box does our DNS currently. What I'm wanting to do, is when DHCP offers a new lease, that dynamically my DNS is updated.

My first question is: Is there any good reason not to do this?
and Second: What do I need to do, to get this working?

I kind of gather that I might have to implement DNS on my Win box, and create a DNS zone on the RH box which can be updated by the Win box, but I'm not sure. TIA!

jnbkze
0
Comment
Question by:jnbkze
3 Comments
 
LVL 19

Accepted Solution

by:
Gabriel Orozco earned 250 total points
ID: 9697237
jnbkze:

fisrt, consider to upgrade your bind as soon as you can to 9.2.3

now, the answers:

1: it's a good thing. I have it working myself and helps a lot with vnc also =)
2: you need to read about it in dhcpd. please note it's better to have your dhcp server in the same linux box as it is provided by ISC also, and connects pretty well with BIND.


here is a copy (stripped, but you can complete yourself) of my dhcpd.conf

ddns-update-style interim;
allow client-updates;
ddns-domainname "mx.mydomain.com";
ddns-updates on;

authoritative;

server-identifier 10.1.0.11;
server-name   "10.1.0.11";

# Domain to add to all users.
option  domain-name "mx.mydomain.com";

# DNS Server
option  domain-name-servers 10.1.0.11;

max-lease-time 604800;
default-lease-time 86400;
allow unknown-clients;
deny bootp;

key DHCP_UPDATER {
  algorithm HMAC-MD5.SIG-ALG.REG.INT;
  secret retidnsoch2kcHds7ss5Ig==;
};

zone mx.mydomain.com. {
  primary 10.1.0.11;
  key DHCP_UPDATER;
}

zone 0.1.10.in-addr.arpa. {
  primary 10.1.0.11;
  key DHCP_UPDATER;
}

subnet 10.1.0.0 netmask 255.255.0.0 {
   option routers 10.1.0.11;
   range 10.1.0.201 10.1.0.252;
}

--------------------------
* It took me quite a reading to come with this setup, but it works well.
* I'm waiting for a better management from ISC, but this one works
* you need to add the DHCP_UPDATER key to the named.conf domain. I suppose you should know how to do that.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9697243
I know this can easily be made to work if both the DHCP and DNS server are running on Linux. I don't know if you can get the w2k DHCP server to interoperate with Bind.

Another solution, that will work, is to make your AD domain a subdomain. You can then configure Bind to delgate authority for that domain to the AD server and allow it to dynamically update its zone. The disadvantages of this over a pure Linux solution are that you have to change your AD domain (which means touching all of your windows boxes) and that only windows systems will have DNS updates done.
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9698518
both of them already gave you very good hints, I'm just add on some url you can read like this one http://www.mattfoster.clara.co.uk/ddns.htm and this one http://ops.ietf.org/dns/dynupd/secure-ddns-howto.html both two url have some info. and same config files sample you can check with.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question