วันพุธที่ 28 กันยายน พ.ศ. 2559

ติดตั้ง Internal DNS เพื่อใช้งานอย่างง่ายด้วย dnsmasq

OS ที่ใช้ CentOS 7 (minimal installation)

แก้ไขไฟล์  /etc/dnsmasq.conf ดังนี้


port=53

### กำหนด Upstream DNS servers
server=8.8.8.8
server=8.8.4.4

### กำหนด DNS cache size โดยหากต้องการ Disable ให้กำหนดเป็น 0
cache-size=10000


จากนั้น Save ไฟล์



- กำหนดให้ dnsmasq ทำงานทุกครั้งที่ reoot
Server# systemctl  enable  dnsmasq

- ทำการเปิดใช้งาน dnsmasq
Server# systemctl  start  dnsmasq