Fix net/dns contracts