summaryrefslogtreecommitdiff
path: root/libcli/util
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/util')
-rw-r--r--libcli/util/doserr.c188
-rw-r--r--libcli/util/werror.h94
2 files changed, 282 insertions, 0 deletions
diff --git a/libcli/util/doserr.c b/libcli/util/doserr.c
index fd0233cd91..1663edb520 100644
--- a/libcli/util/doserr.c
+++ b/libcli/util/doserr.c
@@ -166,6 +166,100 @@ static const struct werror_code_struct dos_errs[] =
{ "WERR_DS_DNS_LOOKUP_FAILURE", WERR_DS_DNS_LOOKUP_FAILURE },
{ "WERR_DS_NO_MSDS_INTID", WERR_DS_NO_MSDS_INTID },
{ "WERR_DS_DUP_MSDS_INTID", WERR_DS_DUP_MSDS_INTID },
+ { "WERR_DNS_ERROR_RCODE_FORMAT_ERROR", WERR_DNS_ERROR_RCODE_FORMAT_ERROR },
+ { "WERR_DNS_ERROR_RCODE_SERVER_FAILURE", WERR_DNS_ERROR_RCODE_SERVER_FAILURE },
+ { "WERR_DNS_ERROR_RCODE_NAME_ERROR", WERR_DNS_ERROR_RCODE_NAME_ERROR },
+ { "WERR_DNS_ERROR_RCODE_NOT_IMPLEMENTED", WERR_DNS_ERROR_RCODE_NOT_IMPLEMENTED },
+ { "WERR_DNS_ERROR_RCODE_REFUSED", WERR_DNS_ERROR_RCODE_REFUSED },
+ { "WERR_DNS_ERROR_RCODE_YXDOMAIN", WERR_DNS_ERROR_RCODE_YXDOMAIN },
+ { "WERR_DNS_ERROR_RCODE_YXRRSET", WERR_DNS_ERROR_RCODE_YXRRSET },
+ { "WERR_DNS_ERROR_RCODE_NXRRSET", WERR_DNS_ERROR_RCODE_NXRRSET },
+ { "WERR_DNS_ERROR_RCODE_NOTAUTH", WERR_DNS_ERROR_RCODE_NOTAUTH },
+ { "WERR_DNS_ERROR_RCODE_NOTZONE", WERR_DNS_ERROR_RCODE_NOTZONE },
+ { "WERR_DNS_ERROR_RCODE_BADSIG", WERR_DNS_ERROR_RCODE_BADSIG },
+ { "WERR_DNS_ERROR_RCODE_BADKEY", WERR_DNS_ERROR_RCODE_BADKEY },
+ { "WERR_DNS_ERROR_RCODE_BADTIME", WERR_DNS_ERROR_RCODE_BADTIME },
+ { "WERR_DNS_INFO_NO_RECORDS", WERR_DNS_INFO_NO_RECORDS },
+ { "WERR_DNS_ERROR_BAD_PACKET", WERR_DNS_ERROR_BAD_PACKET },
+ { "WERR_DNS_ERROR_NO_PACKET", WERR_DNS_ERROR_NO_PACKET },
+ { "WERR_DNS_ERROR_RCODE", WERR_DNS_ERROR_RCODE },
+ { "WERR_DNS_ERROR_UNSECURE_PACKET", WERR_DNS_ERROR_UNSECURE_PACKET },
+ { "WERR_DNS_ERROR_INVALID_TYPE", WERR_DNS_ERROR_INVALID_TYPE },
+ { "WERR_DNS_ERROR_INVALID_IP_ADDRESS", WERR_DNS_ERROR_INVALID_IP_ADDRESS },
+ { "WERR_DNS_ERROR_INVALID_PROPERTY", WERR_DNS_ERROR_INVALID_PROPERTY },
+ { "WERR_DNS_ERROR_TRY_AGAIN_LATER", WERR_DNS_ERROR_TRY_AGAIN_LATER },
+ { "WERR_DNS_ERROR_NOT_UNIQUE", WERR_DNS_ERROR_NOT_UNIQUE },
+ { "WERR_DNS_ERROR_NON_RFC_NAME", WERR_DNS_ERROR_NON_RFC_NAME },
+ { "WERR_DNS_STATUS_FQDN", WERR_DNS_STATUS_FQDN },
+ { "WERR_DNS_STATUS_DOTTED_NAME", WERR_DNS_STATUS_DOTTED_NAME },
+ { "WERR_DNS_STATUS_SINGLE_PART_NAME", WERR_DNS_STATUS_SINGLE_PART_NAME },
+ { "WERR_DNS_ERROR_INVALID_NAME_CHAR", WERR_DNS_ERROR_INVALID_NAME_CHAR },
+ { "WERR_DNS_ERROR_NUMERIC_NAME", WERR_DNS_ERROR_NUMERIC_NAME },
+ { "WERR_DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER", WERR_DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER },
+ { "WERR_DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION", WERR_DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION },
+ { "WERR_DNS_ERROR_CANNOT_FIND_ROOT_HINTS", WERR_DNS_ERROR_CANNOT_FIND_ROOT_HINTS },
+ { "WERR_DNS_ERROR_INCONSISTENT_ROOT_HINTS", WERR_DNS_ERROR_INCONSISTENT_ROOT_HINTS },
+ { "WERR_DNS_ERROR_DWORD_VALUE_TOO_SMALL", WERR_DNS_ERROR_DWORD_VALUE_TOO_SMALL },
+ { "WERR_DNS_ERROR_DWORD_VALUE_TOO_LARGE", WERR_DNS_ERROR_DWORD_VALUE_TOO_LARGE },
+ { "WERR_DNS_ERROR_BACKGROUND_LOADING", WERR_DNS_ERROR_BACKGROUND_LOADING },
+ { "WERR_DNS_ERROR_NOT_ALLOWED_ON_RODC", WERR_DNS_ERROR_NOT_ALLOWED_ON_RODC },
+ { "WERR_DNS_ERROR_ZONE_DOES_NOT_EXIST", WERR_DNS_ERROR_ZONE_DOES_NOT_EXIST },
+ { "WERR_DNS_ERROR_NO_ZONE_INFO", WERR_DNS_ERROR_NO_ZONE_INFO },
+ { "WERR_DNS_ERROR_INVALID_ZONE_OPERATION", WERR_DNS_ERROR_INVALID_ZONE_OPERATION },
+ { "WERR_DNS_ERROR_ZONE_CONFIGURATION_ERROR", WERR_DNS_ERROR_ZONE_CONFIGURATION_ERROR },
+ { "WERR_DNS_ERROR_ZONE_HAS_NO_SOA_RECORD", WERR_DNS_ERROR_ZONE_HAS_NO_SOA_RECORD },
+ { "WERR_DNS_ERROR_ZONE_HAS_NO_NS_RECORDS", WERR_DNS_ERROR_ZONE_HAS_NO_NS_RECORDS },
+ { "WERR_DNS_ERROR_ZONE_LOCKED", WERR_DNS_ERROR_ZONE_LOCKED },
+ { "WERR_DNS_ERROR_ZONE_CREATION_FAILED", WERR_DNS_ERROR_ZONE_CREATION_FAILED },
+ { "WERR_DNS_ERROR_ZONE_ALREADY_EXISTS", WERR_DNS_ERROR_ZONE_ALREADY_EXISTS },
+ { "WERR_DNS_ERROR_AUTOZONE_ALREADY_EXISTS", WERR_DNS_ERROR_AUTOZONE_ALREADY_EXISTS },
+ { "WERR_DNS_ERROR_INVALID_ZONE_TYPE", WERR_DNS_ERROR_INVALID_ZONE_TYPE },
+ { "WERR_DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP", WERR_DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP },
+ { "WERR_DNS_ERROR_ZONE_NOT_SECONDARY", WERR_DNS_ERROR_ZONE_NOT_SECONDARY },
+ { "WERR_DNS_ERROR_NEED_SECONDARY_ADDRESSES", WERR_DNS_ERROR_NEED_SECONDARY_ADDRESSES },
+ { "WERR_DNS_ERROR_WINS_INIT_FAILED", WERR_DNS_ERROR_WINS_INIT_FAILED },
+ { "WERR_DNS_ERROR_NEED_WINS_SERVERS", WERR_DNS_ERROR_NEED_WINS_SERVERS },
+ { "WERR_DNS_ERROR_NBSTAT_INIT_FAILED", WERR_DNS_ERROR_NBSTAT_INIT_FAILED },
+ { "WERR_DNS_ERROR_SOA_DELETE_INVALID", WERR_DNS_ERROR_SOA_DELETE_INVALID },
+ { "WERR_DNS_ERROR_FORWARDER_ALREADY_EXISTS", WERR_DNS_ERROR_FORWARDER_ALREADY_EXISTS },
+ { "WERR_DNS_ERROR_ZONE_REQUIRES_MASTER_IP", WERR_DNS_ERROR_ZONE_REQUIRES_MASTER_IP },
+ { "WERR_DNS_ERROR_ZONE_IS_SHUTDOWN", WERR_DNS_ERROR_ZONE_IS_SHUTDOWN },
+ { "WERR_DNS_ERROR_PRIMARY_REQUIRES_DATAFILE", WERR_DNS_ERROR_PRIMARY_REQUIRES_DATAFILE },
+ { "WERR_DNS_ERROR_INVALID_DATAFILE_NAME", WERR_DNS_ERROR_INVALID_DATAFILE_NAME },
+ { "WERR_DNS_ERROR_DATAFILE_OPEN_FAILURE", WERR_DNS_ERROR_DATAFILE_OPEN_FAILURE },
+ { "WERR_DNS_ERROR_FILE_WRITEBACK_FAILED", WERR_DNS_ERROR_FILE_WRITEBACK_FAILED },
+ { "WERR_DNS_ERROR_DATAFILE_PARSING", WERR_DNS_ERROR_DATAFILE_PARSING },
+ { "WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST", WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST },
+ { "WERR_DNS_ERROR_RECORD_FORMAT", WERR_DNS_ERROR_RECORD_FORMAT },
+ { "WERR_DNS_ERROR_NODE_CREATION_FAILED", WERR_DNS_ERROR_NODE_CREATION_FAILED },
+ { "WERR_DNS_ERROR_UNKNOWN_RECORD_TYPE", WERR_DNS_ERROR_UNKNOWN_RECORD_TYPE },
+ { "WERR_DNS_ERROR_RECORD_TIMED_OUT", WERR_DNS_ERROR_RECORD_TIMED_OUT },
+ { "WERR_DNS_ERROR_NAME_NOT_IN_ZONE", WERR_DNS_ERROR_NAME_NOT_IN_ZONE },
+ { "WERR_DNS_ERROR_CNAME_LOOP", WERR_DNS_ERROR_CNAME_LOOP },
+ { "WERR_DNS_ERROR_NODE_IS_CNAME", WERR_DNS_ERROR_NODE_IS_CNAME },
+ { "WERR_DNS_ERROR_CNAME_COLLISION", WERR_DNS_ERROR_CNAME_COLLISION },
+ { "WERR_DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT", WERR_DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT },
+ { "WERR_DNS_ERROR_RECORD_ALREADY_EXISTS", WERR_DNS_ERROR_RECORD_ALREADY_EXISTS },
+ { "WERR_DNS_ERROR_SECONDARY_DATA", WERR_DNS_ERROR_SECONDARY_DATA },
+ { "WERR_DNS_ERROR_NO_CREATE_CACHE_DATA", WERR_DNS_ERROR_NO_CREATE_CACHE_DATA },
+ { "WERR_DNS_ERROR_NAME_DOES_NOT_EXIST", WERR_DNS_ERROR_NAME_DOES_NOT_EXIST },
+ { "WERR_DNS_WARNING_PTR_CREATE_FAILED", WERR_DNS_WARNING_PTR_CREATE_FAILED },
+ { "WERR_DNS_WARNING_DOMAIN_UNDELETED", WERR_DNS_WARNING_DOMAIN_UNDELETED },
+ { "WERR_DNS_ERROR_DS_UNAVAILABLE", WERR_DNS_ERROR_DS_UNAVAILABLE },
+ { "WERR_DNS_ERROR_DS_ZONE_ALREADY_EXISTS", WERR_DNS_ERROR_DS_ZONE_ALREADY_EXISTS },
+ { "WERR_DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE", WERR_DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE },
+ { "WERR_DNS_INFO_AXFR_COMPLETE", WERR_DNS_INFO_AXFR_COMPLETE },
+ { "WERR_DNS_ERROR_AXFR", WERR_DNS_ERROR_AXFR },
+ { "WERR_DNS_INFO_ADDED_LOCAL_WINS", WERR_DNS_INFO_ADDED_LOCAL_WINS },
+ { "WERR_DNS_STATUS_CONTINUE_NEEDED", WERR_DNS_STATUS_CONTINUE_NEEDED },
+ { "WERR_DNS_ERROR_NO_TCPIP", WERR_DNS_ERROR_NO_TCPIP },
+ { "WERR_DNS_ERROR_NO_DNS_SERVERS", WERR_DNS_ERROR_NO_DNS_SERVERS },
+ { "WERR_DNS_ERROR_DP_DOES_NOT_EXIST", WERR_DNS_ERROR_DP_DOES_NOT_EXIST },
+ { "WERR_DNS_ERROR_DP_ALREADY_EXISTS", WERR_DNS_ERROR_DP_ALREADY_EXISTS },
+ { "WERR_DNS_ERROR_DP_NOT_ENLISTED", WERR_DNS_ERROR_DP_NOT_ENLISTED },
+ { "WERR_DNS_ERROR_DP_ALREADY_ENLISTED", WERR_DNS_ERROR_DP_ALREADY_ENLISTED },
+ { "WERR_DNS_ERROR_DP_NOT_AVAILABLE", WERR_DNS_ERROR_DP_NOT_AVAILABLE },
+ { "WERR_DNS_ERROR_DP_FSMO_ERROR", WERR_DNS_ERROR_DP_FSMO_ERROR },
{ "WERR_GENERAL_FAILURE", WERR_GENERAL_FAILURE },
{ "WERR_PRINTQ_FULL", WERR_PRINTQ_FULL },
{ "WERR_NO_SPOOL_SPACE", WERR_NO_SPOOL_SPACE },
@@ -4850,6 +4944,100 @@ const struct werror_str_struct dos_err_strs[] = {
{ WERR_DS_AUDIT_FAILURE, "A required audit event could not be generated for the operation." },
{ WERR_DS_INVALID_SEARCH_FLAG_SUBTREE, "The search flags for the attribute are invalid. The subtree index bit is valid only on single-valued attributes." },
{ WERR_DS_INVALID_SEARCH_FLAG_TUPLE, "The search flags for the attribute are invalid. The tuple index bit is valid only on attributes of Unicode strings." },
+ { WERR_DNS_ERROR_RCODE_FORMAT_ERROR, "DNS server unable to interpret format." },
+ { WERR_DNS_ERROR_RCODE_SERVER_FAILURE, "DNS server failure." },
+ { WERR_DNS_ERROR_RCODE_NAME_ERROR, "DNS name does not exist." },
+ { WERR_DNS_ERROR_RCODE_NOT_IMPLEMENTED, "DNS request not supported by name server." },
+ { WERR_DNS_ERROR_RCODE_REFUSED, "DNS operation refused." },
+ { WERR_DNS_ERROR_RCODE_YXDOMAIN, "DNS name that should not exist, does exist." },
+ { WERR_DNS_ERROR_RCODE_YXRRSET, "DNS resource record (RR) set that should not exist, does exist." },
+ { WERR_DNS_ERROR_RCODE_NXRRSET, "DNS RR set that should to exist, does not exist." },
+ { WERR_DNS_ERROR_RCODE_NOTAUTH, "DNS server not authoritative for zone." },
+ { WERR_DNS_ERROR_RCODE_NOTZONE, "DNS name in update or prereq is not in zone." },
+ { WERR_DNS_ERROR_RCODE_BADSIG, "DNS signature failed to verify." },
+ { WERR_DNS_ERROR_RCODE_BADKEY, "DNS bad key." },
+ { WERR_DNS_ERROR_RCODE_BADTIME, "DNS signature validity expired." },
+ { WERR_DNS_INFO_NO_RECORDS, "No records found for given DNS query." },
+ { WERR_DNS_ERROR_BAD_PACKET, "Bad DNS packet." },
+ { WERR_DNS_ERROR_NO_PACKET, "No DNS packet." },
+ { WERR_DNS_ERROR_RCODE, "DNS error, check rcode." },
+ { WERR_DNS_ERROR_UNSECURE_PACKET, "Unsecured DNS packet." },
+ { WERR_DNS_ERROR_INVALID_TYPE, "Invalid DNS type." },
+ { WERR_DNS_ERROR_INVALID_IP_ADDRESS, "Invalid IP address." },
+ { WERR_DNS_ERROR_INVALID_PROPERTY, "Invalid property." },
+ { WERR_DNS_ERROR_TRY_AGAIN_LATER, "Try DNS operation again later." },
+ { WERR_DNS_ERROR_NOT_UNIQUE, "Record for given name and type is not unique." },
+ { WERR_DNS_ERROR_NON_RFC_NAME, "DNS name does not comply with RFC specifications." },
+ { WERR_DNS_STATUS_FQDN, "DNS name is a fully qualified DNS name." },
+ { WERR_DNS_STATUS_DOTTED_NAME, "DNS name is dotted (multilabel)." },
+ { WERR_DNS_STATUS_SINGLE_PART_NAME, "DNS name is a single-part name." },
+ { WERR_DNS_ERROR_INVALID_NAME_CHAR, "DNS name contains an invalid character." },
+ { WERR_DNS_ERROR_NUMERIC_NAME, "DNS name is entirely numeric." },
+ { WERR_DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER, "The operation requested is not permitted on a DNS root server." },
+ { WERR_DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION, "The record could not be created because this part of the DNS namespace has been delegated to another server." },
+ { WERR_DNS_ERROR_CANNOT_FIND_ROOT_HINTS, "The DNS server could not find a set of root hints." },
+ { WERR_DNS_ERROR_INCONSISTENT_ROOT_HINTS, "The DNS server found root hints but they were not consistent across all adapters." },
+ { WERR_DNS_ERROR_DWORD_VALUE_TOO_SMALL, "The specified value is too small for this parameter." },
+ { WERR_DNS_ERROR_DWORD_VALUE_TOO_LARGE, "The specified value is too large for this parameter." },
+ { WERR_DNS_ERROR_BACKGROUND_LOADING, "This operation is not allowed while the DNS server is loading zones in the background. Try again later." },
+ { WERR_DNS_ERROR_NOT_ALLOWED_ON_RODC, "The operation requested is not permitted on against a DNS server running on a read-only DC." },
+ { WERR_DNS_ERROR_ZONE_DOES_NOT_EXIST, "DNS zone does not exist." },
+ { WERR_DNS_ERROR_NO_ZONE_INFO, "DNS zone information not available." },
+ { WERR_DNS_ERROR_INVALID_ZONE_OPERATION, "Invalid operation for DNS zone." },
+ { WERR_DNS_ERROR_ZONE_CONFIGURATION_ERROR, "Invalid DNS zone configuration." },
+ { WERR_DNS_ERROR_ZONE_HAS_NO_SOA_RECORD, "DNS zone has no start of authority (SOA) record." },
+ { WERR_DNS_ERROR_ZONE_HAS_NO_NS_RECORDS, "DNS zone has no Name Server (NS) record." },
+ { WERR_DNS_ERROR_ZONE_LOCKED, "DNS zone is locked." },
+ { WERR_DNS_ERROR_ZONE_CREATION_FAILED, "DNS zone creation failed." },
+ { WERR_DNS_ERROR_ZONE_ALREADY_EXISTS, "DNS zone already exists." },
+ { WERR_DNS_ERROR_AUTOZONE_ALREADY_EXISTS, "DNS automatic zone already exists." },
+ { WERR_DNS_ERROR_INVALID_ZONE_TYPE, "Invalid DNS zone type." },
+ { WERR_DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP, "Secondary DNS zone requires master IP address." },
+ { WERR_DNS_ERROR_ZONE_NOT_SECONDARY, "DNS zone not secondary." },
+ { WERR_DNS_ERROR_NEED_SECONDARY_ADDRESSES, "Need secondary IP address." },
+ { WERR_DNS_ERROR_WINS_INIT_FAILED, "WINS initialization failed." },
+ { WERR_DNS_ERROR_NEED_WINS_SERVERS, "Need WINS servers." },
+ { WERR_DNS_ERROR_NBSTAT_INIT_FAILED, "NBTSTAT initialization call failed." },
+ { WERR_DNS_ERROR_SOA_DELETE_INVALID, "Invalid delete of SOA." },
+ { WERR_DNS_ERROR_FORWARDER_ALREADY_EXISTS, "A conditional forwarding zone already exists for that name." },
+ { WERR_DNS_ERROR_ZONE_REQUIRES_MASTER_IP, "This zone must be configured with one or more master DNS server IP addresses." },
+ { WERR_DNS_ERROR_ZONE_IS_SHUTDOWN, "The operation cannot be performed because this zone is shut down." },
+ { WERR_DNS_ERROR_PRIMARY_REQUIRES_DATAFILE, "The primary DNS zone requires a data file." },
+ { WERR_DNS_ERROR_INVALID_DATAFILE_NAME, "Invalid data file name for the DNS zone." },
+ { WERR_DNS_ERROR_DATAFILE_OPEN_FAILURE, "Failed to open the data file for the DNS zone." },
+ { WERR_DNS_ERROR_FILE_WRITEBACK_FAILED, "Failed to write the data file for the DNS zone." },
+ { WERR_DNS_ERROR_DATAFILE_PARSING, "Failure while reading datafile for DNS zone." },
+ { WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST, "DNS record does not exist." },
+ { WERR_DNS_ERROR_RECORD_FORMAT, "DNS record format error." },
+ { WERR_DNS_ERROR_NODE_CREATION_FAILED, "Node creation failure in DNS." },
+ { WERR_DNS_ERROR_UNKNOWN_RECORD_TYPE, "Unknown DNS record type." },
+ { WERR_DNS_ERROR_RECORD_TIMED_OUT, "DNS record timed out." },
+ { WERR_DNS_ERROR_NAME_NOT_IN_ZONE, "Name not in DNS zone." },
+ { WERR_DNS_ERROR_CNAME_LOOP, "CNAME loop detected." },
+ { WERR_DNS_ERROR_NODE_IS_CNAME, "Node is a CNAME DNS record." },
+ { WERR_DNS_ERROR_CNAME_COLLISION, "A CNAME record already exists for the given name." },
+ { WERR_DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT, "Record is only at DNS zone root." },
+ { WERR_DNS_ERROR_RECORD_ALREADY_EXISTS, "DNS record already exists." },
+ { WERR_DNS_ERROR_SECONDARY_DATA, "Secondary DNS zone data error." },
+ { WERR_DNS_ERROR_NO_CREATE_CACHE_DATA, "Could not create DNS cache data." },
+ { WERR_DNS_ERROR_NAME_DOES_NOT_EXIST, "DNS name does not exist." },
+ { WERR_DNS_WARNING_PTR_CREATE_FAILED, "Could not create pointer (PTR) record." },
+ { WERR_DNS_WARNING_DOMAIN_UNDELETED, "DNS domain was undeleted." },
+ { WERR_DNS_ERROR_DS_UNAVAILABLE, "The directory service is unavailable." },
+ { WERR_DNS_ERROR_DS_ZONE_ALREADY_EXISTS, "DNS zone already exists in the directory service." },
+ { WERR_DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE, "DNS server not creating or reading the boot file for the directory service integrated DNS zone." },
+ { WERR_DNS_INFO_AXFR_COMPLETE, "DNS AXFR (zone transfer) complete." },
+ { WERR_DNS_ERROR_AXFR, "DNS zone transfer failed." },
+ { WERR_DNS_INFO_ADDED_LOCAL_WINS, "Added local WINS server." },
+ { WERR_DNS_STATUS_CONTINUE_NEEDED, "Secure update call needs to continue update request." },
+ { WERR_DNS_ERROR_NO_TCPIP, "TCP/IP network protocol not installed." },
+ { WERR_DNS_ERROR_NO_DNS_SERVERS, "No DNS servers configured for local system." },
+ { WERR_DNS_ERROR_DP_DOES_NOT_EXIST, "The specified directory partition does not exist." },
+ { WERR_DNS_ERROR_DP_ALREADY_EXISTS, "The specified directory partition already exists." },
+ { WERR_DNS_ERROR_DP_NOT_ENLISTED, "This DNS server is not enlisted in the specified directory partition." },
+ { WERR_DNS_ERROR_DP_ALREADY_ENLISTED, "This DNS server is already enlisted in the specified directory partition." },
+ { WERR_DNS_ERROR_DP_NOT_AVAILABLE, "The directory partition is not available at this time. Wait a few minutes and try again." },
+ { WERR_DNS_ERROR_DP_FSMO_ERROR, "The application directory partition operation failed. The domain controller holding the domain naming master role is down or unable to service the request or is not running Windows Server 2003." },
{ WERR_IPSEC_QM_POLICY_EXISTS, "The specified quick mode policy already exists." },
{ WERR_IPSEC_QM_POLICY_NOT_FOUND, "The specified quick mode policy was not found." },
{ WERR_IPSEC_QM_POLICY_IN_USE, "The specified quick mode policy is being used." },
diff --git a/libcli/util/werror.h b/libcli/util/werror.h
index d89cd9c087..efcc19cbbb 100644
--- a/libcli/util/werror.h
+++ b/libcli/util/werror.h
@@ -2388,6 +2388,100 @@ typedef uint32_t WERROR;
#define WERR_DS_AUDIT_FAILURE W_ERROR(0x000021B1)
#define WERR_DS_INVALID_SEARCH_FLAG_SUBTREE W_ERROR(0x000021B2)
#define WERR_DS_INVALID_SEARCH_FLAG_TUPLE W_ERROR(0x000021B3)
+#define WERR_DNS_ERROR_RCODE_FORMAT_ERROR W_ERROR(0x00002329)
+#define WERR_DNS_ERROR_RCODE_SERVER_FAILURE W_ERROR(0x0000232A)
+#define WERR_DNS_ERROR_RCODE_NAME_ERROR W_ERROR(0x0000232B)
+#define WERR_DNS_ERROR_RCODE_NOT_IMPLEMENTED W_ERROR(0x0000232C)
+#define WERR_DNS_ERROR_RCODE_REFUSED W_ERROR(0x0000232D)
+#define WERR_DNS_ERROR_RCODE_YXDOMAIN W_ERROR(0x0000232E)
+#define WERR_DNS_ERROR_RCODE_YXRRSET W_ERROR(0x0000232F)
+#define WERR_DNS_ERROR_RCODE_NXRRSET W_ERROR(0x00002330)
+#define WERR_DNS_ERROR_RCODE_NOTAUTH W_ERROR(0x00002331)
+#define WERR_DNS_ERROR_RCODE_NOTZONE W_ERROR(0x00002332)
+#define WERR_DNS_ERROR_RCODE_BADSIG W_ERROR(0x00002338)
+#define WERR_DNS_ERROR_RCODE_BADKEY W_ERROR(0x00002339)
+#define WERR_DNS_ERROR_RCODE_BADTIME W_ERROR(0x0000233A)
+#define WERR_DNS_INFO_NO_RECORDS W_ERROR(0x0000251D)
+#define WERR_DNS_ERROR_BAD_PACKET W_ERROR(0x0000251E)
+#define WERR_DNS_ERROR_NO_PACKET W_ERROR(0x0000251F)
+#define WERR_DNS_ERROR_RCODE W_ERROR(0x00002520)
+#define WERR_DNS_ERROR_UNSECURE_PACKET W_ERROR(0x00002521)
+#define WERR_DNS_ERROR_INVALID_TYPE W_ERROR(0x0000254F)
+#define WERR_DNS_ERROR_INVALID_IP_ADDRESS W_ERROR(0x00002550)
+#define WERR_DNS_ERROR_INVALID_PROPERTY W_ERROR(0x00002551)
+#define WERR_DNS_ERROR_TRY_AGAIN_LATER W_ERROR(0x00002552)
+#define WERR_DNS_ERROR_NOT_UNIQUE W_ERROR(0x00002553)
+#define WERR_DNS_ERROR_NON_RFC_NAME W_ERROR(0x00002554)
+#define WERR_DNS_STATUS_FQDN W_ERROR(0x00002555)
+#define WERR_DNS_STATUS_DOTTED_NAME W_ERROR(0x00002556)
+#define WERR_DNS_STATUS_SINGLE_PART_NAME W_ERROR(0x00002557)
+#define WERR_DNS_ERROR_INVALID_NAME_CHAR W_ERROR(0x00002558)
+#define WERR_DNS_ERROR_NUMERIC_NAME W_ERROR(0x00002559)
+#define WERR_DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER W_ERROR(0x0000255A)
+#define WERR_DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION W_ERROR(0x0000255B)
+#define WERR_DNS_ERROR_CANNOT_FIND_ROOT_HINTS W_ERROR(0x0000255C)
+#define WERR_DNS_ERROR_INCONSISTENT_ROOT_HINTS W_ERROR(0x0000255D)
+#define WERR_DNS_ERROR_DWORD_VALUE_TOO_SMALL W_ERROR(0x0000255E)
+#define WERR_DNS_ERROR_DWORD_VALUE_TOO_LARGE W_ERROR(0x0000255F)
+#define WERR_DNS_ERROR_BACKGROUND_LOADING W_ERROR(0x00002560)
+#define WERR_DNS_ERROR_NOT_ALLOWED_ON_RODC W_ERROR(0x00002561)
+#define WERR_DNS_ERROR_ZONE_DOES_NOT_EXIST W_ERROR(0x00002581)
+#define WERR_DNS_ERROR_NO_ZONE_INFO W_ERROR(0x00002582)
+#define WERR_DNS_ERROR_INVALID_ZONE_OPERATION W_ERROR(0x00002583)
+#define WERR_DNS_ERROR_ZONE_CONFIGURATION_ERROR W_ERROR(0x00002584)
+#define WERR_DNS_ERROR_ZONE_HAS_NO_SOA_RECORD W_ERROR(0x00002585)
+#define WERR_DNS_ERROR_ZONE_HAS_NO_NS_RECORDS W_ERROR(0x00002586)
+#define WERR_DNS_ERROR_ZONE_LOCKED W_ERROR(0x00002587)
+#define WERR_DNS_ERROR_ZONE_CREATION_FAILED W_ERROR(0x00002588)
+#define WERR_DNS_ERROR_ZONE_ALREADY_EXISTS W_ERROR(0x00002589)
+#define WERR_DNS_ERROR_AUTOZONE_ALREADY_EXISTS W_ERROR(0x0000258A)
+#define WERR_DNS_ERROR_INVALID_ZONE_TYPE W_ERROR(0x0000258B)
+#define WERR_DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP W_ERROR(0x0000258C)
+#define WERR_DNS_ERROR_ZONE_NOT_SECONDARY W_ERROR(0x0000258D)
+#define WERR_DNS_ERROR_NEED_SECONDARY_ADDRESSES W_ERROR(0x0000258E)
+#define WERR_DNS_ERROR_WINS_INIT_FAILED W_ERROR(0x0000258F)
+#define WERR_DNS_ERROR_NEED_WINS_SERVERS W_ERROR(0x00002590)
+#define WERR_DNS_ERROR_NBSTAT_INIT_FAILED W_ERROR(0x00002591)
+#define WERR_DNS_ERROR_SOA_DELETE_INVALID W_ERROR(0x00002592)
+#define WERR_DNS_ERROR_FORWARDER_ALREADY_EXISTS W_ERROR(0x00002593)
+#define WERR_DNS_ERROR_ZONE_REQUIRES_MASTER_IP W_ERROR(0x00002594)
+#define WERR_DNS_ERROR_ZONE_IS_SHUTDOWN W_ERROR(0x00002595)
+#define WERR_DNS_ERROR_PRIMARY_REQUIRES_DATAFILE W_ERROR(0x000025B3)
+#define WERR_DNS_ERROR_INVALID_DATAFILE_NAME W_ERROR(0x000025B4)
+#define WERR_DNS_ERROR_DATAFILE_OPEN_FAILURE W_ERROR(0x000025B5)
+#define WERR_DNS_ERROR_FILE_WRITEBACK_FAILED W_ERROR(0x000025B6)
+#define WERR_DNS_ERROR_DATAFILE_PARSING W_ERROR(0x000025B7)
+#define WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST W_ERROR(0x000025E5)
+#define WERR_DNS_ERROR_RECORD_FORMAT W_ERROR(0x000025E6)
+#define WERR_DNS_ERROR_NODE_CREATION_FAILED W_ERROR(0x000025E7)
+#define WERR_DNS_ERROR_UNKNOWN_RECORD_TYPE W_ERROR(0x000025E8)
+#define WERR_DNS_ERROR_RECORD_TIMED_OUT W_ERROR(0x000025E9)
+#define WERR_DNS_ERROR_NAME_NOT_IN_ZONE W_ERROR(0x000025EA)
+#define WERR_DNS_ERROR_CNAME_LOOP W_ERROR(0x000025EB)
+#define WERR_DNS_ERROR_NODE_IS_CNAME W_ERROR(0x000025EC)
+#define WERR_DNS_ERROR_CNAME_COLLISION W_ERROR(0x000025ED)
+#define WERR_DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT W_ERROR(0x000025EE)
+#define WERR_DNS_ERROR_RECORD_ALREADY_EXISTS W_ERROR(0x000025EF)
+#define WERR_DNS_ERROR_SECONDARY_DATA W_ERROR(0x000025F0)
+#define WERR_DNS_ERROR_NO_CREATE_CACHE_DATA W_ERROR(0x000025F1)
+#define WERR_DNS_ERROR_NAME_DOES_NOT_EXIST W_ERROR(0x000025F2)
+#define WERR_DNS_WARNING_PTR_CREATE_FAILED W_ERROR(0x000025F3)
+#define WERR_DNS_WARNING_DOMAIN_UNDELETED W_ERROR(0x000025F4)
+#define WERR_DNS_ERROR_DS_UNAVAILABLE W_ERROR(0x000025F5)
+#define WERR_DNS_ERROR_DS_ZONE_ALREADY_EXISTS W_ERROR(0x000025F6)
+#define WERR_DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE W_ERROR(0x000025F7)
+#define WERR_DNS_INFO_AXFR_COMPLETE W_ERROR(0x00002617)
+#define WERR_DNS_ERROR_AXFR W_ERROR(0x00002618)
+#define WERR_DNS_INFO_ADDED_LOCAL_WINS W_ERROR(0x00002619)
+#define WERR_DNS_STATUS_CONTINUE_NEEDED W_ERROR(0x00002649)
+#define WERR_DNS_ERROR_NO_TCPIP W_ERROR(0x0000267B)
+#define WERR_DNS_ERROR_NO_DNS_SERVERS W_ERROR(0x0000267C)
+#define WERR_DNS_ERROR_DP_DOES_NOT_EXIST W_ERROR(0x000026AD)
+#define WERR_DNS_ERROR_DP_ALREADY_EXISTS W_ERROR(0x000026AE)
+#define WERR_DNS_ERROR_DP_NOT_ENLISTED W_ERROR(0x000026AF)
+#define WERR_DNS_ERROR_DP_ALREADY_ENLISTED W_ERROR(0x000026B0)
+#define WERR_DNS_ERROR_DP_NOT_AVAILABLE W_ERROR(0x000026B1)
+#define WERR_DNS_ERROR_DP_FSMO_ERROR W_ERROR(0x000026B2)
#define WERR_IPSEC_QM_POLICY_EXISTS W_ERROR(0x000032C8)
#define WERR_IPSEC_QM_POLICY_NOT_FOUND W_ERROR(0x000032C9)
#define WERR_IPSEC_QM_POLICY_IN_USE W_ERROR(0x000032CA)