This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

local hosts-file being ignored by astaro

Hi,

I'm trying to use the hosts-file on my computer to temprorary setup another ip for a site that is under development. IE:

ip.ip.ip.ip  www.mysite.com

It seems like astaro is ignoring my settings and use the 'real' ip for the server.

The reason i think it's Astaro causing this, is that i've tried the same with a 3G modem connected to the computer, and it worked.

Any idea why this happens?

I'm using Astaro 7.402 with HTTP proxy (transparent).

Thanks in advance


This thread was automatically locked due to age.
  • If I were to stagger a guess, I would think that since you are using a proxy, it is the proxy that is doing the name look-up and not your local host. Therefore editing the host file won't work. It's not an Astaro problem per se as this is how proxy's work.
  • I don't understand your question.  Do you mean that you're trying to access by using www.mysite.com, but that is being resolved to the public IP instead of the private IP in your internal network?  If so, then you need a static route in the Astaro DNS Proxy or your internal name server: 'www.mysite.com -> [Internal IP]'.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • I will try to explain further, ip's below are not for real, just examples:

    Let's say there is working site at www.site.com on the web with ip 89.89.89.89

    We're working on a new web for www.site.com. This web is hosted on another server for development. While we're developing this site, we would like to change the hostfile on the local computer to point www.site.com to 194.194.194.194 (development server) so we can see how it works with the 'real' adress during the development. 

    What i do, is to change my hostsfile to:

    194.194.194.194    www.site.com

    This is being ignored by Astaro. If i do a lookup for www.site.com it's still showing 89.89.89.89 and not the ip that i've changed to in my hostsfile.

    Do i really have to manage this through static routes in Astaro? We may have many sites under development and the problem is that we don't want all users to be redirected to development site, only the people working with this site.

    Is there anything i can disable on Astaro so i can have this work the way i want?

    Thank you
  • That's just the way things work if you're going through a proxy.  Try putting www.site.com in the transparent mode skip list; maybe your PC will resolve it from your hosts file before doing a DNS query, but I'm not optimistic about that.

    Or, you could establish a standard of using test.site.com when a site is under development.  That would afford you added advantages.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Thanks for your reply. I had to disable the proxy to get it to work. Too bad, but had to get this to work.

    Thanks all for your help!
  • I found out that it is the Pharming protection that is causing this issue.

    it's under - Web Protection - Filtering Options - Misc - Pharming Protection (bottom of the page)