리눅스네트워크
책을 보고 DNS서버를 만들려고 합니다.
DNS가 작동하지 않습니다. 와우리눅스 7.1 파란을
전부설치했습니다.
1. 어디를 더 고쳐야 하는지 한 번 살펴주세요.
2. 인버스도메인이
없어도 이름->IP는 되는 걸로 알고 있는데
없으면 DNS 서버 설정이 안되는 건지를 알고 싶습니다.
등록된 도메인은 다음과 같습니다.
Domain Name: ILOVEKUMI.NET
등록된 DNS는 다음과 같습니다.
Domain servers in listed order:
NS.ILOVEKUMI.NET 211.194.206.181
NS2.ILOVEKUMI.NET 211.194.206.182
211.194.206.181 에 웹서버와 DNS 서버를 만들었습니다.
통신선은 한국통신 전용선입니다.
in-addr.arpa 도메인은 없습니다.
제가 설정한 내용은 다음과 같습니다.
물론 설정한 지 1주일 이상이 지났습니다.
외부에서 http://ilovekumi.net
나 http://www.ilovekumi.net
를 호출하면 DNS 에러입니다.
http://211.194.206.181은
잘 작동됩니다.
이하 설정한 내용입니다.
/etc/named.conf 설정
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
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 "ilovekumi.net" IN {
type master;
file "zone-ilovekumi.net";
};
/var/named/zone-ilovekumi.net 설정 내용
@ IN SOA ns.ilovekumi.net. admin.ilovekumi.net. (
2001072101 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.ilovekumi.net.
IN MX 10 mail.ilovekumi.net.
IN A 211.184.206.181
ns IN A 211.184.206.181
ns2 IN A 211.184.206.182
mail IN A 211.184.206.181
www IN A 211.184.206.181
/etc/resolv.conf 설정 내용
search www.ilovekumi.net
nameserver 211.194.206.181
nameserver 168.126.63.1
nameserver 164.124.101.2
/etc/hosts 설정 내용
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
211.194.206.181 www.ilovekumi.net www
/etc/host.conf 설정 내용
order hosts,bind
다음은 nslookup 조회를 한 내용입니다.
[root@www /etc]# nslookup ilovekumi.net
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: 211.194.206.181
Address: 211.194.206.181#53
Name: ilovekumi.net
Address: 211.184.206.181
[root@www /etc]# nslookup 211.194.206.181
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: 211.194.206.181
Address: 211.194.206.181#53
** server can't find 181.206.194.211.in-addr.arpa.: NXDOMAIN
|