1. 云栖社区>
  2. PHP教程>
  3. 正文

Build IPV6 SERVR that supports IPv6 dns

作者:用户 来源:互联网 时间:2017-11-30 20:39:07

dnsipv6buildSERVR

Build IPV6 SERVR that supports IPv6 dns - 摘要: 本文讲的是Build IPV6 SERVR that supports IPv6 dns, USING nginx to build a http server that supports IPv6 dns #usernobody;worker_processes1;#error_loglogs/error.log;#error

USING nginx to build a http server that supports IPv6 dns


#usernobody;
worker_processes1;
#error_loglogs/error.log;
#error_loglogs/error.lognotice;
#error_loglogs/error.loginfo;
#pid logs/nginx.pid;events {
worker_connections1024;
}http {
includemime.types;
default_typeapplication/octet-stream;
#log_formatmain'$remote_addr - $remote_user [$time_local] "$request" '
#'$status $body_bytes_sent "$http_referer" '
#'"$http_user_agent" "$http_x_forwarded_for"';
#access_loglogs/access.logmain;
sendfile on;
#tcp_nopush on;
#keepalive_timeout0;
keepalive_timeout65;
#gzipon;
server {
listen80;
listen[::]:80 ipv6only=on;
server_namelocalhost;
#charset koi8-r;
#access_loglogs/host.access.logmain;
location / {
root html;
indexindex.html index.htm;
}
#error_page404/404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504/50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ /.php$ {
#proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ /.php$ {
#roothtml;
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_indexindex.php;
#fastcgi_paramSCRIPT_FILENAME/scripts$fastcgi_script_name;
#include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ //.ht {
#denyall;
#}
}# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#listen8000;
#listensomename:8080;
#server_namesomenamealiasanother.alias;
#location / {
# root html;
# indexindex.html index.htm;
#}
#}# HTTPS server
#
#server {
#listen443 ssl;
#server_namelocalhost;
#ssl_certificatecert.pem;
#ssl_certificate_keycert.key;
#ssl_session_cacheshared:SSL:1m;
#ssl_session_timeout5m;
#ssl_ciphersHIGH:!aNULL:!MD5;
#ssl_prefer_server_cipherson;
#location / {
# root html;
# indexindex.html index.htm;
#}
#}
}

Payattention tothis( listen[::]:80 ipv6only=on; )


Create dns configuration on Windows Server 2008 such as :


www.test.com and 2001::1008 and www.test.com 192.168.12.13


then on the windowsteminal you can type :


nslookup www.test.com192.168.12.13

, which means that dns server can resolve the domain name www.test.com to an IPv6 address that both of them can communicate.

以上是云栖社区小编为您精心准备的的内容,在云栖社区的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索dns , ipv6 , build , SERVR ,以便于您获取更多的相关知识。