As the comment says, it works when dns server is added, dhcp probably reports a dns server that isn't any. But without further info, can't do anything.