Skip to content

What does -host-ip and -host-name - mean for server-tls? #1591

Closed Answered by pymumu
McSinyx asked this question in Q&A
Discussion options

You must be logged in to vote

The -host-ip parameter is used to explicitly set the IP address to the upstream server to avoid bootstrap query, similar to /etc/hosts.
For example, server-tls dns.google -host-ip=1.2.3.4 actually same as server-tls 1.2.3.4 -hostname dns.google

  1. -host-name corresponds to the hostname of tls, which is SNI.
    set -host-name to - actually lets smartdns query without setting SNI, the parameter takes effect on DOT and DOH servers.
    For daily use, most of these parameters will be set according to the domain name. Just configure the upstream server using the URL format, such as
server-tls dns.google
server https://dns.google

The following three configurations are actually the same.

server tls:…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@McSinyx
Comment options

Answer selected by McSinyx
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants