Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
dns [2008/11/09 01:36] a |
dns [2016/03/07 12:12] (current) zagi |
||
|---|---|---|---|
| Line 23: | Line 23: | ||
| ===== djbdns ===== | ===== djbdns ===== | ||
| * [[dns: | * [[dns: | ||
| + | |||
| + | |||
| + | ===== dig ===== | ||
| + | ~./digrc | ||
| + | +nostats +nocomments +nocmd +noquestion +recurse | ||
| + | |||
| Line 29: | Line 35: | ||
| | | ||
| - | <code |h / | + | <code |/ |
| START_DAEMON=yes | START_DAEMON=yes | ||
| </ | </ | ||
| - | <code |h/ | + | <code |/ |
| + | global { | ||
| + | perm_cache=2048; | ||
| + | cache_dir="/ | ||
| + | max_ttl=604800; | ||
| + | run_as=" | ||
| + | paranoid=on; | ||
| + | status_ctl=on; | ||
| + | server_port=53; | ||
| + | server_ip=" | ||
| + | } | ||
| + | |||
| + | # server { | ||
| + | # label=" | ||
| + | # ip = 208.67.220.220, | ||
| + | #} | ||
| server { | server { | ||
| - | label="opendns"; | + | ip="8.8.4.4"; |
| - | | + | timeout=60; |
| + | interval=900; | ||
| + | uptest=none; | ||
| + | ping_timeout=500; | ||
| + | purge_cache=off; | ||
| + | caching=on; | ||
| + | } | ||
| + | |||
| + | server { | ||
| + | | ||
| + | } | ||
| + | source { | ||
| + | ttl=86400; | ||
| + | owner=" | ||
| + | serve_aliases=on; | ||
| + | file="/ | ||
| } | } | ||
| </ | </ | ||
| - | <code |h / | + | <code |/ |
| nameserver 127.0.0.1 | nameserver 127.0.0.1 | ||
| </ | </ | ||
| + | |||
| + | 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: ''/ | ||
| + | |||
| + | | ||
| + | |||
| + | If you got the static ip address, in this case you just need to edit your ''/ | ||
| + | |||
| + | | ||
| Line 56: | 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/ | ||
| + | whois query would be performed: | ||
| + | |||
| + | < | ||
| + | whois -h whois.ripe.net 32.18.212.in-addr.arpa | ||
| + | </ | ||
| + | |||
| + | or\\ | ||
| + | |||
| + | < | ||
| + | telnet whois.ripe.net 43 | ||
| + | 32.18.212.in-addr.arpa | ||
| + | </ | ||
| + | |||
| + | [[spam|DNS greylisting]] | ||
| + | |||
| + | [http:// | ||
| + | |||

