天天看點

學習筆記 九: DNS

一 DNS服務

 Domain Name system,它是一個層級名稱樹解析網絡主機和資源。

常用的解析指令:

host

dig

/etc/resolv.conf

host -v -t NS example.com

DNS記錄:

TTL

class

PTR

A

cname

MX

TXT

二 DNS安裝配置

caching nameservers

unbound  :  serveral packages are avaliable for configuring a caching nameserver

yum install -y unbound

systemctl start unbound.service

systemctl enable unbound.service

三 配置執行個體

智能主伺服器

2. 轉發伺服器

3.

配置 caching nameservers

vi /etc/unbound/unbound.conf

interface: 0.0.0.0

access-control: 1.1.1.1/24 allow

forward-zone:

    name: "."

    forward-addr: 172.25.254.254

domain-insecure: example.com

firewall-cmd --premanent --add-service=dns

firewall-cmd --reload

unbound-control dump_cache

四 高可用

4.1 主從伺服器

4.2 keepalived+bind

本文轉自 woshiwei201 51CTO部落格,原文連結:http://blog.51cto.com/chenwei/1841968

繼續閱讀