Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dns [2008/09/10 11:19]
a
dns [2016/03/07 12:12] (current)
zagi
Line 1: Line 1:
-====== DNS is the root of all evil! ======+====== DNS is the "."  of all evil! ======
 ===== DNS  Terminology ===== ===== DNS  Terminology =====
    * **Zone** - The domain namespace is divided into regions called zones. For instance, if you have example.com, you have the example section, or zone, of the com domain.    * **Zone** - The domain namespace is divided into regions called zones. For instance, if you have example.com, you have the example section, or zone, of the com domain.
Line 24: Line 24:
   * [[dns:djbdns|Tips for setting up djbdns]]   * [[dns:djbdns|Tips for setting up djbdns]]
  
 +
 +===== dig ===== 
 +~./digrc
 +  +nostats +nocomments +nocmd +noquestion +recurse
 +   
 +
 +
 +===== Speeding Up DNS Access In Regions With Very Low Infrastructure (pdnsd) =====
 +
 +   apt-get install pdnsd
 +
 +<code |/etc/default/pdnsd>
 +START_DAEMON=yes
 +</code>
 +
 +<code |/etc/pdnsd.conf>
 +global {
 +        perm_cache=2048;
 +        cache_dir="/var/cache/pdnsd";
 +        max_ttl=604800;
 +        run_as="pdnsd";
 +        paranoid=on;
 +        status_ctl=on;
 +        server_port=53;
 +        server_ip="127.0.0.1";
 +}
 +
 +# server {
 +#    label="opendns";
 +#    ip = 208.67.220.220,208.67.222.222;
 +#}
 +
 +server {
 +        ip="8.8.4.4";
 +        timeout=60;
 +        interval=900;
 +        uptest=none;
 +        ping_timeout=500;
 +        purge_cache=off;
 +        caching=on;
 +}
 +
 +server {
 +    label="resolvconf";
 +}
 +source {
 +        ttl=86400;
 +        owner="localhost.";
 +        serve_aliases=on;
 +        file="/etc/hosts";
 +}
 +</code>
 +
 +<code |/etc/resolv.conf>
 +nameserver 127.0.0.1
 +</code>
 +
 +If your PC gets its nameserver from a DHCP server, you will need to reconfigure dhclient.conf to make 127.0.0.1 your primary domain server.
 +
 +Here is the file you need to edit: ''/etc/dhcp3/dhclient.conf'', uncomment or add the following line ...
 +
 +   prepend domain-name-servers 127.0.0.1;
 +
 +If you got the static ip address, in this case you just need to edit your ''/etc/resov.conf'' file and add the following entries ..
 +
 +   nameserver 127.0.0.1
  
  
Line 37: Line 103:
   spoof  warn   spoof  warn
   reorder on   reorder on
 +
 +===== Reverse whois lookups =====
 +
 + If we want to check the whois info for a reverse zone, a special whois lookup is requred.
 + For example, if we have the network 212.18.32.0/24 and want to check its RIPE data, the following
 + whois query would be performed:
 +
 +<code>
 +whois -h whois.ripe.net 32.18.212.in-addr.arpa
 +</code>
 +
 +or\\
 +
 +<code>
 +telnet whois.ripe.net 43
 +32.18.212.in-addr.arpa
 +</code>
 +
 +[[spam|DNS greylisting]]
 +
 +[http://pgl.yoyo.org/adservers/]
 +
dns.1221038342.txt.gz ยท Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready