4620297
ORCL
3
버전 비교
비교대상
키
- 이 줄이 추가되었습니다.
- 이 줄이 삭제되었습니다.
- 서식이 변경되었습니다.
Image Added
Image AddedImage Removed
Image Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image AddedImage Removed
Image Added
Image Removed
Image Added
| 코드 블럭 | ||||||
|---|---|---|---|---|---|---|
| ||||||
hostnamectl status hostnamectl set-hostname dns hostnamectl status |
| 코드 블럭expand | ||||||
|---|---|---|---|---|---|---|
| ||||||
systemctl stop firewalld
systemctl disable firewalld | ||||||
| 펼치기 |
| 서식 미적용 |
|---|
[root@dns ~]# systemctl stop firewalld
[root@dns ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. |
| 서식 미적용 |
|---|
[root@rac1 ~]# hostnamectl status
Static hostname: rac1
Icon name: computer-vm
Chassis: vm
Machine ID: 5554cd8ab5124283be4afd144783a884
Boot ID: 8075d1f529eb46f88fe2fc7927b8cdb9
Virtualization: kvm
Operating System: Oracle Linux Server 7.6
CPE OS Name: cpe:/o:oracle:linux:7:6:server
Kernel: Linux 4.14.35-1818.3.3.el7uek.x86_64
Architecture: x86-64
[root@rac1 ~]# hostnamectl set-hostname dns
[root@rac1 ~]# hostnamectl status
Static hostname: dns
Icon name: computer-vm
Chassis: vm
Machine ID: 5554cd8ab5124283be4afd144783a884
Boot ID: 8075d1f529eb46f88fe2fc7927b8cdb9
Virtualization: kvm
Operating System: Oracle Linux Server 7.6
CPE OS Name: cpe:/o:oracle:linux:7:6:server
Kernel: Linux 4.14.35-1818.3.3.el7uek.x86_64
Architecture: x86-64 |
| 코드 블럭 | ||||||
|---|---|---|---|---|---|---|
| ||||||
systemctl stop firewalld
systemctl disable firewalld |
| 펼치기 | ||
|---|---|---|
|
| 코드 블럭 | ||||||
|---|---|---|---|---|---|---|
| ||||||
cd <리눅스 설치 디스크 마운트 경로>/Packages
rpm -ivh python-ply-*.noarch.rpm
# rpm -ivh bind-license-*.el7.noarch.rpm
# rpm -Uvh bind-utils-*.x86_64.rpm bind-libs-*.x86_64.rpm
rpm -ivh bind-*.el7.x86_64.rpm
rpm -ivh bind-chroot-*.x86_64.rpm
cd
eject |
| 펼치기 | ||
|---|---|---|
|
| 코드 블럭 | ||||||
|---|---|---|---|---|---|---|
| ||||||
cd <리눅스 설치 디스크 마운트 경로>/Packages
rpm -ivh python-ply-3.4-11.el7.noarch.rpm
rpm -ivh bind-license-9.9.4-72.el7.noarch.rpm
rpm -Uvh bind-utils-9.9.4-72.el7.x86_64.rpm bind-libs-9.9.4-72.el7.x86_64.rpm
rpm -ivh bind-9.9.4-72.el7.x86_64.rpm
rpm -ivh bind-chroot-9.9.4-72.el7.x86_64.rpm
cd
eject |
| 펼치기 | ||
|---|---|---|
|
| 코드 블럭 | ||||||
|---|---|---|---|---|---|---|
| ||||||
/usr/libexec/setup-named-chroot.sh /var/named/chroot on
systemctl stop named
systemctl disable named
systemctl start named-chroot
systemctl enable named-chroot |
| 펼치기 | ||
|---|---|---|
|
| 코드 블럭 | ||||
|---|---|---|---|---|
| ||||
// listen-on port 53 { 127.0.0.1; };
listen-on port 53 { 127.0.0.1; 10.0.1.150; };
// allow-query { localhost; };
allow-query { localhost; 10.0.1.0/24; }; |
| 펼치기 | ||
|---|---|---|
|
| 코드 블럭 | ||||
|---|---|---|---|---|
| ||||
zone "localdomain." IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "1.0.10.in-addr.arpa." IN {
type master;
file "1.0.10.in-addr.arpa";
allow-update { none; };
}; |
| 펼치기 | ||
|---|---|---|
|
| 코드 블럭 | ||||||
|---|---|---|---|---|---|---|
| ||||||
/usr/libexec/setup-named-chroot.sh /var/named/chroot on
systemctl stop named
systemctl disable named
systemctl start named-chroot
systemctl enable named-chroot |
| 펼치기 | ||
|---|---|---|
|
| 코드 블럭 | ||||
|---|---|---|---|---|
| ||||
$TTL 86400 @ IN SOA localhost root.localhost ( // listen-on port 53 { 127.0.0.1; }; 42 listen-on port 53 { 127.0.0.1; 10.0.1.150; }; // ; serial (d. adams) allow-query { localhost; }; allow-query { 10.0.1.0/24; }; | ||||
| 코드 블럭 | ||||
| ||||
zone "localdomain." IN { 3H type master; refresh file "localdomain.zone"; allow-update { none; }; }; zone "1.0.10.in-addr.arpa." IN { 15M type master; file "1.0.10.in-addr.arpa";; retry allow-update { none; }; }; | ||||
| 코드 블럭 | ||||
| ||||
$TTL 86400 @ IN SOA localhost root.localhost ( 1W ; expiry 42 ; serial (d.1D adams) ; minimum IN NS 3H localhost localhost IN A ; refresh 127.0.0.1 rac-scan IN A 10.0.1.191 rac-scan IN A 10.0.1.192 rac-scan 15MIN A ; retry 1W 10.0.1.193 |
| 코드 블럭 | ||||
|---|---|---|---|---|
| ||||
$ORIGIN 1.0.10.in-addr.arpa. $TTL 1H @ IN SOA dns.localdomain. root.dns.localdomain. ( 2 ; expiry 3H 1H 1D ) ; minimum1W IN NS 1H ) 1.0.10.in-addr.arpa. IN NS localhost localhost IN A 127.0.0.1 rac-scan IN A 10.0.1.191 rac-scan IN A 10.0.1.192 rac-scan IN A 10.0.1.193dns.localdomain. 191 IN PTR rac-scan.localdomain. 192 IN PTR rac-scan.localdomain. 193 IN PTR rac-scan.localdomain. |
| 코드 블럭 | ||||||
|---|---|---|---|---|---|---|
| ||||||
chown root:named /var/named/chroot/var/named/localdomain.zone
chown root:named /var/named/chroot/var/named/1.0.10.in-addr.arpa
systemctl restart named-chroot |
| 펼치기 | ||
|---|---|---|
|
| 코드 블럭 | ||||||||
|---|---|---|---|---|---|---|---|---|
| ||||||||
nslookup rac-scan.localdomain
nslookup 10.0.1.191
nslookup 10.0.1.192
nslookup 10.0.1.193 |
| 펼치기 | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
| 코드 블럭 | |||||||||||||
| |||||||||||||
chown root:named /var/named/chroot/var/named/localdomain.zone
chown root:named /var/named/chroot/var/named/
| |||||||||||||
| 펼치기 | |||||||||||||
| |||||||||||||
| 코드 블럭 | |||||||||||||
| |||||||||||||
nslookup rac-scan.localdomain
| |||||||||||||
|
{}