ddns.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
  4. <!ENTITY mdash "&#x2014;" >
  5. ]>
  6. <chapter id="dhcp-ddns-server">
  7. <title>The DHCP-DDNS Server</title>
  8. <para>
  9. The DHCP-DDNS Server (kea-dhcp-ddns, known informally as D2) conducts the client side of
  10. the DDNS protocol (defined in RFC 2136) on behalf of the DHCPv4 and DHCPv6
  11. servers (kea-dhcp4 and kea-dhcp6 respectively). The DHCP servers construct
  12. DDNS update requests, known as NameChangeRequests (NCRs), based upon DHCP
  13. lease change events and then post these to D2. D2 attempts to match
  14. each such request to the appropriate DNS server(s) and carry out the
  15. necessary conversation with those servers to update the DNS data.
  16. </para>
  17. <para>
  18. In order to match a request to appropriate DNS servers, D2 must have a
  19. catalog of servers from which to select. In fact, D2 has two such catalogs,
  20. one for forward DNS and one for reverse DNS; these catalogs are referred
  21. to as DDNS Domain Lists. Each list consists of one or more named DDNS
  22. Domains. Further, each DDNS Domain has a list of one or more DNS
  23. servers that publish the DNS data for that domain.
  24. </para>
  25. <para>
  26. When conducting forward domain matching, D2 will compare the FQDN in
  27. the request against the name of each forward DDNS Domain. The domain
  28. whose name matches the longest portion of the FQDN is considered the
  29. best match. For example, if the FQDN is "myhost.sample.example.com.",
  30. and there are two forward domains in the catalog: "sample.example.com."
  31. and "example.com.", the former is regarded as the best match. In some
  32. cases, it may not be possible to find a suitable match. Given the same two
  33. forward domains there would be no match for the FQDN, "bogus.net", so the
  34. request would be rejected. Finally, if there are no forward DDNS Domains
  35. defined, D2 will simply disregard the forward update portion of requests.
  36. </para>
  37. <para>
  38. When conducting reverse domain matching, D2 constructs a reverse
  39. FQDN from the lease address in the request and compare that against
  40. the name of each reverse DDNS Domain. Again, the domain whose name matches
  41. the longest portion of the FQDN is considered the best match. For instance,
  42. if the lease address is "172.16.1.40" and there are two reverse domains in
  43. the catalog: "1.16.172.in-addr.arpa." and "16.172.in-addr.arpa", the
  44. former is the best match. As with forward matching, it is possible to not
  45. find a suitable match. Given the same two domains, there would be no
  46. match for the lease address, "192.168.1.50", and the request would be
  47. rejected. Finally, if there are no reverse DDNS Domains defined, D2 will
  48. simply disregard the reverse update portion of requests.
  49. </para>
  50. <section id="dhcp-ddns-server-start-stop">
  51. <title>Starting and Stopping the DHCP-DDNS Server</title>
  52. <para>
  53. <command>kea-dhcp-ddns</command> is the Kea DHCP-DDNS server
  54. and, due to the nature of DDNS, it is run alongside either the
  55. DHCPv4 or DHCPv6 components (or both). Like other parts of
  56. Kea, is a separate binary that can be run on its own or through
  57. <command>keactrl</command> (see <xref linkend="keactrl"/>). In
  58. normal operation, controlling <command>kea-dhcp-ddns</command>
  59. with <command>keactrl</command> is recommended.
  60. </para>
  61. <para>
  62. Upon start up the module will load its configuration and begin listening
  63. for NCRs based on that configuration.
  64. </para>
  65. </section> <!-- end start-stop -->
  66. <section id="d2-configuration">
  67. <title>Configuring the DHCP-DDNS Server</title>
  68. <para>
  69. Before starting <command>kea-dhcp-ddns</command> module for the
  70. first time, a configuration file needs to be created. The following default
  71. configuration is a template that can be customised to your requirements.
  72. <screen>
  73. <userinput>"DhcpDdns": {
  74. "ip_address": "127.0.0.1",
  75. "port": 53001,
  76. "dns_server_timeout": 100,
  77. "ncr_protocol": "UDP",
  78. "ncr_format": "JSON",
  79. "tsig_keys": [ ],
  80. "forward_ddns": {
  81. "ddns_domains": [ ]
  82. },
  83. "reverse_ddns": {
  84. "ddns_domains": [ ]
  85. }
  86. }</userinput>
  87. </screen>
  88. </para>
  89. <para>
  90. The configuration can be divided as follows, each of which is described
  91. in its own section:
  92. </para>
  93. <itemizedlist>
  94. <listitem>
  95. <simpara>
  96. <command>Global Server Parameters</command> -
  97. values which control connectivity and global server behavior
  98. </simpara>
  99. </listitem>
  100. <listitem>
  101. <simpara>
  102. <command>TSIG Key Info</command> -
  103. defines the TSIG keys used for secure traffic with DNS servers
  104. </simpara>
  105. </listitem>
  106. <listitem>
  107. <simpara>
  108. <command>Forward DDNS</command> -
  109. defines the catalog of Forward DDNS Domains
  110. </simpara>
  111. </listitem>
  112. <listitem>
  113. <simpara>
  114. <command>Reverse DDNS</command> -
  115. defines the catalog of Forward DDNS Domains
  116. </simpara>
  117. </listitem>
  118. </itemizedlist>
  119. <section id="d2-server-parameter-config">
  120. <title>Global Server Parameters</title>
  121. <itemizedlist>
  122. <listitem><simpara>
  123. <command>ip_address</command> - IP address on which D2
  124. listens for requests. The default is the local loopback interface at
  125. address 127.0.0.1. You may specify either an IPv4 or IPv6 address.
  126. </simpara></listitem>
  127. <listitem><simpara>
  128. <command>port</command> - Port on which D2 listens for requests. The default value
  129. is 53001.
  130. </simpara></listitem>
  131. <listitem><simpara>
  132. <command>dns_server_timeout</command> - The maximum amount
  133. of time in milliseconds, that D2 will wait for a response from a
  134. DNS server to a single DNS update message.
  135. </simpara></listitem>
  136. <listitem><simpara>
  137. <command>ncr_protocol</command> - Packet format to use when sending requests to D2.
  138. Currently only JSON format is supported. Other formats may be available
  139. in future releases.
  140. </simpara></listitem>
  141. <listitem><simpara>
  142. <command>ncr_format</command> - Socket protocol to use when sending requests to D2.
  143. Currently only UDP is supported. TCP may be available in an upcoming
  144. release.
  145. </simpara></listitem>
  146. </itemizedlist>
  147. <para>
  148. D2 must listen for change requests on a known address and port. By
  149. default it listens at 127.0.0.1 on port 53001. The following example
  150. illustrates how to change D2's global parameters so it will listen
  151. at 192.168.1.10 port 900:
  152. <screen>
  153. "DhcpDdns": {
  154. <userinput>"ip_address": "192.168.1.10",
  155. "port": 900,</userinput>
  156. ...
  157. }
  158. }</screen>
  159. </para>
  160. <warning>
  161. <simpara>
  162. It is possible for a malicious attacker to send bogus
  163. NameChangeRequests to the DHCP-DDNS server. Addresses
  164. other than the IPv4 or IPv6 loopback addresses (127.0.0.1
  165. or ::1) should only be used for testing purposes, but
  166. note that local users may still communicate with the
  167. DHCP-DDNS server. A future version of Kea will implement
  168. authentication to guard against such attacks.
  169. </simpara>
  170. <!-- see ticket #3514 -->
  171. </warning>
  172. <note>
  173. <simpara>
  174. If the ip_address and port are changed, it will be necessary to change the
  175. corresponding values in the DHCP servers' "dhcp-ddns" configuration section.
  176. </simpara>
  177. </note>
  178. </section> <!-- "d2-server-parameter-config" -->
  179. <section id="d2-tsig-key-list-config">
  180. <title>TSIG Key List</title>
  181. <para>
  182. A DDNS protocol exchange can be conducted with or without TSIG
  183. (defined in <ulink url="http://tools.ietf/org/html/rfc2845">RFC
  184. 2845</ulink>). This configuration section allows the administrator
  185. to define the set of TSIG keys that may be used in such
  186. exchanges.</para>
  187. <para>To use TSIG when updating entries in a DNS Domain,
  188. a key must be defined in the TSIG Key List and referenced by
  189. name in that domain's configuration entry. When D2 matches a
  190. change request to a domain, it checks whether the domain has
  191. a TSIG key associated with it. If so, D2 will use that key to
  192. sign DNS update messages sent to and verify responses received
  193. from the domain's DNS server(s). For each TSIG key required by
  194. the DNS servers that D2 will be working with there must be a
  195. corresponding TSIG key in the TSIG Key list.</para>
  196. <para>
  197. As one might gather from the name, the tsig_key section of the
  198. D2 configuration lists the TSIG keys. Each entry describes a
  199. TSIG key used by one or more DNS servers to authenticate requests
  200. and sign responses. Every entry in the list has three parameters:
  201. <itemizedlist>
  202. <listitem>
  203. <simpara>
  204. <command>name</command> -
  205. a unique text label used to identify this key within the
  206. list. This value is used to specify which key (if any) should be
  207. used when updating a specific domain. So long as it is unique its
  208. content is arbitrary, although for clarity and ease of maintenance
  209. it is recommended that it match the name used on the DNS server(s).
  210. It cannot be blank.
  211. </simpara>
  212. </listitem>
  213. <listitem>
  214. <simpara>
  215. <command>algorithm</command> -
  216. specifies which hashing algorithm should be used with this
  217. key. This value must specify the same algorithm used for the
  218. key on the DNS server(s). The supported algorithms are listed below:
  219. <itemizedlist>
  220. <listitem>
  221. <command>HMAC-MD5</command>
  222. </listitem>
  223. <listitem>
  224. <command>HMAC-SHA1</command>
  225. </listitem>
  226. <listitem>
  227. <command>HMAC-SHA224</command>
  228. </listitem>
  229. <listitem>
  230. <command>HMAC-SHA256</command>
  231. </listitem>
  232. <listitem>
  233. <command>HMAC-SHA384</command>
  234. </listitem>
  235. <listitem>
  236. <command>HMAC-SHA512</command>
  237. </listitem>
  238. </itemizedlist>
  239. This value is not case sensitive.
  240. </simpara>
  241. </listitem>
  242. <listitem>
  243. <simpara>
  244. <command>secret</command> -
  245. is used to specify the shared secret key code for this key. This value is
  246. case sensitive and must exactly match the value specified on the DNS server(s).
  247. It is a base64-encoded text value.
  248. </simpara>
  249. </listitem>
  250. </itemizedlist>
  251. </para>
  252. <para>
  253. As an example, suppose that a domain D2 will be updating is
  254. maintained by a BIND9 DNS server which requires dynamic updates
  255. to be secured with TSIG. Suppose further that the entry for
  256. the TSIG key in BIND9's named.conf file looks like this:
  257. <screen>
  258. :
  259. key "key.four.example.com." {
  260. algorithm hmac-sha224;
  261. secret "bZEG7Ow8OgAUPfLWV3aAUQ==";
  262. };
  263. :
  264. </screen>
  265. By default, the TSIG Key list is empty:
  266. <screen>
  267. "DhcpDdns": {
  268. <userinput>"tsig_keys": [ ]</userinput>,
  269. ...
  270. }
  271. </screen>
  272. We must extend the list with a new key:
  273. <screen>
  274. "DhcpDdns": {
  275. "tsig_keys": [
  276. <userinput> {
  277. "name": "key.four.example.com",
  278. "algorithm": "HMAC-SHA224",
  279. "secret": "bZEG7Ow8OgAUPfLWV3aAUQ=="
  280. }</userinput>
  281. ],
  282. ...
  283. }
  284. </screen>
  285. </para>
  286. <para>These steps would be repeated for each TSIG key needed. Note that
  287. the same TSIG key can be used with more than one domain.</para>
  288. </section>
  289. <!-- "d2-tsig-key-list-config" -->
  290. <section id="d2-forward-ddns-config">
  291. <title>Forward DDNS</title>
  292. <para>
  293. The Forward DDNS section is used to configure D2's forward update
  294. behavior. Currently it contains a single parameter, the catalog of
  295. forward DDNS Domains, which is a list of structures.
  296. <screen>
  297. "DhcpDdns": {
  298. <userinput>"forward_ddns": {
  299. "ddns_domains": [ ]
  300. }</userinput>,
  301. ...
  302. }
  303. </screen>
  304. By default, this list is empty, which will cause the server to ignore
  305. the forward update portions of requests.
  306. </para>
  307. <section id="add-forward-ddns-domain">
  308. <title>Adding Forward DDNS Domains</title>
  309. <para>
  310. A forward DDNS Domain maps a forward DNS zone to a set of
  311. DNS servers which maintain the forward DNS data (i.e. name to
  312. address mapping) for that zone. You will need one forward DDNS
  313. Domain for each zone you wish to service. It may very well
  314. be that some or all of your zones are maintained by the same
  315. servers. You will still need one DDNS Domain per zone. Remember
  316. that matching a request to the appropriate server(s) is done
  317. by zone and a DDNS Domain only defines a single zone.
  318. </para>
  319. <para>
  320. The section describes how to add Forward DDNS Domains. Repeat these
  321. steps for each Forward DDNS Domain desired. Each Forward DDNS Domain
  322. has the following parameters:
  323. <itemizedlist>
  324. <listitem>
  325. <simpara>
  326. <command>name</command> -
  327. The fully qualified domain name (or zone) that this DDNS Domain
  328. can update. This is value used to compare against the request
  329. FQDN during forward matching. It must be unique within the
  330. catalog.
  331. </simpara>
  332. </listitem>
  333. <listitem>
  334. <simpara>
  335. <command>key_name</command> -
  336. If TSIG is used with this domain's servers, this
  337. value should be the name of the key from within the TSIG Key List
  338. to use. If the value is blank (the default), TSIG will not be
  339. used in DDNS conversations with this domain's servers.
  340. </simpara>
  341. </listitem>
  342. <listitem>
  343. <simpara>
  344. <command>dns_servers</command> -
  345. A list of one or more DNS servers which can conduct the server
  346. side of the DDNS protocol for this domain. The servers
  347. are used in a first to last preference. In other words, when D2
  348. begins to process a request for this domain it will pick the
  349. first server in this list and attempt to communicate with it.
  350. If that attempt fails, it will move to next one in the list and
  351. so on until the it achieves success or the list is exhausted.
  352. </simpara>
  353. </listitem>
  354. </itemizedlist>
  355. To create a new forward DDNS Domain, one must add a new domain
  356. element and set its parameters:
  357. <screen>
  358. "DhcpDdns": {
  359. "forward_ddns": {
  360. "ddns_domains": [
  361. <userinput>{
  362. "name": "other.example.com",
  363. "key_name": "",
  364. "dns_servers": [
  365. ]
  366. }</userinput>
  367. ]
  368. }
  369. }
  370. </screen>
  371. It is permissible to add a domain without any servers. If that domain
  372. should be matched to a request, however, the request will fail. In
  373. order to make the domain useful though, we must add at least one DNS
  374. server to it.
  375. </para>
  376. <section id="add-forward-dns-servers">
  377. <title>Adding Forward DNS Servers</title>
  378. <para>
  379. The section describes how to add DNS servers to a Forward DDNS Domain.
  380. Repeat them for as many servers as desired for a each domain.
  381. </para>
  382. <para>
  383. Forward DNS Server entries represent actual DNS servers which
  384. support the server side of the DDNS protocol. Each Forward DNS Server
  385. has the following parameters:
  386. <itemizedlist>
  387. <listitem>
  388. <simpara>
  389. <command>hostname</command> -
  390. The resolvable host name of the DNS server. This value is not
  391. yet implemented.
  392. </simpara>
  393. </listitem>
  394. <listitem>
  395. <simpara>
  396. <command>ip_address</command> -
  397. The IP address at which the server listens for DDNS requests.
  398. This may be either an IPv4 or an IPv6 address.
  399. </simpara>
  400. </listitem>
  401. <listitem>
  402. <simpara>
  403. <command>port</command> -
  404. The port on which the server listens for DDNS requests. It
  405. defaults to the standard DNS service port of 53.
  406. </simpara>
  407. </listitem>
  408. </itemizedlist>
  409. To create a new forward DNS Server, one must add a new server
  410. element to the domain and fill its parameters. If for
  411. example the service is running at "172.88.99.10", then set it as
  412. follows:
  413. <screen>
  414. "DhcpDdns": {
  415. "forward_ddns": {
  416. "ddns_domains": [
  417. {
  418. "name": "other.example.com",
  419. "key_name": "",
  420. "dns_servers": [
  421. <userinput>{
  422. "hostname": "",
  423. "ip_address": "172.88.99.10",
  424. "port": 53
  425. }</userinput>
  426. ]
  427. }
  428. ]
  429. }
  430. }
  431. </screen>
  432. </para>
  433. <note><simpara>
  434. As stated earlier, "hostname" is not yet supported so, the parameter
  435. "ip_address" must be set to the address of the DNS server.
  436. </simpara></note>
  437. </section> <!-- "add-forward-dns-servers" -->
  438. </section> <!-- "add-forward-ddns-domains" -->
  439. </section> <!-- "d2-forward-ddns-config" -->
  440. <section id="d2-reverse-ddns-config">
  441. <title>Reverse DDNS</title>
  442. <para>
  443. The Reverse DDNS section is used to configure D2's reverse update
  444. behavior, and the concepts are the same as for the forward DDNS
  445. section. Currently it contains a single parameter, the catalog of
  446. reverse DDNS Domains, which is a list of structures.
  447. <screen>
  448. "DhcpDdns": {
  449. <userinput>"reverse_ddns": {
  450. "ddns_domains": [ ]
  451. }</userinput>
  452. ...
  453. }
  454. </screen>
  455. By default, this list is empty, which will cause the server to ignore
  456. the reverse update portions of requests.
  457. </para>
  458. <section id="add-reverse-ddns-domain">
  459. <title>Adding Reverse DDNS Domains</title>
  460. <para>
  461. A reverse DDNS Domain maps a reverse DNS zone to a set of DNS
  462. servers which maintain the reverse DNS data (address to name
  463. mapping) for that zone. You will need one reverse DDNS Domain
  464. for each zone you wish to service. It may very well be that
  465. some or all of your zones are maintained by the same servers;
  466. even then, you will still need one DDNS Domain entry for each
  467. zone. Remember that matching a request to the appropriate
  468. server(s) is done by zone and a DDNS Domain only defines a
  469. single zone.
  470. </para>
  471. <para>
  472. The section describes how to add Reverse DDNS Domains. Repeat these
  473. steps for each Reverse DDNS Domain desired. Each Reverse DDNS Domain
  474. has the following parameters:
  475. <itemizedlist>
  476. <listitem>
  477. <simpara>
  478. <command>name</command> -
  479. The fully qualified reverse zone that this DDNS Domain
  480. can update. This is the value used during reverse matching
  481. which will compare it with a reversed version of the request's
  482. lease address. The zone name should follow the appropriate
  483. standards: for example, to to support the IPv4 subnet 172.16.1,
  484. the name should be. "1.16.172.in-addr.arpa.". Similarly,
  485. to support an IPv6 subent of 2001:db8:1, the name should be
  486. "1.0.0.0.8.B.D.0.1.0.0.2.ip6.arpa."
  487. Whatever the name, it must be unique within the catalog.
  488. </simpara>
  489. </listitem>
  490. <listitem>
  491. <simpara>
  492. <command>key_name</command> -
  493. If TSIG should be used with this domain's servers, then this
  494. value should be the name of that key from the TSIG Key List.
  495. If the value is blank (the default), TSIG will not be
  496. used in DDNS conversations with this domain's servers. Currently
  497. this value is not used as TSIG has not been implemented.
  498. </simpara>
  499. </listitem>
  500. <listitem>
  501. <simpara>
  502. <command>dns_servers</command> -
  503. a list of one or more DNS servers which can conduct the server
  504. side of the DDNS protocol for this domain. Currently the servers
  505. are used in a first to last preference. In other words, when D2
  506. begins to process a request for this domain it will pick the
  507. first server in this list and attempt to communicate with it.
  508. If that attempt fails, it will move to next one in the list and
  509. so on until the it achieves success or the list is exhausted.
  510. </simpara>
  511. </listitem>
  512. </itemizedlist>
  513. To create a new reverse DDNS Domain, one must add a new domain element
  514. and set its parameters. For example, to support subnet 2001:db8:1::,
  515. the following configuration could be used:
  516. <screen>
  517. "DhcpDdns": {
  518. "reverse_ddns": {
  519. "ddns_domains": [
  520. <userinput>{
  521. "name": "1.0.0.0.8.B.D.0.1.0.0.2.ip6.arpa.",
  522. "key_name": "",
  523. "dns_servers": [
  524. ]
  525. }</userinput>
  526. ]
  527. }
  528. }
  529. </screen>
  530. It is permissible to add a domain without any servers. If that domain
  531. should be matched to a request, however, the request will fail. In
  532. order to make the domain useful though, we must add at least one DNS
  533. server to it.
  534. </para>
  535. <section id="add-reverse-dns-servers">
  536. <title>Adding Reverse DNS Servers</title>
  537. <para>
  538. The section describes how to add DNS servers to a Reverse DDNS Domain.
  539. Repeat them for as many servers as desired for a each domain.
  540. </para>
  541. <para>
  542. Reverse DNS Server entries represents a actual DNS servers which
  543. support the server side of the DDNS protocol. Each Reverse DNS Server
  544. has the following parameters:
  545. <itemizedlist>
  546. <listitem>
  547. <simpara>
  548. <command>hostname</command> -
  549. The resolvable host name of the DNS server. This value is
  550. currently ignored.
  551. </simpara>
  552. </listitem>
  553. <listitem>
  554. <simpara>
  555. <command>ip_address</command> -
  556. The IP address at which the server listens for DDNS requests.
  557. </simpara>
  558. </listitem>
  559. <listitem>
  560. <simpara>
  561. <command>port</command> -
  562. The port on which the server listens for DDNS requests. It
  563. defaults to the standard DNS service port of 53.
  564. </simpara>
  565. </listitem>
  566. </itemizedlist>
  567. To create a new reverse DNS Server, one must first add a new server
  568. element to the domain and fill its parameters. If for
  569. example the service is running at "172.88.99.10", then set it as
  570. follows:
  571. <screen>
  572. "DhcpDdns": {
  573. "reverse_ddns": {
  574. "ddns_domains": [
  575. {
  576. "name": "1.0.0.0.8.B.D.0.1.0.0.2.ip6.arpa.",
  577. "key_name": "",
  578. "dns_servers": [
  579. <userinput>{
  580. "hostname": "",
  581. "ip_address": "172.88.99.10",
  582. "port": 53
  583. }</userinput>
  584. ]
  585. }
  586. ]
  587. }
  588. }
  589. </screen>
  590. </para>
  591. <note>
  592. <simpara>
  593. As stated earlier, "hostname" is not yet supported so, the parameter
  594. "ip_address" must be set to the address of the DNS server.
  595. </simpara>
  596. </note>
  597. </section> <!-- "add-reverse-dns-servers" -->
  598. </section> <!-- "add-reverse-ddns-domains" -->
  599. </section> <!-- "d2-reverse-ddns-config" -->
  600. <section id="d2-exmaple-config">
  601. <title>Example DHCP-DDNS Server Configuration</title>
  602. <para>
  603. This section provides an example DHCP-DDNS server configuration based
  604. on a small example network. Let's suppose our example network has
  605. three domains, each with their own subnet.
  606. <table>
  607. <title>Our example network</title>
  608. <tgroup cols='4' align='left'>
  609. <colspec colname='domain'/>
  610. <colspec colname='subnet'/>
  611. <colspec colname='fservers'/>
  612. <colspec colname='rservers'/>
  613. <thead>
  614. <row>
  615. <entry>Domain</entry>
  616. <entry>Subnet</entry>
  617. <entry>Forward DNS Servers</entry>
  618. <entry>Reverse DNS Servers</entry>
  619. </row>
  620. </thead>
  621. <tbody>
  622. <row>
  623. <entry>four.example.com</entry>
  624. <entry>192.0.2.0/24</entry>
  625. <entry>172.16.1.5, 172.16.2.5</entry>
  626. <entry>172.16.1.5, 172.16.2.5</entry>
  627. </row>
  628. <row>
  629. <entry>six.example.com</entry>
  630. <entry>2001:db8:1::/64</entry>
  631. <entry>3001:1::50</entry>
  632. <entry>3001:1::51</entry>
  633. </row>
  634. <row>
  635. <entry>example.com</entry>
  636. <entry>192.0.0.0/16</entry>
  637. <entry>172.16.2.5</entry>
  638. <entry>172.16.2.5</entry>
  639. </row>
  640. </tbody>
  641. </tgroup>
  642. </table>
  643. </para>
  644. <para>
  645. We need to construct three forward DDNS Domains:
  646. <table>
  647. <title>Forward DDNS Domains Needed</title>
  648. <tgroup cols='3' align='left'>
  649. <colspec colname='num'/>
  650. <colspec colname='name'/>
  651. <colspec colname='servers'/>
  652. <thead>
  653. <row>
  654. <entry>#</entry>
  655. <entry>DDNS Domain Name</entry>
  656. <entry>DNS Servers</entry>
  657. </row>
  658. </thead>
  659. <tbody>
  660. <row>
  661. <entry>1.</entry>
  662. <entry>four.example.com.</entry>
  663. <entry>172.16.1.5, 172.16.2.5</entry>
  664. </row>
  665. <row>
  666. <entry>2.</entry>
  667. <entry>six.example.com.</entry>
  668. <entry>3001:1::50</entry>
  669. </row>
  670. <row>
  671. <entry>3.</entry>
  672. <entry>example.com.</entry>
  673. <entry>172.16.2.5</entry>
  674. </row>
  675. </tbody>
  676. </tgroup>
  677. </table>
  678. As discussed earlier, FQDN to domain matching is based on the longest
  679. match. The FQDN, "myhost.four.example.com.", will match the first
  680. domain ("four.example.com") while "admin.example.com." will match the
  681. third domain ("example.com"). The
  682. FQDN, "other.example.net." will fail to match any domain and would
  683. be rejected.
  684. </para>
  685. <para>
  686. The following example configuration specified the Forward DDNS Domains.
  687. <screen><userinput>
  688. "DhcpDdns": {
  689. "forward_ddns": {
  690. "ddns_domains": [
  691. {
  692. "name": "four.example.com.",
  693. "key_name": "",
  694. "dns_servers": [
  695. { "ip_address": "172.16.1.5" },
  696. { "ip_address": "172.16.2.5" }
  697. ]
  698. },
  699. {
  700. "name": "six.example.com.",
  701. "key_name": "",
  702. "dns_servers": [
  703. { "ip_address": "2001:db8::1" }
  704. ]
  705. },
  706. {
  707. "name": "example.com.",
  708. "key_name": "",
  709. "dns_servers": [
  710. { "ip_address": "172.16.2.5" }
  711. ]
  712. },
  713. ]
  714. }
  715. }</userinput>
  716. </screen>
  717. </para>
  718. <para>
  719. Similarly, we need to construct the three reverse DDNS Domains:
  720. <table>
  721. <title>Reverse DDNS Domains Needed</title>
  722. <tgroup cols='3' align='left'>
  723. <colspec colname='num'/>
  724. <colspec colname='DDNS Domain name'/>
  725. <colspec colname='DDNS Domain DNS Servers'/>
  726. <thead>
  727. <row>
  728. <entry>#</entry>
  729. <entry>DDNS Domain Name</entry>
  730. <entry>DNS Servers</entry>
  731. </row>
  732. </thead>
  733. <tbody>
  734. <row>
  735. <entry>1.</entry>
  736. <entry>2.0.192.in-addr.arpa.</entry>
  737. <entry>172.16.1.5, 172.16.2.5</entry>
  738. </row>
  739. <row>
  740. <entry>2.</entry>
  741. <entry>1.0.0.0.8.d.b.0.1.0.0.2.ip6.arpa.</entry>
  742. <entry>3001:1::50</entry>
  743. </row>
  744. <row>
  745. <entry>3.</entry>
  746. <entry>0.182.in-addr.arpa.</entry>
  747. <entry>172.16.2.5</entry>
  748. </row>
  749. </tbody>
  750. </tgroup>
  751. </table>
  752. An address of "192.0.2.150" will match the first domain,
  753. "2001:db8:1::10" will match the second domain, and "192.0.50.77"
  754. the third domain.
  755. </para>
  756. <para>
  757. These Reverse DDNS Domains are specified as follows:
  758. <screen><userinput>
  759. "DhcpDdns": {
  760. "reverse_ddns": {
  761. "ddns_domains": [
  762. {
  763. "name": "2.0.192.in-addr.arpa.",
  764. "key_name": "",
  765. "dns_servers": [
  766. { "ip_address": "172.16.1.5" },
  767. { "ip_address": "172.16.2.5" }
  768. ]
  769. }
  770. {
  771. "name": "1.0.0.0.8.B.D.0.1.0.0.2.ip6.arpa.",
  772. "key_name": "",
  773. "dns_servers": [
  774. { "ip_address": "2001:db8::1" }
  775. ]
  776. }
  777. {
  778. "name": "0.192.in-addr.arpa.",
  779. "key_name": "",
  780. "dns_servers": [
  781. { "ip_address": "172.16.2.5" }
  782. ]
  783. }
  784. ]
  785. }
  786. }</userinput>
  787. </screen>
  788. </para>
  789. </section> <!-- end of "d2-example" -->
  790. </section> <!-- end of section "d2-configuration" -->
  791. <section>
  792. <title>DHCP-DDNS Server Limitations</title>
  793. <para>The following are the current limitations of the DHCP-DDNS Server.</para>
  794. <itemizedlist>
  795. <listitem>
  796. <simpara>
  797. Requests received from the DHCP servers are placed in a
  798. queue until they are processed. Currently all queued requests
  799. are lost when the server shuts down.
  800. </simpara>
  801. </listitem>
  802. <listitem>
  803. <simpara>
  804. TSIG Authentication (<ulink
  805. url="http://tools.ietf.org/html/rfc2845">RFC 2845</ulink>)
  806. is not supported yet.
  807. </simpara>
  808. </listitem>
  809. </itemizedlist>
  810. </section>
  811. </chapter> <!-- DHCP-DDNS Server -->