Let me better understand, You're saying that I need to put this wildcard as a DNS record into my DNS server in order to avoid to use the egress network policy?
Egress is not the solution, as pods resolve names and ghen perform the connection to the IP. Since CoreDNs config cannot be easily customized in OCP, your best bet is to make sure the domain cannot be resolved on upstream DNS server