티스토리 뷰
간단하게 dns lookup 용도로 사용이 가능하다.
/etc/dnsmasq.d/static-host.conf(파일은 conf 확장자를 가지면 되고 이름은 편한 이름으로)을 생성한다.
다음과 같이 address 항목을 추가하면 lookup을 수행할 수 있다.
address=/engine.jacob-lab.com/192.168.122.100
address=/jacob-lab.com/192.168.122.50
address=/rhv.jacob-lab.com/192.168.122.50
실제 위와 같이 수행후 dnsmasq 서비스를 재시작해주면 lookup 내부 뿐아니라 외부에서도 lookup이 가능하다.
systemctl restart dnsmasq
dnsmasq를 통한 resolving을 수행하기 위해서는 /etc/resolv.conf 에 localhost nameserver를 추가해야 한다.
cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 8.8.8.8
간단한 테스트를 위해서 사용하기에는 괜찮은 domain lookup tool이다.
'os > Linux' 카테고리의 다른 글
| how to generate custom policy (0) | 2018.11.09 |
|---|---|
| PTP (0) | 2018.08.21 |
| changing for size of centos root (0) | 2016.10.28 |
| linux bridge with hairpin (0) | 2016.08.11 |
| socket option related kernel (0) | 2015.03.09 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- OpenStack
- kubernetes install
- boundary ssh
- Jenkinsfile
- Helm Chart
- minikube
- vmware openstack
- kubernetes
- ansible
- hashicorp boundary
- kata container
- mattermost
- ceph
- GateKeeper
- azure policy
- DevSecOps
- aquasecurity
- jenkins
- minio
- open policy agent
- openstacksdk
- Terraform
- K3S
- macvlan
- nginx-ingress
- openstack backup
- crashloopbackoff
- wsl2
- socket
- metallb
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함