djbdns 설정 문제

fox9의 이미지

기존에 쓰던 bind를 중지시키고 djbdns를 설치하고 아래와 같이 설정을 하고 실행을 하였습니다
도메인은 test.com, test.co.kr, test.net, imsi.com none.co.kr 이 있는데
문제는 djbdns로 바꾼후에
test.com, test.co.kr, test.net의 도메인이 동작을 하지 않는 것입니다.

제 설정파일에 문제가 있는 것인지 아니면 다른 문제가 있는 것인지를 모르겠네요.

조언 부탁드립니다.

./add-host my.test.com 111.222.333.444

./add-ns 333.222.111.in-addr.arpa 111.222.333.444
./add-ns test.com 111.222.333.444 
./add-mx test.com 111.222.333.444
./add-alias test.com 111.222.333.444
./add-alias www.test.com 111.222.333.444
./add-alias ftp.test.com 111.222.333.444
./add-alias ns.test.com 111.222.333.444
./add-alias mail.test.com 111.222.333.444
./add-alias dinero.test.com 111.222.333.444
./add-alias imsi.test.com 111.222.333.444
./add-alias webmail.test.com 111.222.333.444
./add-alias stock.test.com 111.222.333.444
./add-alias intra.test.com 111.222.333.444

./add-ns test.co.kr 111.222.333.444
./add-mx test.co.kr 111.222.333.444
./add-alias test.co.kr 111.222.333.444
./add-alias www.test.co.kr 111.222.333.444

./add-ns test.net 111.222.333.444
./add-mx test.net 111.222.333.444
./add-alias test.net 111.222.333.444
./add-alias www.test.net 111.222.333.444

./add-ns imsi.com 111.222.333.444 
./add-mx imsi.com 111.222.333.444
./add-alias imsi.com 111.222.333.444
./add-alias www.imsi.com 111.222.333.444
./add-alias ns.imsi.com 111.222.333.444
./add-alias mail.imsi.com 111.222.333.444
./add-alias webmail.imsi.com 111.222.333.444

./add-ns none.co.kr 111.222.333.444
./add-mx none.co.kr 111.222.333.444
./add-alias none.co.kr 111.222.333.444
./add-alias www.none.co.kr 111.222.333.444
kall의 이미지

add-* 의 경우 data파일에 필요한 내용을 추가해주는 스크립트 입니다.

data파일이 갱신된 이후에는 make로 변경된 내용을 적용시켜줘야 합니다.

직접 tinydns-data명령을 사용해도 되긴하지만 make가 더 편하죠

----
자신을 이길 수 있는자는
무슨짓이든 할수있다..
즉..무서운 넘이란 말이지 ^-_-^
나? 아직 멀었지 ㅠㅠ

fox9의 이미지

예 make 는 실행시켜 주었습니다.

tinydns-get으로 테스트 할때는 문제없이 잘 되는 듯 한데
실행시켜 띄워놓으면 이상해 지네요 :shock:

/var/dns/root#tinydns-get a test.com
1 test.com:
78 bytes, 1+1+1+1 records, response, authoritative, noerror
query: 1 test.com
answer: test.com 86400 A 111.222.333.444
authority: test.com 259200 NS a.ns.test.com
additional: a.ns.test.com 259200 A 111.222.333.444 
kall의 이미지

data 파일을 직접 수정해보시면 어떨까요?

.test.com:111.222.333.444:86400
.test.co.kr:111.222.333.444:86400
.test.net:111.222.333.444:86400
.imsi.com:111.222.333.444:86400
.333.222.111.in-addr.arpa 111.222.333.444:a:259200

=ns.test.com:111.222.333.444:86400
+www.test.com:111.222.333.444:86400
+ftp.test.com:111.222.333.444:86400
@test.com:111.222.333.444:a::86400

=mail.test.co.kr:111.222.333.444:86400
+webmail.test.co.kr:111.222.333.444:86400
@test.co.kr:111.222.333.444:a::86400

=www.test.net:111.222.333.444:86400
+mail.test.net:111.222.333.444:86400
+ftp.test.net:111.222.333.444:86400
@test.net:111.222.333.444:a::86400

=www.imsi.com:111.222.333.444:86400
+ftp.imsi.com:111.222.333.444:86400
@imsi.com:111.222.333.444:a::86400

----
자신을 이길 수 있는자는
무슨짓이든 할수있다..
즉..무서운 넘이란 말이지 ^-_-^
나? 아직 멀었지 ㅠㅠ

eunjea의 이미지

=test.com:111.222.333.444:86400
+*.test.com:111.222.333.444:86400
@test.com:111.222.333.444:86400

참고. 이런식으로 해도 됩니다.

kall의 이미지

fox9 wrote:
예 make 는 실행시켜 주었습니다.

tinydns-get으로 테스트 할때는 문제없이 잘 되는 듯 한데
실행시켜 띄워놓으면 이상해 지네요 :shock:

/var/dns/root#tinydns-get a test.com
1 test.com:
78 bytes, 1+1+1+1 records, response, authoritative, noerror
query: 1 test.com
answer: test.com 86400 A 111.222.333.444
authority: test.com 259200 NS a.ns.test.com
additional: a.ns.test.com 259200 A 111.222.333.444 

tinydns-get 으로 잘 동작한다면 nslookup 으로 확인할때 에러가 나는건가요?
'nslookup test.com localhost' 는 동작하지 않습니다.
'nslookup test.com 서버아이피' 로 동작한다면 잘 돌아가고 있는 겁니다.

맨날 패키지로 깔다가 소스로 깔고 localhost로 확인하다가 안된다고 생각하고
문서를 뒤져보니 잘 굴러가고 있던걸 안돌아 간다고 삽질하던 것이더군요.

----
자신을 이길 수 있는자는
무슨짓이든 할수있다..
즉..무서운 넘이란 말이지 ^-_-^
나? 아직 멀었지 ㅠㅠ

댓글 달기

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