[질문] nslookup에서 호스트를 찾지못함.

psyduck의 이미지

RedHat 7.1 on Intel x86에서 Bind-9.1.2를 써서 DNS를 설치했습니다.
아래에 있는게 zone 파일입니다.
$TTL 86400
@ IN SOA ns.a.com. root.a.com. (
03072301 ; serial
10800 ; refresh after 3 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day
; NS
IN NS ns.a.com.
; MX
MX 0 ns.a.com.
; Hosts
localhost IN A 127.0.0.1
ns IN A 10.0.0.1.
www IN CNAME ns
mail IN CNAME ns

Bind를 설치한 컴퓨터에서 dig을 실행한 화면입니다.
[root@ns]# dig www.a.com

; <<>> DiG 9.1.2 <<>> www.a.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36676
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;www.a.com. IN A

;; ANSWER SECTION:
www.a.com. 86400 IN CNAME ns.a.com.
ns.a.com. 86400 IN A 10.0.0.1

;; AUTHORITY SECTION:
a.com. 86400 IN NS ns.a.com.

;; Query time: 2 msec
;; SERVER: 10.0.0.1#53(10.0.0.1)
;; WHEN: Wed Jul 23 21:51:30 2003
;; MSG SIZE rcvd: 109

이렇게 정상적으로 동작을 하는듯 보이는데요...

문제는!!!
다른 컴퓨터(윈도우2000)에서 nslookup을 실행하면

> ns.a.com.
Server: dns.xxx.net
Address: 123.123.123.123

Non-authoritative answer:
Name: ns.a.com
Address: 10.0.0.1

> www.a.com.
Server: dns.xxx.net
Address: 123.123.123.123

*** dns.xxx.net can't find www.a.com.: Non-existent domain

이렇게 나옵니다.
(** 편의상 도메인 이름과 주소는 임의로 변경을 했습니다. ㅡ.ㅡ;;
bind 설치한 컴퓨터나 테스트한 윈도우 컴퓨터 모두 인터넷에 연결되어 있는상태구요...)
당연히 ping IP주소는 되지만 ping www.a.com은 안되구요...
뭐가 문제일까요 ...
그럼 좋은 시간들 보내세요...감사합니다.

zflute의 이미지

물론, 도메인은 등록기관을 통해서 등록을 제대로 하셨겠지요?
정상적으로 도메인이 등록되었다는 가정하에,
혹시 ns.a.com을 도메인 등록 할 때 네임서버로 등록하지 않으셨는지...
이럴 경우에 설정하신 네임서버에 문제가 생겨서 제대로 동작하지 않는 경우라 하더라도 ns.a.com에 대해서는 상위 gTLD 네임서버를 통해서 IP 응답을 받아옵니다.
일단 로컬에서 질의했을 때 제대로 응답을 받아오는 것으로 봐서는 설정 상의 문제점은 없는 듯 한데... 혹시 방화벽 설정은 네임서비스에 대해서 풀어 놓으셨는지?

nslookup 을 실행하실 때, 'nslookup - 네임서버IP' 이런식으로 실행을 하면 해당 네임서버를 디폴트 서버로 잡고 동작하게 됩니다. (nslookup prompt에서 server 명령어로 바꾸어 주셔도 되구요) 이렇게 해 놓고 다시 한번 질의를 해 보시죠. 안 되면... 방화벽 문제일 가능성이 높습니다.

만일 된다면, 도메인 등록하고 네임서버 정보가 루트 서버 간에 퍼져 나가는데 몇 일 걸리기 때문에 조금 기다리셨다가 해 보시면 될 것 같네요.

도메인을 알 수 있으면 좀 더 자세한 답변을 드릴 수 있을 텐데요...:-)

psyduck의 이미지

답변 너무 감사드립니다. (ㅡㅡ) (__) (ㅡㅡ)

댓글 달기

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