Как протестировать URL HTTPS с данным IP-адресом

Все, что необходимо сделать, выполняется dcpromo на втором сервере для добавления его к домену. Это сделает это вторым DC, и это сможет аутентифицировать Ваших пользователей.

Это - простой ответ. Необходимо читать на AD, потому что могут быть важные детали, которые Вы могли пропустить. Если Ваш текущий DC является сервером DNS, второй должен также быть сервером DNS. Если у Вас нет определенной причины сделать иначе, они должны быть интегрированным AD DNS.

81
задан 31 October 2012 в 11:55
4 ответа

Думаю, я нашел решение, просмотрев руководство по cURL:

curl https://DOMAIN.EXAMPLE --resolve 'DOMAIN.EXAMPLE:443:192.0.2.17'

Добавлено в [curl] 7.21.3. Поддержка удаления добавлена ​​в 7.42.0.

из Объяснение CURLOPT_RESOLVE

122
ответ дан 28 November 2019 в 19:27

Вы можете изменить / etc / hosts, чтобы сервер думал, что домен расположен на определенном IP.

Это синтаксис:

192.168.10.20 www.domain.tld

Это заставит cURL использовать IP-адрес без взлома SSL-сертификата.

11
ответ дан 28 November 2019 в 19:27

Если вы запускаете curl в Windows, используйте двойные кавычки

curl https://DOMAIN.TLD --resolve "DOMAIN.TLD:443:IP_ADDRESS"

curl DOMAIN.TLD --resolve "DOMAIN.TLD:80:IP_ADDRESS"

Вы можете пропустить схему / протокол заранее, но вы не можете пропустить номер порта в строке --resolve .

4
ответ дан 28 November 2019 в 19:27

বর্তমানে লোকটি বর্তমানে সর্বাধিক উর্ধ্বমুখী উত্তরের জন্য এন্ট্রি দিচ্ছে কারণ তারা কেবলমাত্র প্রোগ্রামিক উপাদানটির একটি লিঙ্ক অন্তর্ভুক্ত করেছে:

--resolve <host:port:address>

    Provide  a  custom  address  for  a specific host and port pair. Using
    this, you can make the curl requests(s) use a specified address and 
    prevent the otherwise normally resolved address to be used. Consider 
    it a sort of /etc/hosts alternative provided on the command line. 
    The port number should be the number used for the specific protocol 
    the host will be used for. It means you need several entries if you 
    want to provide address for the same host but different ports.

    The provided address set by this option will be used even if -4, 
    --ipv4 or -6, --ipv6 is set to make curl use another IP version.

    This option can be used many times to add many host names to resolve.

    Added in 7.21.3.

তবে প্রদত্ত সীমাবদ্ধতার কারণে ("এটি এর অর্থ যদি আপনি একই হোস্টের জন্য তবে বিভিন্ন পোর্টের ঠিকানা সরবরাহ করতে চান তবে আপনার বেশ কয়েকটি এন্ট্রি প্রয়োজন ""), আমি অন্য একটি নতুন বিকল্প বিবেচনা করব যা একই সাথে উভয় অনুবাদ করতে পারে:

--connect-to <HOST1:PORT1:HOST2:PORT2>

    For  a request to the given HOST:PORT pair, connect to 
    CONNECT-TO-HOST:CONNECT-TO-PORT instead. This option is suitable 
    to direct requests at a specific server, e.g. at a specific cluster 
    node in a cluster of servers. This option is only used to establish 
    the network connection. It does NOT affect the hostname/port that 
    is used for TLS/SSL (e.g. SNI, certificate verification) or for 
    the application protocols. "host" and "port" may be the empty string, 
    meaning "any host/port". "connect-to-host" and "connect-to-port" 
    may also be the empty string, meaning "use the request's original host/port".

    This option can be used many times to add many connect rules.

    See also --resolve and -H, --header. 
    Added in 7.49.0.
7
ответ дан 28 November 2019 в 19:27

Теги

Похожие вопросы