How to use custom dns override ?

Expected Behaviour:

I lived in china mainland, and i want use some china dns resolver to get best CDN result.

I tried use this project in pi-hole, there were generated some conf in /etc/dnsmasq.d/ forlder,
but pi-hole service can't start anymore.
could anyone help me ?

Debug Token:

  • pihole-FTL.service - LSB: pihole-FTL daemon
    Loaded: loaded (/etc/init.d/pihole-FTL; generated)
    Active: active (exited) since Sat 2019-09-14 10:59:15 CST; 17s ago
    Docs: man:systemd-sysv-generator(8)
    Process: 1206 ExecStart=/etc/init.d/pihole-FTL start (code=exited, status=0/SUCCESS)

Sep 14 10:59:15 debian systemd[1]: Starting LSB: pihole-FTL daemon...
Sep 14 10:59:15 debian pihole-FTL[1206]: Not running
Sep 14 10:59:15 debian su[1249]: (to pihole) root on none
Sep 14 10:59:15 debian su[1249]: pam_unix(su:session): session opened for user pihole by (uid=0)
Sep 14 10:59:15 debian pihole-FTL[1206]: dnsmasq: bad address at line 1 of /etc/dnsmasq.d/apple.china.119.29.29.29,223.5.5.5,114.114.11
Sep 14 10:59:15 debian su[1249]: pam_unix(su:session): session closed for user pihole
Sep 14 10:59:15 debian systemd[1]: Started LSB: pihole-FTL daemon.

sorry for my poor english

You'll have to ask the author of that, it may not be compatible with Pi-hole and it uses it's own install script.

You have not done the installation correctly. You should have installed a new file named google.china.conf in directory /etc/dnsmasq.d The file should have the contents specified in the link you provided - it looks like this on the first few lines:

server=/a1.mzstatic.com/114.114.114.114
server=/a2.mzstatic.com/114.114.114.114
server=/a3.mzstatic.com/114.114.114.114
server=/a4.mzstatic.com/114.114.114.114

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.