SQUID append_domain

Started by seed, February 08, 2021, 12:20:47 PM

Previous topic - Next topic
When using squid i often have the problem that I cant connect to my internal server Webinterfaces using DNS.

I configured "::1, 127.0.0.1" in Squid but squid doenst want to resolve / send the hostnames to the local unbound.

For example when i want to access "webserver" in my Network. Squid has no idea what to do. when sending the request manual to unbound the host is resolved. Once i append my local search domain (For example: testdomain.local) squid is able to connect to the server.

In the local squid configuration "append_domain" is missing. It might be helpful when squid knows the local search domain.

More about that in the squid wiki.:
http://www.squid-cache.org/Doc/config/append_domain/
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:

AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance

private user, no business use

i think you can add some .conf file in /usr/local/etc/squid/pre-auth with this directive and restart squid
but the question remains why use a proxy at all to access local sites

i hope the developers will add the option "append_domain" to the webinterface. i am well aware that i can customize the template myself.

To the background: in my webbrowser I can forbid the proxy use for certain domains (e.g. for my internal domain: testdomain.local). if I want e.g. to my "webserver" then it is not made webserver.testdomain.local but remains "webserver".  The proxy then receives the request to "webserver" and throws an error message because "webserver" cannot be resolved by the proxy. therefore the option "append_domain" should be added to the configuration.
i want all services to run with wirespeed and therefore run this dedicated hardware configuration:

AMD Ryzen 7 9700x
ASUS Pro B650M-CT-CSM
64GB DDR5 ECC (2x KSM56E46BD8KM-32HA)
Intel XL710-BM1
Intel i350-T4
2x SSD with ZFS mirror
PiKVM for remote maintenance

private user, no business use