도메인관련

대건의 이미지

도메인 : kor.com / kor.net / kor.co.kr
-실제 도메인 명은 아니며 kor은 예제도메인 입니다

NameServer : ns.kor.com
NameServer Address : 192.168.1.1

공인IP : 192.168.1.1
-사설IP로 예을 들겠습니다

*해결하고자 하는 문제점 사항*
-URL접속이 됩니다(www.kor.com / www.kor.net / www.kor.co.kr)
www을 제외한 도메인(kor.com / kor.net / kor.co.kr)을 URL에
http://kor.com OR kor.net OR kor.co.kr을 입력했을 경우에
WEB접속이 되질 않습니다.

참고사항(설정사항)

1.hosts 2.resolv.conf 3. named 4.httpd 5.VirtualHost

1. hosts
127.0.0.1 www.kor.com www localhost.localdomain localhost
192.168.1.1 www.kor.com
192.168.1.1 kor.com
192.168.1.1 kor.net

2. resolv.conf
search kor.com
search kor.net
search jk.kor.com
nameserver 192.168.1.1
nameserver 168.126.63.1
nameserver 168.126.63.2

3. named
-Name.conf
-Zone파일(Zone-kor.com, Zone-kor.net)
-Rev파일(Zone-192)

=>Name.conf
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 "kor.com" IN {
notify no;
type master;
file "zone-kor.com";
};
zone "1.168.192.in-addr.arpa" {
notify no;
type master;
file "zone-192";
};
zone "kor.net" IN {
notify no;
type master;
file "zone-kor.com";
};
zone "kor" IN {
notify no;
type master;
file "zone-kor";
};

=>Zone-kor.com
$TTL 86400
@ IN SOA ns.kor.com. root.kor.com. (
1997022700 ; serial (d. adams)
28800 ; refresh
14400 ; retry
3600000 ; expiry
86400 ) ; minimum

NS kor.com.
TXT "kor Server"
localhost A 127.0.0.1
ns A 192.168.1.1
jk A 192.168.1.1
www A 192.168.1.1
ftp CNAME ns.
kor.com CNAME ns.

=>Zone-kor.net
$TTL 86400
@ IN SOA ns.kor.com. root.kor.com. (
1997022700 ; serial (d. adams)
28800 ; refresh
14400 ; retry
3600000 ; expiry
86400 ) ; minimum

NS kor.com.
TXT "kor Server"
localhost A 127.0.0.1
ns A 192.168.1.1
jk A 192.168.1.1
www A 192.168.1.1
ftp CNAME ns.
kor.net CNAME ns.

=>Rev(Zone-192)
$TTL 86400
@ IN SOA ns.kor.com. root.kor.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.kor.com.
1 IN PTR kor.com.
IN PTR kor.net.

4. httpd
### Section 1: Global Environment
ServerType standalone
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 150
BindAddress *

### Section 2: 'Main' server configuration
User nobody
Group nobody
ServerAdmin root@localhost
ServerName kor.com
NameVirtualHost 192.168.1.1

5.VirtualHost
<VirtualHost 192.168.1.1>
ServerAdmin jtv1004@localhost
DocumentRoot /./home/jtv1004/www
ServerName www.kor.com
ServerAlias kor.com
ErrorLog /./home/jtv1004/www/logs/kor.com-error_log
CustomLog /./home/jtv1004/www/logs/kor.com-access_log common
</VirtualHost>

<VirtualHost 192.168.1.1>
ServerAdmin gd@localhost
DocumentRoot /./home/dg1914/www
Servername jk.kor.com
ErrorLog /./home/dg1914/www/logs/jk.kor.com-error_log
CustomLog /./home/dg1914/www/logs/jk.kor.com-access_log common
</VirtualHost>

*****접속테스트*******

=> nslookup www.kor.com
Non-authoritative anser:
Name : www.kor.com
Address : 192.168.1.1

=> nslookup www.kor.net
Non-authoritative anser:
Name : www.kor.net
Address : 192.168.1.1

=> nslookup jk.kor.com
Non-authoritative anser:
Name : jk.kor.com
Address : 192.168.1.1

=> nslookup kor.com
Name : kor.com
*Address가 출력이 안되는 걸로 보아 설정이 잘못 된것 같은데

모든 설정 사항의 기본은 위와 같습니다.
Web접속은 정상적으로 수행이 되지만 URL->http://kor.com 이같이 www을
제외하고 입력하면 접속이 되지 않습니다.

http://www.kor.com http://www.kor.net http://kor.com http://kor.net
위와 같이 접속할수 있도록 설정할려구 합니다

명쾌한 조언 부탁 드립니다

jedi의 이미지

대신 운영해 주는 곳이 많은데 이용하시는 것이 좋겠군요.

일단 한줄 추가해 보세요.

 =>Zone-kor.net
$TTL 86400
@ IN SOA ns.kor.com. root.kor.com. (
1997022700 ; serial (d. adams)
28800 ; refresh
14400 ; retry
3600000 ; expiry
86400 ) ; minimum

NS kor.com.
TXT "kor Server"
localhost A 127.0.0.1
  A 192.168.1.1 -----------> 이런 줄도 필요한 것으로 알고 있습니다.
ns A 192.168.1.1
jk A 192.168.1.1
www A 192.168.1.1
ftp CNAME ns.
kor.net CNAME ns.

+++ 여기부터는 서명입니다. +++
국가 기구의 존속을 위한 최소한의 세금만을 내고, 전체 인민들이 균등한 삶을
영위할 수 있는 착취가 없는 혁명의 그날은 언제나 올 것인가!
-- 조정래, <태백산맥> 중에서, 1986년

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.