diff --git a/pysnmp/entity/rfc3413/config.py b/pysnmp/entity/rfc3413/config.py
index <HASH>..<HASH> 100644
--- a/pysnmp/entity/rfc3413/config.py
+++ b/pysnmp/entity/rfc3413/config.py
@@ -38,6 +38,8 @@ def getTargetAddr(snmpEngine, snmpTargetAddrName):
         snmpTargetAddrTAddress = tuple(
             TransportAddressIPv6(snmpTargetAddrTAddress)
             )
+    elif snmpTargetAddrTDomain[:len(config.snmpLocalDomain)] == config.snmpLocalDomain:
+        snmpTargetAddrTAddress = str(snmpTargetAddrTAddress)
 
     return ( snmpTargetAddrTDomain,
              snmpTargetAddrTAddress,
cast snmpLocalDomain-typed address object into a string to make it
compatible with BSD socket API