- Ceph Cookbook(Second Edition)
- Vikhyat Umrao Michael Hackett Karan Singh
- 203字
- 2021-07-02 23:19:18
Configuring DNS
- Install bind packages on the ceph-rgw node:
# yum install bind* -y
- Edit /etc/named.conf and add information for IP addresses, IP range, and zone, which are mentioned as follows. You can match the changes from the author's version of the named.conf file provided with this book:
listen-on port 53 { 127.0.0.1;192.168.1.106; };
### Add DNS IP ###
allow-query { localhost;192.168.1.0/24; };
### Add IP Range ###

### Add new zone for the domain cephcookbook.com before EOF ###
zone "cephcookbook.com" IN {
type master;
file "db.cephcookbook.com";
allow-update { none; };
};

- Create the zone file /var/named/db.cephcookbook.com, with the following content:
@ 86400 IN SOA cephcookbook.com. root.cephcookbook.com. (
20091028 ; serial yyyy-mm-dd
10800 ; refresh every 15 min
3600 ; retry every hour
3600000 ; expire after 1 month +
86400 ); min ttl of 1 day
@ 86400 IN NS cephbookbook.com.
@ 86400 IN A 192.168.1.106
* 86400 IN CNAME @

- Edit /etc/resolve.conf and add the following content on top of the file:
search cephcookbook.com
nameserver 192.168.1.106

- Start the named service:
# systemctl start named.service
- Test the DNS configuration files for any syntax errors:
# named-checkconf /etc/named.conf
# named-checkzone cephcookbook.com
/var/named/db.cephcookbook.com

- Test the DNS server:
# dig rgw-node1.cephcookbook.com
# nslookup rgw-node1.cephcookbook.com
推薦閱讀
- 大數(shù)據(jù)技術(shù)與應(yīng)用基礎(chǔ)
- Hands-On Deep Learning with Apache Spark
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- 平面設(shè)計初步
- 走入IBM小型機世界
- Julia 1.0 Programming
- UTM(統(tǒng)一威脅管理)技術(shù)概論
- 模型制作
- Moodle Course Design Best Practices
- Kubernetes for Serverless Applications
- 筆記本電腦維修90個精選實例
- 工業(yè)機器人實操進階手冊
- 典型Hadoop云計算
- AVR單片機工程師是怎樣煉成的
- 工廠電氣控制設(shè)備