官术网_书友最值得收藏!

Configuring DNS

  1. Install bind packages on the ceph-rgw node:
        # yum install bind* -y
  1. 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; };
};
  1. 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 @
  1. Edit /etc/resolve.conf and add the following content on top of the file:
 search cephcookbook.com
nameserver 192.168.1.106
  1. Start the named service:
  # systemctl start named.service
  1. Test the DNS configuration files for any syntax errors:
        # named-checkconf /etc/named.conf
# named-checkzone cephcookbook.com
/var/named/db.cephcookbook.com
  1. Test the DNS server:
        # dig rgw-node1.cephcookbook.com
# nslookup rgw-node1.cephcookbook.com
主站蜘蛛池模板: 寻甸| 宁安市| 阳信县| 雅安市| 阿勒泰市| 乾安县| 方正县| 东乌珠穆沁旗| 安西县| 巩留县| 镇平县| 汶上县| 祁东县| 孝感市| 临泉县| 大埔区| 陕西省| 汉寿县| 抚顺市| 马公市| 得荣县| 樟树市| 循化| 密云县| 宁乡县| 赞皇县| 利津县| 油尖旺区| 聊城市| 建昌县| 桃江县| 阿合奇县| 固镇县| 龙州县| 丹凤县| 丰镇市| 铜鼓县| 祁门县| 吴川市| 巴青县| 前郭尔|