diff options
author | Kai Blin <kai@samba.org> | 2011-09-26 23:37:06 -0700 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2011-09-28 02:02:36 +0200 |
commit | f98ebcf43f9b77266ef900a12b019f62d107096a (patch) | |
tree | a340c338e7cae7b7fd51b72c80de6abca5c8530e | |
parent | da0cae010a4a4050bb1d740a3df68776cc3c7b0e (diff) | |
download | samba-f98ebcf43f9b77266ef900a12b019f62d107096a.tar.gz samba-f98ebcf43f9b77266ef900a12b019f62d107096a.tar.bz2 samba-f98ebcf43f9b77266ef900a12b019f62d107096a.zip |
dns: The QCLASS is called IN, not IP
-rw-r--r-- | librpc/idl/dns.idl | 2 | ||||
-rw-r--r-- | source4/dns_server/dns_query.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/librpc/idl/dns.idl b/librpc/idl/dns.idl index 90ac47a831..66390b8c48 100644 --- a/librpc/idl/dns.idl +++ b/librpc/idl/dns.idl @@ -60,7 +60,7 @@ interface dns } dns_rcode; typedef [public,enum16bit] enum { - DNS_QCLASS_IP = 0x0001, + DNS_QCLASS_IN = 0x0001, DNS_QCLASS_NONE = 0x00FE, DNS_QCLASS_ANY = 0x00FF } dns_qclass; diff --git a/source4/dns_server/dns_query.c b/source4/dns_server/dns_query.c index f730a70b75..d96877e9bd 100644 --- a/source4/dns_server/dns_query.c +++ b/source4/dns_server/dns_query.c @@ -86,7 +86,7 @@ static WERROR handle_question(struct dns_server *dns, ZERO_STRUCT(ans[ai]); ans[ai].name = talloc_strdup(ans, question->name); ans[ai].rr_type = DNS_QTYPE_CNAME; - ans[ai].rr_class = DNS_QCLASS_IP; + ans[ai].rr_class = DNS_QCLASS_IN; ans[ai].ttl = recs[ri].dwTtlSeconds; ans[ai].length = UINT16_MAX; ans[ai].rdata.cname_record = talloc_strdup(ans, recs[ri].data.cname); @@ -104,7 +104,7 @@ static WERROR handle_question(struct dns_server *dns, ZERO_STRUCT(ans[ai]); ans[ai].name = talloc_strdup(ans, question->name); ans[ai].rr_type = DNS_QTYPE_A; - ans[ai].rr_class = DNS_QCLASS_IP; + ans[ai].rr_class = DNS_QCLASS_IN; ans[ai].ttl = recs[ri].dwTtlSeconds; ans[ai].length = UINT16_MAX; ans[ai].rdata.ipv4_record = talloc_strdup(ans, recs[ri].data.ipv4); @@ -120,7 +120,7 @@ static WERROR handle_question(struct dns_server *dns, ZERO_STRUCT(ans[ai]); ans[ai].name = talloc_strdup(ans, question->name); ans[ai].rr_type = DNS_QTYPE_AAAA; - ans[ai].rr_class = DNS_QCLASS_IP; + ans[ai].rr_class = DNS_QCLASS_IN; ans[ai].ttl = recs[ri].dwTtlSeconds; ans[ai].length = UINT16_MAX; ans[ai].rdata.ipv6_record = recs[ri].data.ipv6; @@ -136,7 +136,7 @@ static WERROR handle_question(struct dns_server *dns, ZERO_STRUCT(ans[ai]); ans[ai].name = question->name; ans[ai].rr_type = DNS_QTYPE_NS; - ans[ai].rr_class = DNS_QCLASS_IP; + ans[ai].rr_class = DNS_QCLASS_IN; ans[ai].ttl = recs[ri].dwTtlSeconds; ans[ai].length = UINT16_MAX; ans[ai].rdata.ns_record = recs[ri].data.ns; @@ -152,7 +152,7 @@ static WERROR handle_question(struct dns_server *dns, ZERO_STRUCT(ans[ai]); ans[ai].name = question->name; ans[ai].rr_type = DNS_QTYPE_SRV; - ans[ai].rr_class = DNS_QCLASS_IP; + ans[ai].rr_class = DNS_QCLASS_IN; ans[ai].ttl = recs[ri].dwTtlSeconds; ans[ai].length = UINT16_MAX; ans[ai].rdata.srv_record.priority = recs[ri].data.srv.wPriority; @@ -171,7 +171,7 @@ static WERROR handle_question(struct dns_server *dns, ZERO_STRUCT(ans[ai]); ans[ai].name = question->name; ans[ai].rr_type = DNS_QTYPE_SOA; - ans[ai].rr_class = DNS_QCLASS_IP; + ans[ai].rr_class = DNS_QCLASS_IN; ans[ai].ttl = recs[ri].dwTtlSeconds; ans[ai].length = UINT16_MAX; ans[ai].rdata.soa_record.mname = recs[ri].data.soa.mname; |