LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Robert Wuttke <robert.wuttke@disc.com.au>
  To  : <darylp@au1.ibm.com>, <darylp@au1.ibm.com>
  Date: Wed, 30 Jun 1999 09:41:36 +0930

Re: Banner adverts cont.

Try editing /etc/nsswitch.conf and changing the line starting with hosts: to
put hosts: files ..... first. This will tell Linux networking to look at
your local files before going to DNS or NIS or NIS+ or anything else, to get
resolution (if nis or nis+ are configured of course)

If this doesn't help, try
man nsswitch.conf or
more /usr/doc/HOWTO/Net3-HOWTO (I think this is the one you need) or
more /usr/doc/HOWTO/NAMED-HOWTO ?!?!? If all else fails
grep nsswitch.conf /usr/doc/HOWTO and look at the files is reports back to
you.

Rob.

-----Original Message-----
From: darylp@au1.ibm.com <darylp@au1.ibm.com>
To: linuxsa@linuxsa.org.au <linuxsa@linuxsa.org.au>
Date: Wednesday, 30 June 1999 8:34 AM
Subject: Re: Banner adverts cont.


>Greetings,
>Under OS/2 in config.sys you need to set the parameter:
>SET USE_HOSTS_FIRST=1
>So you PC looks at the name / IP address in the hosts file 1st.
>Those annoying banner sites are listed as 127.0.0.1 & are made null & void
>:)
>
>Perhaps somebody can tell us what the command / config is under Linux?
>
>
>Regards,
>
>Daryl Pilkington
>IBM Certified System Expert:- OS/2 Warp Server
>
>2nd Level Server Support
>IBM Global Services Australia
>
>Group Tel: +61-2-9354-7150  Direct: Tel: +61-2-9354-4205  Mobile:
>+61-414-327-957  Email: darylp@au1.ibm.com
>
>
>
>linuxsa@linuxsa.org.au on 29-06-99 17:23:50
>
>To:   "Shaun" <ether@chariot.net.au>, LinuxSA@linuxsa.org.au
>cc:    (bcc: Daryl Pilkington/Australia/Contr/IBM)
>Subject:  Re: Banner adverts cont.
>
>
>
>
>
>I think that /etc/hosts should do the same thing form you. Not 100% sure,
>but am sure that someone here will let me know if I gave you bad info.
>
>Rob.
>
>-----Original Message-----
>From: Shaun <ether@chariot.net.au>
>To: LinuxSA@linuxsa.org.au <LinuxSA@linuxsa.org.au>
>Date: Tuesday, 29 June 1999 3:46 PM
>Subject: Banner adverts cont.
>
>
>>hello all,
>>
>>when in windows i use a hosts file to stop banner ads,( \windows\hosts )
>>it looks like this;
>>
>>--------------------------------------------------------------------------
>-
>------------------
>>
>>127.0.0.1       image.excite.com                # no ads from excite
>>127.0.0.1       image.eimg.com                  # used by webcrawler...
>>127.0.0.1       adforce.imgis.com               # used by mamma
>>127.0.0.1       promotions.yahoo.com        # yahoo...
>>127.0.0.1       ads.lycos.com                   # lycos, whowhere
>>127.0.0.1       ad.doubleclick.net              # altavista
>>
>>etc...
>>
>>--------------------------------------------------------------------------
>-
>---------------------
>>
>>how can i do this in linux?
>>
>>
>>if anyone wants to use/view the hosts file,
>>www.chariot.net.au/~ether/hosts
>>
>>
>>thanks.
>> Shaun
>>
>>--
>>Check out the LinuxSA web pages at http://www.linuxsa.org.au/
>>To unsubscribe from the LinuxSA list:
>>  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>>
>>
>
>--
>Check out the LinuxSA web pages at http://www.linuxsa.org.au/
>To unsubscribe from the LinuxSA list:
>  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
>
>
>
>--
>Check out the LinuxSA web pages at http://www.linuxsa.org.au/
>To unsubscribe from the LinuxSA list:
>  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
>

-- 
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page