V2Fly.orgV2Fly.org
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
Quick Start
Config Reference
Config Reference (v5, WIP)
Tools
Developer Guide
New concise guide
  • 简体中文
  • English
GitHub
  • Config Reference

    • Configuration File Format
    • Environment variables
    • DNS Server
    • Routing
    • Policy
    • Inbounds
    • Outbounds
    • Transport
    • Remote control API
    • Stats
    • Reverse Proxy
    • Multiple config
    • "Fake" DNS server
      • FakeDnsObject
      • "Fake" DNS server mechanism
    • Browserforwarder
    • Observatory
  • Protocols

    • Blackhole
    • DNS
    • Dokodemo-door
    • Freedom
    • HTTP
    • Socks
    • VMess
    • Shadowsocks
    • Trojan
    • VLESS
    • Loopback
    • Hysteria2
  • Transport

    • TCP
    • mKCP
    • WebSocket
    • HTTP/2
    • QUIC
    • DomainSocket
    • gRPC
    • Hysteria2
  • Service

    • Stats
    • Policy
    • Browser Forwarder
    • Burst Observatory
    • Background Observatory
    • Tun
    • Subscription Manager

"Fake" DNS server

FakeDnsObject

FakeDnsObject corresponds to the fakedns item of the configuration file. (4.35.0+)

{
    "ipPool": "240.0.0.0/8",
    "poolSize": 65535
}

ipPool: string: CIDR

The "Fake" DNS server's allocated IP address space. The address assigned by the virtual DNS server will conform to this CIDR expression.

poolSize: number

The number of IP-domain mappings memorized by the "fake" DNS server.

"Fake" DNS server mechanism

The "Fake" DNS server will return a fictitious resolution result whose IP address in its own ipPool is the domain name and remember the relationship between the domain name and the fictitious resolution result.

When the client program requests to connect to the host pointed to by this IP based on this analysis result, the fakedns traffic detection module corresponding to [inbounds] (inbounds.md) will restore the target address to the corresponding domain name.

Edit this page on GitHub
Last Updated:
Contributors: transifex-integration[bot]
Prev
Multiple config
Next
Browserforwarder