Re: local DNS server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/12/06, Tim <ignored_mailbox@xxxxxxxxxxxx> wrote:
> Want to share that one with me?

I don't do a great deal of web browsing, so I've only bothered to stick
a few common annoyances into my DNS server.  Some of them are very old,
I don't know if they still exist.

This is in the named.conf file:

## advert blocking:

zone "adimages.com"             { type master; file  "dead.zone"; };
zone "admonitor.com"            { type master; file  "dead.zone"; };
zone "adsfac.net"               { type master; file  "dead.zone"; };
zone "advertising.com"          { type master; file  "dead.zone"; };
zone "amazingmedia.com"         { type master; file  "dead.zone"; };
zone "casalemedia.com"          { type master; file  "dead.zone"; };
zone "clickagents.com"          { type master; file  "dead.zone"; };
zone "commission-junction.com"  { type master; file  "dead.zone"; };
zone "doubleclick.net"          { type master; file  "dead.zone"; };
zone "doubleclick.com"          { type master; file  "dead.zone"; };
zone "adwords.google.com"       { type master; file  "dead.zone"; };
zone "googlesyndication.com"    { type master; file  "dead.zone"; };
zone "fastclick.net"            { type master; file  "dead.zone"; };
zone "infospace.com"            { type master; file  "dead.zone"; };
zone "mediaplex.com"            { type master; file  "dead.zone"; };
zone "msads.com"                { type master; file  "dead.zone"; };
zone "ads.optusnet.com.au"      { type master; file  "dead.zone"; };
zone "qksrv.net"                { type master; file  "dead.zone"; };
zone "ads.x10.com"              { type master; file  "dead.zone"; };
zone "adserver.yahoo.com"       { type master; file  "dead.zone"; };
#zone "yimg.com"                { type master; file  "dead.zone"; };

And this is the dead.zone file:

$TTL 86400
@       IN      SOA     ns.localdomain.  hostmaster.mail.localdomain. (
                       200 ; serial
                       28800 ; refresh
                       7200 ; retry
                       604800 ; expire
                       86400 ; ttl
                       )

       IN      NS      ns.localdomain.

Yep, that's the whole thing (9 or 10 lines worth, if you want to get rid
of a carriage return).  Look-ups for any of the above domains, or
sub-domains of them, result in an instant "no answer" answer.  This one
DNS server does the job for all the PCs on the network.


Very cool, thanks. This will be handy.

Dotan Cohen

http://what-is-what.com/what_is/spyware.html
http://datip.com

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux