>>>>> "Peter" == Peter Hardy <[EMAIL PROTECTED]> writes:
Peter> ...and then Simon Bryan said:
>>
>> >
>> > , and copy that line into the resolv.conf on your client
>> machines. Then > you should be able to browse the homepage.
>>
>> Hmmm, does Windows have one of these? Can't seem to find anything
>> relevant.
Peter> If you're running DHCP on your internal network, then you can
Peter> configure it to assign a domain name by putting option
Peter> domain-name "blah.blah";
Peter> in your dhcpd.conf.
My only problem doing that was that then local names stopped working
(I've got a real domain inside my firewall, and don't want to change my
local hostnames). So I added a redirector.
In /usr/lin/squid/redir.pl:
----
#!/usr/bin/perl
$|=1;
while (<>) {
s@http://.*\.doubleclick\.net/.*@/file:///usr/lib/squid/onepix.gif@;
s@http://www/@http://www.rdc1.nsw.optushome.com.au/@;
s@http://www:@http://www.rdc1.nsw.optushome.com.au:@;
print;
}
----
(The www.rdc1.nsw.optushome.com.au line should reflect whatever the
gateway's DHCP dialogue came up with -- you may not be in Randwick.)
(This one gets rid of the doubleclick.net ads too)
And in squid.conf:
# TAG: redirect_program
# Specify the location of the executable for the URL redirector.
# Since they can perform almost any function there isn't one
included.
# See the Release-Notes for information on how to write one.
# By default, a redirector is not used.
#
#Default:
# none
redirect_program /usr/lib/squid/redir.pl
Peter C
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug