遇到一件有趣的事,我們公司買來的source code - AMI MegaRAC要求zone(domain-name) ping得到才能往後nsupdate更新/註冊DNS...
在任何一個Linux或是ASUS BMC(AMI Codebase)不需要這個條件,都能順利註冊DNS
對比之下ㄏㄏ 真是有趣~~~
至於如何達成能ping得到zone呢?
在zone的正解檔案內加一筆紀錄,domain-name正解=dns-server囉
$TTL 86400 ; 1 hour
@ IN SOA dns.test.qt. root.test.qt. (
2020435092 ; serial
43200 ; refresh (12 hours)
3600 ; retry (1 hour)
86400 ; expire (1 day)
43200 ; minimum (12 hours)
)
; Name servers for this domain
@ IN NS dns.test.qt.
; A records
@ IN A 192.168.0.4 ;# Related to Domain-name is able to ping or not
dns IN A 192.168.0.4
pxe IN A 192.168.0.5
; AAAA records
@ IN AAAA 3ffe:501:ffff:100::4 ;# Related to Domain-name is able to ping or not
dns IN AAAA 3ffe:501:ffff:100::4
pxe IN AAAA 3ffe:501:ffff:100::5
留言列表