차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
dns [2021/05/15 07:13] koovdns [2021/05/18 01:33] (현재) – [HOST 선언방법] koov
줄 45: 줄 45:
 bind-dynamic bind-dynamic
 bogus-priv bogus-priv
-domain=ocp.example.com+ 
 +domain=ocp.example.com,192.168.10.0/24,local 
 +auth-zone=ocp.example.com,192.168.10.0/24,local 
 + 
 +# 자체 서비스 할 도메인 설정 (업스트림으로 넘기지 않음) 
 +local=/ocp.example.com/ 
 +local=/10.168.192.in-addr.arpa/ 
 + 
 +# 바인딩 NIC
 interface=eth2 interface=eth2
  
 # /etc/hosts 파일을 참조하지 않음. # /etc/hosts 파일을 참조하지 않음.
 no-hosts no-hosts
 +
 +# /etc/hosts 사용시 호스트명에 도메인명을 확장함
 +expand-hosts
  
 # host list file # host list file
 addn-hosts=/etc/hosts.dnsmasq addn-hosts=/etc/hosts.dnsmasq
-expand-hosts+ 
 +# upstream DNS 
 +server=8.8.8.8 
 +server=8.8.4.4 
 +# upstream resolve 
 +resolv-file=/etc/resolv.conf.upstream
  
 # wildcard address # wildcard address
 address=/.apps.ocp.example.com/10.0.0.52 address=/.apps.ocp.example.com/10.0.0.52
  
-# normally host +# normally host (reverse not work) 
-address=/user/10.0.0.61+address=/user1.local.domain/10.0.0.61
 address=/user2.local.domain/10.0.0.112 address=/user2.local.domain/10.0.0.112
 +
 +# A, AAAA, PTR definition (reverse lookup work)
 +host-record=bootstrap,192.168.10.5
 +host-record=api,192.168.10.9
 +host-record=api-int,192.168.10.9
 +
 </code> </code>
 </WRAP> </WRAP>
줄 118: 줄 140:
 # listen interface # listen interface
 interface=eth2 interface=eth2
 +# 특정 NIC는 DHCP안함
 +no-dhcp-interface=ens192
  
 # DHCP MAC Address 기반 hostname, IP할당 설정. # DHCP MAC Address 기반 hostname, IP할당 설정.
  • dns.1621062790.txt.gz
  • 마지막으로 수정됨: 2021/05/15 07:13
  • 저자 koov