Tomasz Nurkiewicz πŸ‡ΊπŸ‡¦ Profile picture
@Java_Champions | πŸ‘¨β€πŸ’» CTO at @devskiller | βœ‰οΈ nurkiewicz (at gmail) | πŸ”Š https://t.co/NUwJFxHIYH | πŸ‘¨β€πŸ« https://t.co/mJPHIWTxAS | DMs open
Apr 28, 2022 β€’ 4 tweets β€’ 2 min read
In #Java, two entirely different URLs may be considered equal. Sometimes. Why? DNS. It's always DNS. Well, Java works this way: "Two hosts are considered equivalent if both host names can be resolved into the same IP addresses". Let's dig (no pun intended!) a little bit deeper 🧡 Using dig we notice that these domains (Polish president and some dating site) point to the same servers. Scandal? No. CDN. These are #Cloudflare IPs: