dns

Laravel Homestead and Nginx subdomain wildcard

那年仲夏 提交于 2020-01-05 11:10:14
问题 i have problem with nginx and homestead. I can't make dynamic subdomain working. I tried everything here is my configuration. OS: Ubuntu 14.04 LTS 64bit Guest OS: Ubuntu 14.04 LTS 32bit ( Vagrant with Homestead ) Homestead.yaml ip: "192.168.10.10" memory: 512 cpus: 1 provider: virtualbox authorize: /home/user/.ssh/id_rsa.pub keys: - /home/user/.ssh/id_rsa folders: - map: /home/user/Projects to: /home/vagrant/Projects sites: - map: businesspage.local to: /home/vagrant/Projects/BusinessPage

Send from free Gmail account via PHP [duplicate]

大憨熊 提交于 2020-01-05 10:18:23
问题 This question already has answers here : Send email using the GMail SMTP server from a PHP page (14 answers) Closed 6 years ago . I want to send email via PHP script using my free Gmail as the From sender. How can this be done such that the SPF records will be valid (as if the mail was actually sent from Gmail)? 回答1: There are many other libraries as well. Some of them are : http://phpmailer.worxware.com/ http://pear.php.net/package/Mail (This is Pear package) https://github.com/denvertimothy

Bypass DNS lookup and submit URL to proxy

我只是一个虾纸丫 提交于 2020-01-05 10:17:23
问题 I have Java application that uses Apache HttpComponents to make web request. I have configured the application to use Proxy Servers using the JVM Property java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=3132 Currently my java application client makes DNS lookup in which it will fail. I want the Proxy to do the DNS resolution just like how web browsers do in automatic Proxy configuration mode (with .pac files). 回答1: Try looking here: http://hc.apache.org/httpcomponents-client-ga/httpclient

WEB 集群与负载均衡(一)基本概念-上

泪湿孤枕 提交于 2020-01-05 09:56:49
 CDN技术详解 一本好的入门书是带你进入陌生领域的明灯,《CDN技术详解》绝对是带你进入CDN行业的那盏最亮的明灯。因此,虽然只是纯粹的重点抄录,我也要把《CDN技术详解》的精华放上网。公诸同好。 第一章 引言 “第一公里”是指万维网流量向用户传送的第一个出口,是网站服务器接入互联网的链路所能提供的带宽。这个带宽决定了一个 网站能为用户提供的访问速度和并发访问量。如果业务繁忙,用户的访问数越多,拥塞越严重,网站会在最需要向用户提供服务时失去用户。(还有“中间一公里” 和“最后一公里”分别代表互联网传输传输和万维网流量向用户传送的最后一段接入链路) 从互联网的架构来看,不同网络之间的互联互通带宽,对任何一个运营商网络的流量来说,占比都比较小,收敛比是非常高的,因此这里通常都是互联网传输中的拥堵点(运营商互联互通的问题) 其次是骨干网堵塞问题,由于互联网上的绝大部分流量都要通过骨干网络进行传输,这就要求骨干网络的承载能力必须与互联网 的应用同步发展,但实际上两者并不是同步的,当骨干网络的升级和扩容滞后于互联网之上的应用的发展时,就会阶段性地使得大型骨干网的承载能力成为影响互联 网性能的瓶颈(区域互联互通问题,骨干网带宽瓶颈) 在互联网领域有一个“8秒定律”,用户访问一个网站时,如果等待网页打开的时间超过8秒,会有超过30%的用户放弃等待 使用CDN会极大简化网站的系统维护工作量

How to set dns server in node.js resolve query?

回眸只為那壹抹淺笑 提交于 2020-01-04 05:57:14
问题 I'm trying to set Google DNS server 8.8.8.8 in Node.js resolve query. What is the correct way to do so? In command line usually we can do the following: $ nslookup stackoverflow.com 8.8.8.8 Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: stackoverflow.com Address: 151.101.1.69 Address: 151.101.65.69 Address: 151.101.129.69 Address: 151.101.193.69 But its not quite clear how to make same approach in Node.js require('dns').resolve('stackoverflow.com', function (err,

docker repo resolving error during image build ERROR (check repositories file)

折月煮酒 提交于 2020-01-04 05:27:17
问题 I have a problem with building docker image and tried different DNS option but seems no luck. Docker version 1.9.1, build a34a1d5 Repos are alive. For running container I used docker run --dns=192.168.1.1 -d -ti --name alpine3 alpine tag and dns works weel there. For images I added my DNS IP 192.168.1.1 to /etc/docker/daemon.json and /etc/default/docker.io and to docker eth DNS but this didn't help. And I restarted docker service many times and re-pulled alpine image. I even created local

