whois.co.kr
1차 네임서버 정보
호스트이름 : ns1.aaa.co.kr
IP 주소 : 203.240.1.145
도메인 aaa.co.kr
아이피 203.240.1.145
임이의 도메인과 임이의 아이피를 적습니다 ^^;;
dns 가 잘 되지 않아 고수님의 도움을 청합니다..
도메인으로 ping을 하면... 저의 서버 주소로 입력이 됩니다.
[root@linuxlove named]# ping aaa.co.kr
PING aaa.co.kr (203.240.1.145) from 203.240.1.145 : 56(84) bytes of data.
64 bytes from ns1.aaa.co.kr (203.240.1.145): icmp_seq=0 ttl=255 time=52 usec
64 bytes from ns1.aaa.co.kr (203.240.1.145): icmp_seq=1 ttl=255 time=45 usec
64 bytes from ns1.aaa.co.kr (203.240.1.145): icmp_seq=2 ttl=255 time=48 usec
64 bytes from ns1.aaa.co.kr (203.240.1.145): icmp_seq=3 ttl=255 time=53 usec
64 bytes from ns1.aaa.co.kr (203.240.1.145): icmp_seq=4 ttl=255 time=54 usec
그런데 nslookup 하믄
[root@linuxlove named]# nslookup aaa.co.kr
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 203.240.1.145
Address: 203.240.1.145#53
** server can't find clickname.co.kr.: SERVFAIL
이렇게 나옵니다..~~
vi /etc/resolv.conf
search aaa.co.kr
nameserver 203.240.1.145
vi /etc/named.conf
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
### 여기 아래서 부터 수정함 ##############
zone "aaa.co.kr" IN {
type master;
file "aaa.zone";
};
zone "1.240.203.in-addr.arpa" IN {
type master;
file "aaa.rev";
};
##########################################
include "/etc/rndc.key";
vi /var/named/aaa.rev
$TTL 86400
@ IN SOA ns1.aaa.co.kr. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.aaa.co.kr.
145 IN PTR ns1.aaa.co.kr.
145 IN PTR www.aaa.co.kr. 145 IN PTR ftp.aaa.co.kr.
145 IN PTR mail.aaa.co.kr.
vi /var/named/aaa.zone
$TTL 86400
$ORIGIN localhost.
@ IN SOA ns1.aaa.co.kr. root.localhost.(
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns1.clickname.co.kr.
IN A 203.247.240.145
ns1 IN A 203.247.240.145
www IN A 203.247.240.145
ftp IN A 203.247.240.145
IN MX 10 mail.aaa.co.kr.
mail IN A 203.247.240.145
이구요~~~
vi /home/apache/conf/httpd.conf
ServerName aaa.co.kr
NameVirtualHost 203.247.240.145
<VirtualHost 203.247.240.145>
ServerAdmin webmaster at dummy-host.example.com DocumentRoot /home/aaa/public_html
ServerName www.aaa.co.kr </VirtualHost>
입니다.
vi /var/named/localhost.zone
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
vi /var/named/named.local
$TTL 86400
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
~~~~
좋은 답변 주시길 바라며
늘 건강하세요