Thread: dns resolving (getting mx record)

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    630

    dns resolving (getting mx record)

    I need to get domain mx record with my program, which is not that easy and I was wondering if there are any boost dns libaries to make things easier? I have found some QDNS (qt) libaries, but im not sure about them.. Does anybody have experience with that? What would be the best approach for you guys?

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I don't think there are any DNS boost libraries; search this board for "dns boost" turns up only this thread and searching boost.org for "dns" turns up nothing.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Who said anything about boost?

    On windows, you could use DnsQuery: http://msdn.microsoft.com/library/de...s/dnsquery.asp

    wTypes:

    Code:
    enum {
    	DNS_TYPE_A=1,
    	DNS_TYPE_NS,
    	DNS_TYPE_MD,
    	DNS_TYPE_MF,
    	DNS_TYPE_CNAME,
    	DNS_TYPE_SOA,
    	DNS_TYPE_MB,
    	DNS_TYPE_MG,
    	DNS_TYPE_MR,
    	DNS_TYPE_NULL,
    	DNS_TYPE_WKS,
    	DNS_TYPE_PTR,
    	DNS_TYPE_HINFO,
    	DNS_TYPE_MINFO,
    	DNS_TYPE_MX,
    	DNS_TYPE_TEXT
    };

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Who said anything about boost?
    The OP.
    I was wondering if there are any boost dns libaries to make things easier?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Woops.

  6. #6
    Registered User
    Join Date
    May 2006
    Posts
    630
    Isnt dnsquery bad choice? I thought its slow?

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    I don't know; but here's another thread on DnsQuery: http://cboard.cprogramming.com/showthread.php?t=49434
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #8
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with binary file c++
    By lucky_mutani in forum C++ Programming
    Replies: 4
    Last Post: 06-05-2009, 09:24 AM
  2. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  3. SMTP prolem
    By geek@02 in forum Windows Programming
    Replies: 6
    Last Post: 04-28-2005, 11:59 AM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM
  5. behind and confused
    By steviecrawf in forum C Programming
    Replies: 1
    Last Post: 11-09-2001, 12:51 PM