LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Nick Morrison <nickm@ior.org.au>
  To  : <darylp@au1.ibm.com>, <darylp@au1.ibm.com>
  Date: Wed, 30 Jun 1999 09:54:39 +0930

RE: Banner adverts cont.

Just make sure you've got a

   nameserver 127.0.0.1

line in your /etc/resolv.conf

then add the appropriate lines to /etc/hosts

then make sure your /etc/nsswitch.conf file contains the line

   hosts:      files nisplus nis dns

to set the order it checks hostnames in..

If you've got the DNS server running, all should be well.

Try by pinging www.microsoft.com, which you of course added as 127.0.0.1 ;)

If I'm wrong, let me know :)

> -----Original Message-----
> From: darylp@au1.ibm.com [mailto:darylp@au1.ibm.com]
> Sent: Wednesday, 30 June 1999 9:35
> To: linuxsa@linuxsa.org.au
> 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