LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-16-2015, 07:39 PM   #1
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Rep: Reputation: Disabled
can't reach website from specific machine


I cannot reach my Owncloud website when I try to access it from my desktop pc, the site appears down with any browser or application on this one. However, other devices connecting to the internet through the same gateway, as well as anywhere else on the internet, can reach it.
This pc used to be the actual server that my Owncloud resided on. I had my OpenWRT router spoof the site's IP address to the server's internal one, i.e. all the devices that connected to my router and called this URL where redirected to the OC server's internal IP instead of taking the long route over the internet.
Now, my OC is hosted remotely, site and I use this pc just as a regular workstation. I wasn't able to remove the hostname from the router's settings (some stupid bug), so I thought that was the reason why my pc, sitting behind it, still kept getting rerouted to itself when looking for the OC site. I tried taking the router out, the pc now going directly to ISP's the modem, so that hostname should be out of the game.
However, the problem remains, so I have reason to believe there is something on my very system misdirecting the DNS.
Any ideas where I might best start looking?
 
Old 08-16-2015, 08:10 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Try a traceroute to the site from the problem machine and from a machine that works. Comparing the outputs should give you a hint as to where the failure is occurring.
 
Old 08-16-2015, 08:20 PM   #3
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Try a traceroute to the site from the problem machine and from a machine that works. Comparing the outputs should give you a hint as to where the failure is occurring.
Code:
~$ traceroute my.owncloud.org
traceroute to my.owncloud.org (127.0.0.1), 30 hops max, 60 byte packets
 1  localhost (127.0.0.1)  0.028 ms  0.007 ms  0.007 ms
This is exactly it: For some reason it believes that URL is on my localhost.
Doing this on another machine gives the same output except with my OC site's correct IP...
 
Old 08-19-2015, 02:34 AM   #4
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
...And, in case that wasn't clear, I have no idea why that is, and how to fix it (problem not solved).
 
Old 08-19-2015, 02:40 AM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,264
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Do you have something like this in the /etc/hosts file on that machine?

Code:
127.0.0.1 my.owncloud.org
If so, remove it (or comment it out).
 
Old 08-20-2015, 05:43 PM   #6
bennypr0fane
Member
 
Registered: Jan 2012
Location: Central Europe
Distribution: Manjaro, Kubuntu
Posts: 171

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
Do you have something like this in the /etc/hosts file on that machine?

Code:
127.0.0.1 my.owncloud.org
If so, remove it (or comment it out).
Yes! Done! Problem solved, thank you very much! :-)
 
  


Reply

Tags
dns, ipaddress, openwrt



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ip6tables - allow specific port number v6 traffic to specific machine psycroptic Linux - Networking 0 03-17-2015 08:45 AM
Can't reach NAS4Free website, recurring problem SparceMatrix General 2 12-03-2014 02:18 PM
Cannot connect to a specific website rickh Linux - Networking 4 02-01-2007 10:44 PM
Can't load one specific website using any browser Ilisdur Fedora 4 09-14-2004 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration