I a trying to access a website’s information programmatically, but on both Java and Python it is unable to resolve a hostname. If I specify the IP address, it changes the error to TLSV1_UNRECOGNIZED_NAME. This website is able to resolve without any additional work through any browser though.
I have looked through a lot of potential solutions on here, but for Python it says this issue should have been resolved in 2.7 or 2.8, but I am using 3.10 and still getting that error. In Java, it claims that this is a known error, but the solutions presented such as removing the SNI header through a compilation option, or passing an empty hostname array to HTTPSURLConnection to cancel out the creation of the SNI header doesn’t solve it. I have also tried setting the user agent to Mozilla as suggested by an answer on here, but that didn’t change anything either.
I am sure that it is something unusual about the website, but it is not one I own so I am unable to check much about its configuration.
Specifically the website I am trying to see is:
URL -> https://epic7db.com/heroes
IP -> 157.230.84.20
DNS Lookup -> https://www.nslookup.io/domains/epic7db.com/webservers/
When using nslookup locally, I get back:
nslookup epic7db.com
Server: UnKnown
Address: 10.0.0.1
Non-authoritative answer:
Name: epic7db.com
Address: 157.230.84.20
Any help would be appreciated as I am essentially throwing things at the wall to see what sticks at this point.