泡泡DNS

Others3个月前发布 ydddj
11 0

效果

外网返回fackeip,国内直接返回真实结果

泡泡DNS

添加静态路由

假设surge地址在192.168.31.11,添加静态路由 198.18.0.0/16 ⇒ 192.168.31.11

泡泡DNS

关闭DNS劫持

泡泡DNS

部署泡泡

unraid 模板

<?xml version="1.0"?>
<Container version="2">
  <Name>paopaodns</Name>
  <Repository>sliamb/paopaodns</Repository>
  <Registry><https://hub.docker.com/r/sliamb/paopaodns/></Registry>
  <Network>bridge</Network>
  <MyIP/>
  <Shell>sh</Shell>
  <Privileged>false</Privileged>
  <Support><https://hub.docker.com/r/sliamb/paopaodns/></Support>
  <Project/>
  <Overview><https://github.com/kkkgo/PaoPaoDNS> , unbound , dnscrypt-proxy , mosdns , redis , geoip&#xD;
&#xD;
Converted By Community Applications   Always verify this template (and values)  against the support page for the container&#xD;
&#xD;
<https://hub.docker.com/r/sliamb/paopaodns/></Overview>
  <Category/>
  <WebUI/>
  <TemplateURL/>
  <Icon><https://raw.githubusercontent.com/kkkgo/PaoPaoDNS/main/img.jpg></Icon>
  <ExtraParams/>
  <PostArgs/>
  <CPUset/>
  <DateInstalled>1711272154</DateInstalled>
  <DonateText/>
  <DonateLink/>
  <Requires/>
  <Config Name="Container Path 1" Target="/data" Default="" Mode="rw" Description="" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/paopaodns</Config>
  <Config Name="Container Port 1" Target="53" Default="53" Mode="tcp" Description="" Type="Port" Display="always" Required="false" Mask="false">53</Config>
  <Config Name="Container Port 2" Target="53" Default="53" Mode="udp" Description="" Type="Port" Display="always" Required="false" Mask="false">53</Config>
  <Config Name="Container Port 3" Target="5304" Default="5304" Mode="tcp" Description="" Type="Port" Display="always" Required="false" Mask="false">5304</Config>
  <Config Name="Container Port 4" Target="5304" Default="5304" Mode="udp" Description="" Type="Port" Display="always" Required="false" Mask="false">5304</Config>
  <Config Name="Container Port 5" Target="7889" Default="7889" Mode="tcp" Description="" Type="Port" Display="always" Required="false" Mask="false">7889</Config>
  <Config Name="Container Variable 1" Target="UPDATE" Default="weekly" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">weekly</Config>
  <Config Name="Container Variable 2" Target="DNS_SERVERNAME" Default="PaoPaoDNS,blog.03k.org" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">DuoduoDNS</Config>
  <Config Name="Container Variable 3" Target="DNSPORT" Default="53" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">53</Config>
  <Config Name="Container Variable 4" Target="CNAUTO" Default="1" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
  <Config Name="Container Variable 5" Target="CNFALL" Default="1" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
  <Config Name="Container Variable 6" Target="CN_TRACKER" Default="1" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
  <Config Name="Container Variable 7" Target="USE_HOSTS" Default="" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
  <Config Name="Container Variable 10" Target="SERVER_IP" Default="" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">192.168.31.198</Config>
  <Config Name="Container Variable 11" Target="CUSTOM_FORWARD" Default="IP:PORT" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">198.18.0.2:53</Config>
  <Config Name="Container Variable 13" Target="AUTO_FORWARD" Default="" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
  <Config Name="Container Variable 14" Target="AUTO_FORWARD_CHECK" Default="1" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
  <Config Name="Container Variable 15" Target="USE_MARK_DATA" Default="" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">yes</Config>
  <Config Name="Container Variable 18" Target="QUERY_TIME" Default="2000ms" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">2000ms</Config>
  <Config Name="Community Applications Conversion" Target="Community_Applications_Conversion" Default="true" Mode="{3}" Description="" Type="Variable" Display="always" Required="false" Mask="false">true</Config>
  <Config Name="Host Key 23" Target="TZ" Default="" Mode="" Description="" Type="Variable" Display="always" Required="false" Mask="false">Asia/Shanghai</Config>
</Container>

Docker Compose:

version: '3.8'
services:
  paopaodns:
    image: sliamb/paopaodns
    container_name: paopaodns
    networks:
      - bridge
    volumes:
      - /mnt/user/appdata/paopaodns:/data
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "5304:5304/tcp"
      - "5304:5304/udp"
      - "7889:7889/tcp"
    environment:
      - UPDATE=weekly
      - DNS_SERVERNAME=DuoduoDNS
      - DNSPORT=53
      - CNAUTO=yes
      - CNFALL=yes
      - CN_TRACKER=yes
      - USE_HOSTS=yes
      - SERVER_IP=192.168.31.198
      - CUSTOM_FORWARD=198.18.0.2:53
      - AUTO_FORWARD=yes
      - AUTO_FORWARD_CHECK=yes
      - USE_MARK_DATA=yes
      - TZ=Asia/Shanghai
networks:
  bridge:
    driver: bridge

DHCP分配DNS到paopao

泡泡DNS

 

转:https://zkl2333.notion.site/DNS-f45e0ee194564a1683d240d91cee4465

© 版权声明

相关文章