Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dns [2009/05/02 10:42] greebo |
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 76: | Line 123: | ||
[[spam|DNS greylisting]] | [[spam|DNS greylisting]] | ||
+ | [http:// | ||