Whalebone enhances DNS security by protecting DNS queries and responses with encryption and advanced filtering, ensuring that data in transit within the DNS layer is secure from threats like DNS hijacking and phishing.