歡迎您光臨本站 註冊首頁

請教關於區域網動態DNS的問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

請教關於區域網動態DNS的問題

大家好~
在網上找了很多資料,嘗試了幾天自已解決仍未成功.
只好向大家求教了,
我在as 4中做了DHCP和dns是成功的.(同一台伺服器)
然後再嘗試做DDNS,這裡就碰到問題:
1、如果PC用DHCP的方式獲取IP地址,它可以ping得通DNS伺服器的域名,但從DNS伺服器卻無法PING得通客戶端。
2、如果手動指定客戶端的IP地址(當然DNS地址也指向伺服器),該客戶端僅能ping通伺服器域名。
3、如果都是動態DHCP的PC之間可以互聯ping通(ping域名)。

我幾天檢查下來,發現可能是因為動態*.jnl文件一直沒有成功建立的關係。我將/var/named/chroot許可權設置777 ,全部是named:named用戶和組仍然不行。

在伺服器端nslookup 服務的域名和IP都是正常的,請教一下,是什麼原因造成系統不能動態DNS解析呢?謝謝~~~~


附named的記錄:

$ more /var/log/messages | grep named

Aug 26 20:14:10 long named: starting BIND 9.2.4
Aug 26 20:14:10 long named: using 4 CPUs
Aug 26 20:14:10 long named: loading configuration from '/etc/named.conf'
Aug 26 20:14:10 long named: listening on IPv4 interface lo, 127.0.0.1#53
Aug 26 20:14:10 long named: binding TCP socket: address in use
Aug 26 20:14:10 long named: listening on IPv4 interface eth0, 192.168.0.64#53
Aug 26 20:14:10 long named: binding TCP socket: address in use
Aug 26 20:14:10 long named: extra data in root hints 'named.ca'
Aug 26 20:14:10 long named: zone 'longchee' allows updates by IP address, which is insecure
Aug 26 20:14:10 long named: zone '0.168.192.in-addr.arpa' allows updates by IP address, which is insecure
Aug 26 20:14:10 long named: /etc/named.conf:23: couldn't add command channel 127.0.0.1#953: address in use
Aug 26 20:14:10 long named: couldn't open pid file '/var/run/named/named.pid': Permission denied
Aug 26 20:14:10 long named: exiting (due to early fatal error)

[ 本帖最後由 yexingqi 於 2008-8-26 23:44 編輯 ]
《解決方案》

各位請幫幫忙給點建議好嗎?謝謝了。
《解決方案》

Aug 27 12:49:52 long dhcpd: dhcpd startup succeeded
Aug 27 12:49:57 long dhcpd: DHCPRELEASE of 192.168.0.144 from 00:15:c5:77:ff:54 via eth0 (not found)
Aug 27 12:50:00 long dhcpd: DHCPDISCOVER from 00:15:c5:77:ff:54 via eth0
Aug 27 12:50:01 long dhcpd: DHCPOFFER on 192.168.0.144 to 00:15:c5:77:ff:54 (A21000-ITtest) via eth0
Aug 27 12:50:01 long dhcpd: Unable to add forward map from A21000-ITtest.opulan to 192.168.0.144: timed out
Aug 27 12:50:01 long dhcpd: DHCPREQUEST for 192.168.0.144 (192.168.0.64) from 00:15:c5:77:ff:54 (A21000-ITtest) via eth0
Aug 27 12:50:01 long dhcpd: DHCPACK on 192.168.0.144 to 00:15:c5:77:ff:54 (A21000-ITtest) via eth0
Aug 27 12:50:03 long dhcpd: DHCPINFORM from 192.168.0.144 via eth0: not authoritative for subnet 192.168.0.0
Aug 27 12:50:03 long dhcpd: If this DHCP server is authoritative for that subnet,
Aug 27 12:50:03 long dhcpd: please write an `authoritative;' directive either in the
Aug 27 12:50:03 long dhcpd: subnet declaration or in some scope that encloses the
Aug 27 12:50:03 long dhcpd: subnet declaration - for example, write it at the top
Aug 27 12:50:03 long dhcpd: of the dhcpd.conf file.
Aug 27 12:50:06 long dhcpd: DHCPINFORM from 192.168.0.144 via eth0: not authoritative for subnet 192.168.0.0
Aug 27 12:50:31 long dhcpd: DHCPREQUEST for 192.168.0.107 from 00:1e:c9:bb:39:36 via eth0: unknown lease 192.168.0.107.
Aug 27 12:51:43 long dhcpd: DHCPREQUEST for 192.168.0.107 from 00:1e:c9:bb:39:36 via eth0: unknown lease 192.168.0.107.
Aug 27 12:54:54 long dhcpd: DHCPREQUEST for 192.168.0.107 from 00:1e:c9:bb:39:36 via eth0: unknown lease 192.168.0.107.
Aug 27 12:58:08 long dhcpd: DHCPREQUEST for 192.168.0.107 from 00:1e:c9:bb:39:36 via eth0: unknown lease 192.168.0.107.
《解決方案》

還是沒有人能幫幫忙嗎?傷心啊.....
《解決方案》

我自已解決了。暈。
這論壇一點人氣都沒有。。。。。。。
原因是要設置許可權。
/avr/name/chroot/var/named 這個目錄設root:named許可權。
/avr/name/chroot/var/named /*。* 這裡所有的文件要設named:named許可權。一定要給予定操作許可權才可以。
再重啟named和dhcpd服務就可以了。

[火星人 ] 請教關於區域網動態DNS的問題已經有783次圍觀

http://coctec.com/docs/service/show-post-27953.html