亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1939 | 回復: 2
打印 上一主題 下一主題

[DNS] 關于SEC DDNS,搜索過了,沒找到結果,有請大家了 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-05-21 14:12 |只看該作者 |倒序瀏覽
Dns and bind 有第5版了,http://www.bookpool.com/sm/0596100574,哪位兄弟有嗎?
搜索過了論壇,看到了http://www.72891.cn/viewthread.php?tid=557811&extra=page%3D4,沒人回答啊
系統(tǒng)信息:
Cat /etc/redhat-release:Red Hat Enterprise Linux AS release 4 (Nahant Update 3)
Uname –a:Linux ser-linux.hedaofu.com 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 i686 i686 i386 GNU/Linux
./configure –-prefix=/usr/local/named
BIND9.3.2+系統(tǒng)自帶的DHCPD3.01

目的,將上面的機器做DNS服務器,域為hedaofu.com,同時做網絡內的DHCP服務器,要求DNS實現(xiàn)安全的更新(不要用allow-update,用update-policy語句)。
問題,dhcpd.conf及named.conf均配置了相同的key ddns,OK,現(xiàn)在所有通過DHCP分配到IP的機器都可以動態(tài)更新了,但現(xiàn)在需讓固定IP為172.28.11.5的服務器server也能更新(其實這臺機器是windows的DC,DNS指向BIND,需要在hedaofu.com中添加記錄),update-policy該怎么寫?

上網找了很多資料,這是dns and bind ,4th edition中的示例:
Here's a more complicated example: to allow all clients the ability to change any records, except SRV records, that are owned by the same domain name as their key name, but to allow matrix.fx.movie.edu to update SRV records associated with Windows 2000 (in the _udp.fx.movie.edu, _tcp.fx.movie.edu, _sites.fx.movie.edu, and _msdcs.fx.movie.edu subdomains), you could use:

  1. zone "fx.movie.edu" {
  2.         type master;
  3.         file "db.fx.movie.edu";
  4.         update-policy {
  5.                 deny *.fx.movie.edu. self *.fx.movie.edu. SRV;
  6.                 grant *.fx.movie.edu. self *.fx.movie.edu. ANY;
  7.                 grant matrix.fx.movie.edu. subdomain _udp.fx.movie.edu. SRV;
  8.                 grant matrix.fx.movie.edu. subdomain _tcp.fx.movie.edu. SRV;
  9.                 grant matrix.fx.movie.edu. subdomain _sites.fx.movie.edu. SRV;
  10.                 grant matrix.fx.movie.edu. subdomain _msdcs.fx.movie.edu. SRV;
  11.         };
  12. };
復制代碼


我的named.conf,去掉了log部分

  1. options {
  2. directory "/var/named";
  3. forwarders {202.96.134.133;
  4.             202.96.128.68;
  5.           };
  6. };

  7. key "rndc-key" {
  8.       algorithm hmac-md5;
  9.       secret "BF4xHsYD0WNejL0Ao9xD3g==";
  10. };

  11. controls {
  12.       inet 127.0.0.1 port 953
  13.               allow { 127.0.0.1; } keys { "rndc-key"; };
  14. };

  15. key ddns {
  16.          algorithm hmac-md5;
  17.          secret "+apzjjN89Rg6ed79Rkm7KTBwqQo3Pbu2M32b8uBvtdm0ppBXcCmuUG0BRNjmhOPwp01zemnr77y8Kvth9WLVxA==";
  18.                };

  19. zone "11.28.172.in-addr.arpa" IN {
  20. type master;
  21. file "172.28.11";
  22. update-policy {
  23.                 grant ddns wildcard *.11.28.172.in-addr.arpa. ANY;
  24.                 grant 172.28.11.* self *.11.28.172.in-addr.arpa. ANY;
  25.                 grant 172.28.11.5 name 11.28.172.in-addr.arpa. ANY;
  26.               };
  27. };

  28. zone "hedaofu.com" IN {
  29. type master;
  30. file "hedaofu.com";
  31. update-policy {
  32.                 grant ddns wildcard *.hedaofu.com. ANY;
  33.                 grant *.hedaofu.com. self *.hedaofu.com. ANY;
  34.                 grant server.hedaofu.com. name hedaofu.com. ANY;
  35.                 grant server.hedaofu.com. self server.hedaofu.com. ANY;
  36.                 grant server.hedaofu.com. wildcard *.hedaofu.com. ANY;
  37.               };
  38. };
復制代碼

我的Dhcpd.conf:

  1. ddns-updates                on;
  2. ddns-update-style           interim;
  3. ddns-domainname             "hedaofu.com.";
  4. ddns-rev-domainname         "in-addr.arpa.";
  5. allow                       client-updates;

  6. next-server 172.28.11.2;
  7. filename "mba.pxe";

  8. option domain-name                "hedaofu.com.";
  9. option domain-name-servers        172.28.11.2;
  10. option ntp-servers                172.28.11.2;
  11. option netbios-name-servers        172.28.11.2;

  12. default-lease-time              43200;
  13. max-lease-time                  86400;
  14. authoritative;

  15. log-facility local7;

  16. key ddns {
  17.          algorithm hmac-md5;
  18.          secret "+apzjjN89Rg6ed79Rkm7KTBwqQo3Pbu2M32b8uBvtdm0ppBXcCmuUG0BRNjmhOPwp01zemnr77y8Kvth9WLVxA==";
  19.        };


  20. subnet 172.28.11.0 netmask 255.255.255.0 {
  21.         range                                 172.28.11.200 172.28.11.210;
  22.         option routers                        172.28.11.254;
  23.         option broadcast-address        172.28.11.255;
  24.         allow                           unknown-clients;


  25.         zone hedaofu.com. {
  26.          primary 127.0.0.1;
  27.          key ddns;
  28.         }

  29.         zone 11.28.172.in-addr.arpa. {
  30.          primary 127.0.0.1;
  31.          key ddns;
  32.         }
復制代碼

論壇徽章:
0
2 [報告]
發(fā)表于 2006-05-21 14:19 |只看該作者

這是系統(tǒng)LOG

[root@ser-linux ~]# tail /var/log/messages
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1345: update 'hedaofu.com/IN' denied
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1349: update 'hedaofu.com/IN' denied
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1353: update 'hedaofu.com/IN' denied
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1357: update 'hedaofu.com/IN' denied
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1361: update 'hedaofu.com/IN' denied
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1365: update 'hedaofu.com/IN' denied
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1369: update 'hedaofu.com/IN' denied
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1373: update 'hedaofu.com/IN' denied
May 21 14:31:35 ser-linux named[2185]: client 172.28.11.5#1377: update 'hedaofu.com/IN' denied
May 21 14:31:36 ser-linux named[2185]: client 172.28.11.5#1381: update 'hedaofu.com/IN' denied
[root@ser-linux ~]#

論壇徽章:
0
3 [報告]
發(fā)表于 2006-05-23 10:51 |只看該作者

沒辦法,我已經用allow-update臨時解決了

沒辦法,我只能臨時用allow-update了。但AD的LOG里還是有一兩個報錯說無法添加記錄,多數(shù)記錄已添加成功。
也許是我水平不行。感覺在有AD的情況下還是應該用WINDOWS自己的DNS服務器。

另外,從WINDOWS上傳文件到LINUX上我用FileZilla,選擇SFTP USING SSH2,連FTP都不用配置,對剛開始接觸LINUX的朋友們應該有點用的,(想當初我弄得很復雜。。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP