void DnsResolver::fill_resolved_ip_list(
         const rr_list_t& answers_list,
-        list<HostAddress> *resolved_host_address_list
+        HostAddressList *resolved_host_address_list
 ) const
 {
     BOOST_ASSERT( 1 <= answers_list.size() );
 
 void DnsResolver::append_resolved_ipv4(
         const shared_ptr<resource_base_t> resource_record,
-        list<HostAddress> *resolved_host_address_list
+        HostAddressList *resolved_host_address_list
 ) const
 {
     BOOST_ASSERT( resource_record->rtype() == boost::net::dns::type_a );
 
 #define DNS_RESOLVER_H
 
 #include <string>
-#include <list>
 
 #include <boost/net/dns.hpp>
 
-class HostAddress;
+#include "dns/hostaddress.h"
 
 //-----------------------------------------------------------------------------
 // DnsResolver
 
 private:
     /// The list of IPs available to the host DNS.
-    std::list<HostAddress> ResolvedHostAddressList;
+    HostAddressList ResolvedHostAddressList;
     /// The DNS of the host.
     const std::string HostDnsAddress;
     /// The address of the server which can resolve the host address.
 
 
 #include <stdint.h>
 
+#include <list>
 #include <string>
 
 #include "dns/timetolive.h"
 
 };
 
+//-----------------------------------------------------------------------------
+// HostAddressList
+//-----------------------------------------------------------------------------
+
+typedef std::list<HostAddress> HostAddressList;
+
 #endif // HOST_ADDRESS_H