I have recently setup a personal website using github pages for hosting and DNS with freenom.
When I make a request using curl:
curl --header "Host: example.com" http://192.30.252.153/
I get the expected response, the HTML from my site, however, when I try to access the page through a web browser I get a generic
example.com’s server DNS address could not be found.
Is/are there a reason(s) why I am getting what appears to be mixed results?
Note: I followed the instructions I found on stackoverflow about how to set this up.
http://192.30.252.153/
. Your DNS is not able to resolve the address in IP. When you incur in problem like that simplify your command line from all the not needed parts, and for your command becomescurl http://192.30.252.153/
where it is evident that you are not asking to reach example.com but that IP. :-)