So I have two CentOS 7 machines running.
if I am on my server and I do "curl http://192.168.1.8" I get data. If I do "host devgeis.LayeredSolutionsInc.com" I get the correct address 192.168.1.8
if I goto another machine with CentOS 7. I do "curl http://192.168.1.8" I get data. I do "host devgeis.LayeredSolutionsInc.com" I get the correct address 192.168.1.8
BUT then I do "curl http://devgeis.LayeredSolutionsinc.com" I get "nothing" BUt then doing the -v with "curl -v http://devgeis.LayeredSolutionsinc.com" * About to connect() to devgeis.LayeredSolutionsinc.com port 80 (#0) * Trying 198.168.1.8...
So why when using the name is it not giving me the index.html page ?
Should not be a firewall issue - as the actual address worked. Also I tried stopping the firewall - and all the above is the exact same.
What is possibly happening here ?
Thanks
Jerry
So I have two CentOS 7 machines running.
if I am on my server and I do "curl http://192.168.1.8" I get data. If I do "host devgeis.LayeredSolutionsInc.com" I get the correct address 192.168.1.8
if I goto another machine with CentOS 7. I do "curl http://192.168.1.8" I get data. I do "host devgeis.LayeredSolutionsInc.com" I get the correct address 192.168.1.8
BUT then I do "curl http://devgeis.LayeredSolutionsinc.com" I get "nothing" BUt then doing the -v with "curl -v http://devgeis.LayeredSolutionsinc.com"
- About to connect() to devgeis.LayeredSolutionsinc.com port 80 (#0)
- Trying 198.168.1.8...
So why when using the name is it not giving me the index.html page ?
I guess you have an apache listening on 192.168.1.8:80? What do the apache logs say? Does your apache know that he's responsible for devgeis.LayeredSolutionsInc.com?
Regards, Simon
Did you notice the address ? It is not the same IP.
Patrick
Le 02/11/2020 à 17:48, Jerry Geis a écrit :
So I have two CentOS 7 machines running.
if I am on my server and I do "curl http://192.168.1.8" I get data. If I do "host devgeis.LayeredSolutionsInc.com" I get the correct address 192.168.1.8
if I goto another machine with CentOS 7. I do "curl http://192.168.1.8" I get data. I do "host devgeis.LayeredSolutionsInc.com" I get the correct address *192.*168.1.8
BUT then I do "curl http://devgeis.LayeredSolutionsinc.com" I get "nothing" BUt then doing the -v with "curl -v http://devgeis.LayeredSolutionsinc.com"
- About to connect() to devgeis.LayeredSolutionsinc.com port 80 (#0)
- *Trying 198.*168.1.8...
So why when using the name is it not giving me the index.html page ?
Should not be a firewall issue - as the actual address worked. Also I tried stopping the firewall - and all the above is the exact same.
What is possibly happening here ?
Thanks
Jerry _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On Nov 2, 2020, at 12:51 PM, Patrick Bégou <Patrick.Begou@legi.grenoble-inp.frmailto:Patrick.Begou@legi.grenoble-inp.fr> wrote:
Did you notice the address ? It is not the same IP.
Right - this doesn't look like a web server issue, if the quoted text has no typos. the real question is why doing "host" on the name returns 192.168.1.8 but doing "curl -v" with the name appears to return 198.168.1.8 (note 198, not 192, for the first of the dotted quad) (according to the text below).
Also, I'm not sure that a FQDN in the .com domain should ever resolve to a non-routable address (192,168.x.x). It's at least weird.
Patrick
Le 02/11/2020 à 17:48, Jerry Geis a écrit : So I have two CentOS 7 machines running.
if I am on my server and I do "curl http://192.168.1.8" I get data. If I do "host devgeis.LayeredSolutionsInc.comhttp://devgeis.LayeredSolutionsInc.com" I get the correct address 192.168.1.8
if I goto another machine with CentOS 7. I do "curl http://192.168.1.8" I get data. I do "host devgeis.LayeredSolutionsInc.comhttp://devgeis.LayeredSolutionsInc.com" I get the correct address *192.*168.1.8
BUT then I do "curl http://devgeis.LayeredSolutionsinc.com" I get "nothing" BUt then doing the -v with "curl -v http://devgeis.LayeredSolutionsinc.com" * About to connect() to devgeis.LayeredSolutionsinc.comhttp://devgeis.LayeredSolutionsinc.com port 80 (#0) * *Trying 198.*168.1.8...
Hi All - Your correct... There was a typo in the address - Can I plame that on a super small screen... Thanks
Jerry