차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
| dns [2021/05/04 07:52] – koov | dns [2021/05/18 01:33] (현재) – [HOST 선언방법] koov | ||
|---|---|---|---|
| 줄 11: | 줄 11: | ||
| ===== DNSMASQ ===== | ===== DNSMASQ ===== | ||
| - | ==== wildcard domain | + | * wildcard domain |
| '' | '' | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| 줄 22: | 줄 21: | ||
| </ | </ | ||
| - | ==== upstream | + | * 외부(upstream) DNS 설정 방법 |
| '' | '' | ||
| <WRAP prewrap> | <WRAP prewrap> | ||
| 줄 46: | 줄 45: | ||
| bind-dynamic | bind-dynamic | ||
| bogus-priv | bogus-priv | ||
| - | domain=ocp.example.com | + | |
| + | domain=ocp.example.com, | ||
| + | auth-zone=ocp.example.com, | ||
| + | |||
| + | # 자체 서비스 할 도메인 설정 (업스트림으로 넘기지 않음) | ||
| + | local=/ | ||
| + | local=/ | ||
| + | |||
| + | # 바인딩 NIC | ||
| interface=eth2 | interface=eth2 | ||
| + | |||
| + | # /etc/hosts 파일을 참조하지 않음. | ||
| no-hosts | no-hosts | ||
| + | |||
| + | # /etc/hosts 사용시 호스트명에 도메인명을 확장함 | ||
| + | expand-hosts | ||
| # host list file | # host list file | ||
| addn-hosts=/ | addn-hosts=/ | ||
| - | expand-hosts | + | |
| + | # upstream DNS | ||
| + | server=8.8.8.8 | ||
| + | server=8.8.4.4 | ||
| + | # upstream resolve | ||
| + | resolv-file=/ | ||
| # wildcard address | # wildcard address | ||
| address=/ | address=/ | ||
| + | |||
| + | # normally host (reverse not work) | ||
| + | address=/ | ||
| + | address=/ | ||
| + | |||
| + | # A, AAAA, PTR definition (reverse lookup work) | ||
| + | host-record=bootstrap, | ||
| + | host-record=api, | ||
| + | host-record=api-int, | ||
| + | |||
| </ | </ | ||
| </ | </ | ||
| 줄 80: | 줄 107: | ||
| bind-dynamic | bind-dynamic | ||
| bogus-priv | bogus-priv | ||
| + | |||
| + | # / | ||
| + | no-resolv | ||
| + | |||
| + | ### local 속성을 지정하지 않으면 없는 FQDN에 대해서 업스트림으로 질의를 넘김 | ||
| + | local=/ | ||
| domain=ocp.example.com | domain=ocp.example.com | ||
| - | dhcp-range=10.0.0.10, | ||
| - | dhcp-option=3, | ||
| - | # 해당하지 않는 도메인에 대한 외부질의 | + | dhcp-range=10.0.0.200, |
| + | |||
| + | ### PXE 부팅 설정할 경우 | ||
| + | enable-tftp | ||
| + | tftp-root=/ | ||
| + | dhcp-boot=pxelinux/ | ||
| + | |||
| + | ### dhcp option | ||
| + | # dhcp-option=3 | ||
| + | # dhcp-option=6 | ||
| + | # dhcp-option=option: | ||
| + | # dhcp-option=option: | ||
| + | # GW 설정 | ||
| + | dhcp-option=3, | ||
| + | # DNS 설정 | ||
| + | dhcp-option=6, | ||
| + | |||
| + | # upstream DNS | ||
| + | server=8.8.8.8 | ||
| + | server=8.8.4.4 | ||
| + | # upstream resolve | ||
| resolv-file=/ | resolv-file=/ | ||
| + | |||
| + | # listen interface | ||
| interface=eth2 | interface=eth2 | ||
| - | server=10.0.0.254 | + | # 특정 NIC는 DHCP안함 |
| + | no-dhcp-interface=ens192 | ||
| # DHCP MAC Address 기반 hostname, IP할당 설정. | # DHCP MAC Address 기반 hostname, IP할당 설정. | ||
| 줄 96: | 줄 150: | ||
| dhcp-host=00: | dhcp-host=00: | ||
| dhcp-host=00: | dhcp-host=00: | ||
| + | |||
| </ | </ | ||
| </ | </ | ||
| 줄 106: | 줄 161: | ||
| </ | </ | ||
| </ | </ | ||
| + | |||
| + | ==== 참조링크 ==== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||