Thread: djbdns

    #1
  1. No Profile Picture
    TypeTango Webmaster
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    New York City
    Posts
    14
    Rep Power
    0

    djbdns


    I tried djbdns and it seems to be working, but I'm apparently not understanding something fundamental here.

    This is my data file:

    =server.typetango.com:65.219.63.17:86400
    .mbtimatch.com:65.219.63.17:a:259200
    .mbtimatch.com:65.219.63.18:b:259200
    +mbtimatch.com:65.219.63.17:86400

    This is what http://checkdns.net says:

    DNS server a.ns.mbtimatch.com[65.219.63.17] is alive and authoritative for domain mbtimatch.com
    Error fetching SOA from b.ns.mbtimatch.com [65.219.63.18]: Connection reset. Probably DNS server is offline.

    Why is b.ns.mbtimatch.com not alive? It seems to be configured just the same as a.ns.mbtimatch.com.

    Also, when I ping mbtimatch.com, I'm told that its IP address is 65.219.63.17. When I go to 65.219.63.17 using a web browser, I see my home page, but when I go to mbtimatch.com using a web browser, I get a "cannot find server" error. Why?

    I'm sorry if these are stupid questions, but I've been trying to get this to work for about two weeks now, and it doesn't look like I'm going to find better info online than I already have any time soon. It would be a big help if someone more knowledgeable answered my questions directly.

    Thanks,

    Vladimir Kornea
  2. #2
  3. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    This is my data file:

    =server.typetango.com:65.219.63.17:86400
    .mbtimatch.com:65.219.63.17:a:259200
    .mbtimatch.com:65.219.63.18:b:259200
    +mbtimatch.com:65.219.63.17:86400
    Looks good.

    Error fetching SOA from b.ns.mbtimatch.com [65.219.63.18]: Connection reset. Probably DNS server is offline.
    checkdns.net speaketh the truth. I can get an SOA response from 65.219.63.17 but not from 65.219.63.18.

    Are you using one machine with two IP addresses for a.ns.mbtimatch.com and b.ns.mbtimatch.com, or two separate machines?

    Also, when I ping mbtimatch.com, I'm told that its IP address is 65.219.63.17. When I go to 65.219.63.17 using a web browser, I see my home page, but when I go to mbtimatch.com using a web browser, I get a "cannot find server" error. Why?
    When DNS clients try to resolve a domain name, they pick one of the designated authorative servers randomly and send it the query. Evidently, your ping command picked the server that worked, and your browser didn't. The fact that it was a browser that failed is irrelevant - I was able to call up your site (Apache index of rationalromance.com) in my browser by entering mbtimatch.com
    Alex
    (http://www.alex-greg.com)
  4. #3
  5. No Profile Picture
    TypeTango Webmaster
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    New York City
    Posts
    14
    Rep Power
    0
    "Are you using one machine with two IP addresses for a.ns.mbtimatch.com and b.ns.mbtimatch.com, or two separate machines?"
    I'm using one machine with two IP addresses.

    Thanks,

    Vladimir Kornea
  6. #4
  7. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    OK, I'm assuming that you didn't run tinydns-conf a second time for the second IP address (please correct me if I'm wrong).

    To do this, run the following commands:

    Code:
    tinydns-conf Gtinydns Gdnslog /etc/tinydns2 65.219.63.18
    cd /etc/tinydns2
    rm -rf root
    ln -s /etc/tinydns/root .
    ln -s /etc/tinydns2 /service
    assuming that Gtinydns and Gdnslog are your tinydns and dnslog users respectively (change them if different).

    The above command will set up a new directory for your second instance of tinydns listening on the second IP address, publishing the same data as the first tinydns instance (hence the symlink to its root).

    You can check if it's working correctly with:
    Code:
    svstat /service/*
    This should give you an uptime greater than 1 second for /service/tinydns2
    Alex
    (http://www.alex-greg.com)
  8. #5
  9. No Profile Picture
    TypeTango Webmaster
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    New York City
    Posts
    14
    Rep Power
    0
    OK, I'm assuming that you didn't run tinydns-conf a second time for the second IP address (please correct me if I'm wrong).
    You're right, I didn't do that. Your solution worked. Thank you very much.

    Vladimir Kornea
  10. #6
  11. Full Access
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jun 2000
    Location
    London, UK
    Posts
    2,019
    Rep Power
    17
    Any time
    Alex
    (http://www.alex-greg.com)

IMN logo majestic logo threadwatch logo seochat tools logo