Coder Social home page Coder Social logo

Comments (4)

ra-at-diladele-com avatar ra-at-diladele-com commented on June 24, 2024

from squid-windows.

denisk176 avatar denisk176 commented on June 24, 2024

The problem is not the UI. It's that squid doesn't behave as it says in the documentation. It says that squid can pull the DNS servers from the DHCP responses if they are specified there. But it does not do that.

from squid-windows.

Qrox avatar Qrox commented on June 24, 2024

The documentation at http://www.squid-cache.org/Doc/config/dns_nameservers/ says that:

On Windows platforms, if no value is specified here or in
the /etc/resolv.conf file, the list of DNS name servers are
taken from the Windows registry, both static and dynamic DHCP
configurations are supported.

However, it seems Squid for Windows does not use the system DNS servers even if dns_nameservers is not specified in /etc/squid/squid.conf and /etc/resolv.conf does not exist. Instead it prints these lines to the log:

Warning: Could not find any nameservers. Trying to use localhost
Please check your /etc/resolv.conf file

Judging from the second line, I suspect Squid for Windows might have been compiled without the _SQUID_WINDOWS_ flag, because as shown in these lines of code from the squid repo, if the flag is set the second line should be Please check your TCP-IP settings or /etc/resolv.conf file instead.

https://github.com/squid-cache/squid/blob/4a28fc5546e36182eaf0beea1818f25587d34e3f/src/dns_internal.cc#L1606

The function call for looking up the system DNS registry is also behind the _SQUID_WINDOWS_ flag as seen at these lines, which might explain why Squid for Windows does not use the system DNS servers.

https://github.com/squid-cache/squid/blob/4a28fc5546e36182eaf0beea1818f25587d34e3f/src/dns_internal.cc#L1599

However I'm not familiar with how Squid for Windows is compiled, so this is only my best guess. Hope this helps and this issue is addressed soon!

from squid-windows.

rawahars avatar rawahars commented on June 24, 2024

@Qrox @denisk176 Given that this doesn't seem to have been fixed in the binaries available at the moment, do we know how can we compile Squid for Windows?

The instructions provided here- https://wiki.squid-cache.org/KnowledgeBase/Windows#compiling are not user friendly and sort of incomplete. I did email the mailing list but haven't heard back yet.

from squid-windows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.