Add libresolv as a library dependency