[DNS] 네임서버설정 관련해서 문제

imagin2의 이미지

네임서버 설정을 했는데 문제가 있는거 같아서 질문 올립니다.
일단 설정을 다 마친 후 혹시나 해서 재부팅하고 아래와 같이 네임서버
를 재시작했습니다.
[root@localhost root]# service named restart
named 를 정지함: rndc: connect failed: connection refused [ 확
인 ]
named (을)를 시작합니다: [
확인 ]

요렇게 나오네요. 뭔가 문제가 있는 거 같긴 한데 암튼 대충 넘어가서 다
음은 nslookup을 해 보았습니다.

[root@localhost root]# nslookup
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.
> ns.domain.com
Server: 123.456.789.012
Address: 123.456.789.012#53

Non-authoritative answer:
Name: ns.domain.com
Address: 123.456.789.012
> domain.com
Server: 123.456.789.012
Address: 123.456.789.012#53

** server can't find domain.com: SERVFAIL

이상한게 ns.domain.com 은 나오는데 domain.com은 안 나오네요.
뭐가 문제인지 잘 모르겠네요.
messages 파일에는 lame server resolving ... 라고 나옵니다
아래는 설정된 파일들 입니다.

/* 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
//
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 "domain.com" IN {
type master;
file "domain.com.zone";
allow-update { none; };
};

zone "789.456.123.in-addr.arpa" IN {
type master;
file "789.456.123.in-addr.arpa.rev";
allow-update { none; };
};

include "/etc/rndc.key";

/* 789.456.123.in-addr.arpa.rev */

$TTL 86400
@ IN SOA ns.domain.com. root.ns.domain.com. (
20041226 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.domain.com.
IN A 123.456.789.012
IN MX 10 domain.com.

;;

www IN CNAME @
mail IN CNAME @
* IN CNAME @

/* domain.com.zone */

$TTL 86400
@ IN SOA ns.domain.com. root.ns.domain.com. (
20041226 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS ns.domain.com.

012 IN PTR localhost.

/* resolv.conf */

; generated by /sbin/dhclient-script
search localdomain
search domain.com
nameserver 123.456.789.012
nameserver 168.126.63.1

위의 네 파일만 건드렸고 왜 DNS가 안 잡히는지 도움 부탁 드립니다.

codebank의 이미지

/* 789.456.123.in-addr.arpa.rev */
에서 ns.domain.com 으로 된부분이 잘못되었습니다.
이렇게되면 domain.com으로 들어오는 값을 찾는게 아니라 ns.domain.com으로
들어오는 값을 찾게 됩니다.
즉, www.domain.com이 아닌 www.ns.domain.com을 찾는다는 소리지요.
따라서
/* 789.456.123.in-addr.arpa.rev */
/* domain.com.zone */
에 있는

@ IN SOA ns.domain.com. root.ns.domain.com. (

부분은

@ IN SOA domain.com. root.domain.com. (

형태로 바꾸어주어야합니다.
그외의 다른 설정은 이상없이 보이네요.
좀더 자세한 bind 설정은 http://oops.org/ 의 Name Server 부분을 참조해
보시기 바랍니다.

------------------------------
좋은 하루 되세요.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.