DNS checking using perl and Net::DNS

旧时模样 提交于 2020-01-04 03:45:20
问题 So, in the otter book, there is a small script(see page 173) whose purpose is to iteratively check DNS servers to see if they are returning the same address for a given hostname. However, the solution given in the book works only when the host has a static IP address. How would I write this script if I wanted it to work with hosts that have multiple addresses associated with them? Here is the code: #!/usr/bin/perl use Data::Dumper; use Net::DNS; my $hostname = $ARGV[0]; # servers to check my

转 web前端性能分析--原理篇

◇◆丶佛笑我妖孽 提交于 2020-01-04 02:45:25
转自http://blog.csdn.net/five3/article/details/7686715 web前端性能: 即是web用户在访问一个页面时所要花费的时间总和。即一个完全意义上的用户响应时间,相对于服务器的响应时间而言还会包括更多的内容和影响因素。那么一个web页面的完整请求包括了哪些部分的时间总和就是web前段性能分析和优化所需要了解的基础知识,先了解一下用户从浏览器访问一个url后到页面完全展示所有内容的整个过程吧。 页面的请求过程: 1、浏览器的url请求 2、递归寻找DNS服务器 3、连接目标IP并建立TCP连接 4、向目标服务器发送http请求 5、web服务器接收请求后处理 6、web服务器返回相应的结果【无效、重定向、正确页面等】 7、浏览器接收返回的http内容 ================================前端解析分割线=========================================== 8、开始解析html文件,当然是自上而下,先是头部,后是body 9、当解析到头部css外部链接时,同步去下载,如果遇到外部js链接也是下载【不过js链接不建议放在头部,因为耽误页面第一展现时间】 10、接着解析body部分,边解析边开始生成对应的DOM树,同时等待css文件下载 11、一旦css文件下载完毕

Ubuntu修改ip和DNS

核能气质少年 提交于 2020-01-04 02:42:03
原因:采用虚拟机模拟分布式场景,为防止IP冲突,无法联网问题,需要设置好主机名、IP、DNS配置。 修改主机名 修改 cloud.cfg 防止重启后主机名还原 vi /etc/cloud/cloud.cfg # 该配置默认为 false,修改为 true 即可 preserve_hostname: true 修改主机名 hostnamectl set-hostname deployment # 修改主机名 cat >> /etc/hosts << EOF 192.168.136.133 deployment EOF # 配置hosts 修改 IP 编辑 vi /etc/netplan/50-cloud-init.yaml 配置文件,修改内容如下:(注意:1.冒号后多个空格 2.格式问题 3.网关没有中括号) network: ethernets: ens33: addresses: [ 192.168.136.133/24 ] gateway4: 192.168.136.2 nameservers: addresses: [ 192.168.136.2 ] version: 2 使用 netplan apply 命令让配置生效 修改 DNS vi /etc/systemd/resolved.conf #取消 DNS 行注释,并增加 DNS 配置如: DNS=114.114.114

互联网那些事——DNS

独自空忆成欢 提交于 2020-01-04 00:27:58
DNS是互联网基础服务,没有DNS,互联网就几乎进入瘫痪状态了。DNS对于很多非计算机专业的同学来说,了解程度可能仅限于一个网址,但你要跟他们说域名,很多人就不知所云了,这就是DNS作为互联网基础设施,作为底层基础服务带来透明化,虽然带给了大家极大的方便,人们几乎时时刻刻都在用这个服务,可很少有人知道自己在用这个服务,跟不会关心这个服务是如何搭建和工作的。 作为计算机专业人员,如果不知道DNS就很麻烦了,至少在某些时候,出现的问题会让你丈二和尚摸不着头脑,因为和DNS相关的网络问题时常会不经意的跳出来和你不期而遇,如果你不知道有DNS这个玩意,或者对DNS知之甚少,说不定会让你兜个大圈子还不一定找到解决的办法。 DNS是域名服务的缩写,提供域名服务的服务器就是域名服务器,我们访问的网站所对应的IP地址就是由DNS解析后,把对应的IP返回给浏览器的,这可能是大家使用DNS最多的方式吧,那这个DNS是在哪里呢,我怎么从来不知道我在用DNS,我用的DNS是谁提供的呢,其实回答这个问题很简单,看下面这张图,你就明白了: 上面圈定的地方可以查看自己所用DNS的IP地址。 如果你想对DNS了解的更多一些,仅仅知道这些是不够的,DNS是运行在互联网上的基础服务,全世界仅有几十台根域名服务器,这还是最近几年新增了N台根域名服务器后的数量。在几年前,全世界仅有13台根域名服务器