Also the format of resolver reply is now just sockaddr_storage with family set and address in the storage field.
You connect to this service using unix domain sockets and send the asked domain name. It will respond with ip address or 'unavailable' There is no DNS cache implemented so all calls ask the nameserver.