pdnsd.conf
config file for pdnsd (along with resolvconf.conf
for openresolv framework) that might be useful.
These config files are tested on Arch Linux, and may or may not work with other Linux distributions.
Licensed under The MIT License by Xiaodu, Du9L.com.
-
Make sure you have pdnsd and openresolv installed.
On Arch Linux that would be
# pacman -S pdnsd openresolv
(# = sudo). -
Modify
pdnsd.conf
according to your own network and ISP. For example,-
If you don't have IPv6, you can delete (or comment out) the
run_ipv4=off;
line. -
If you prefer IPv6 over IPv4, you can delete all the IPv4
ip
lines. -
Finally, if your ISP pollutes NXDOMAIN results, you can fill in the
reject
line inlocal
block. Refer to dnsmasq-china-list/bogus-nxdomain.china.conf for information about some Chinese ISPs.
-
-
Put
pdnsd.conf
andresolvconf.conf
into/etc/
. -
Update openresolv with
# resolvconf -u
, then start pdnsd daemon.