summaryrefslogtreecommitdiffstats
path: root/net/base/dns_util.h
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 15:54:40 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-04 15:54:40 +0000
commitb3ccac85bee8a3d89c7b5ca3a64ee311f3f565c3 (patch)
tree6a156892643928ceb04c3c6fe33243c2c9946bee /net/base/dns_util.h
parent973ce28247510567d996b91ad5aa3f1da590fbcc (diff)
downloadchromium_src-b3ccac85bee8a3d89c7b5ca3a64ee311f3f565c3.zip
chromium_src-b3ccac85bee8a3d89c7b5ca3a64ee311f3f565c3.tar.gz
chromium_src-b3ccac85bee8a3d89c7b5ca3a64ee311f3f565c3.tar.bz2
net: add DnsRRResovler to fetch arbitary DNS resource types.
(Linux/Mac only for now.) TEST=net_unittests BUG=none http://codereview.chromium.org/3029035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/dns_util.h')
-rw-r--r--net/base/dns_util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/base/dns_util.h b/net/base/dns_util.h
index cd81420..88c48a8 100644
--- a/net/base/dns_util.h
+++ b/net/base/dns_util.h
@@ -8,6 +8,8 @@
#include <string>
+#include "base/basictypes.h"
+
namespace net {
// DNSDomainFromDot - convert a domain string to DNS format. From DJB's
@@ -24,6 +26,14 @@ bool IsSTD3ASCIIValidCharacter(char c);
// Returns the hostname by trimming the ending dot, if one exists.
std::string TrimEndingDot(const std::string& host);
+// DNS resource record types. See
+// http://www.iana.org/assignments/dns-parameters
+
+static const uint16 kDNS_TXT = 16;
+static const uint16 kDNS_RRSIG = 46;
+static const uint16 kDNS_CERT = 37;
+static const uint16 kDNS_ANY = 0xff;
+
} // namespace net
#endif // NET_BASE_DNS_UTIL_H_