dns

Linux网络基础配置

淺唱寂寞╮ 提交于 2019-12-19 03:58:09
这是看itercast视频的笔记 Linux网络基础配置 以太网连接 在Linux中,以太网接口被命令为:eth0, eth1等, 0,1代表网卡编号 通过lspci命令可以查看网上硬件信息(如果是usb接口,则可能要用lsusb) 命令ifconfig命令用来查看接口信息 ifconfig -a 查看所有接口 ifconfig eth0 查看特定接口 在CentOS中可以用命令ifup,ifdown用来启用,禁用一个接口 ifup eth0,启用eth0网卡 ifdown eth0,禁用eth0网卡 在ubuntu中可以用ifconfig 网卡 up, ifconfig 网卡 down做同样的功能 sudo ifconfig eth0 up,启用eth0网卡 sudo ifconfig eth0 down,禁用eth0网卡 配置网络信息 在CentOS中可以用setup命令配置网络信息 Ubuntu可用以下命令 #设置ip,netmask(子网掩码),broadcast(广播地址) ifconfig eth0 192.168.137.220 netmask 255.255.255.0 broadcast 192.168.137.255 up #设置gateway(网关) route add default gw 192.168.137.254 具体可参考 这篇 文章

Could not resolve host in docker

早过忘川 提交于 2019-12-19 03:44:52
问题 I'm trying to do an jenkins on docker, on my machine (Ubuntu). I have to access to the git repo, in my company. But in jenkins, I get this error : Could not resolve host: gogs.mycompany.com I think this is an DNS error, so I tried to launch my docker like that (with --dns and --dns-search) sudo docker run -p 8080:8080 -p 50000:50000 -v /home/xero/jenkins:/var/jenkins_home --name=myproject-jenkins2 --dns=127.0.1.1 --dns-search=mycompany.lan jenkins Here my /etc/resolv.conf : nameserver 127.0.1

Access to SQL Server 2005 from a non-domain machine using Windows authentication

巧了我就是萌 提交于 2019-12-19 03:22:23
问题 I have a Windows domain within which a machine is running SQL Server 2005 and which is configured to support only Windows authentication. I would like to run a C# client application on a machine on the same network, but which is NOT on the domain, and access a database on the SQL Server 2005 instance. I thought that it would be a simple matter of doing something like this: string connectionString = "Data Source=server;Initial Catalog=database;User Id=domain\user;Password=password";

Access to SQL Server 2005 from a non-domain machine using Windows authentication

混江龙づ霸主 提交于 2019-12-19 03:21:59
问题 I have a Windows domain within which a machine is running SQL Server 2005 and which is configured to support only Windows authentication. I would like to run a C# client application on a machine on the same network, but which is NOT on the domain, and access a database on the SQL Server 2005 instance. I thought that it would be a simple matter of doing something like this: string connectionString = "Data Source=server;Initial Catalog=database;User Id=domain\user;Password=password";

域名错误处理 dns 地址不通

独自空忆成欢 提交于 2019-12-19 02:58:03
http://blog.163.com/sunshine_linting/blog/static/44893323201382361750455/ 可能解决问题的方法一: 在/etc/resolv.conf中添点东西 格式如下: nameserver xxx.xxx.xxx.xxx nameserver xxx.xxx.xxx.xxx 后面的ip地址是dns服务器的地址,可以添加多个地址 如: nameserver 202.106.46.151 然后 service network restart 可能解决问题的方法二: 今天在开发的同事来说,内网不能通过域名访问自己的服务器!然后做了下面的测试发现这样的问题:   [root@Aaronwang ~]# ping www.aaronw.cn   ping: unknown host www.aaronw.cn   [root@Aaronwang ~]#ping 192.168.1.1   PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.   64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.537 ms   64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.430 ms

信息收集

好久不见. 提交于 2019-12-19 02:45:21
先参考别人的思路,后面我整理了一些工具 首先入手域名方面:whois、子域名、备案信息; 其次是入手服务器方面:dns信息、端口服务、真实ip; 然后入手网站程序(web层)方面:网站架构(wappalyzer,云悉)、数据库、中间件、编程语言、敏感目录及敏感信息、源码泄露(搜索引擎+工具)、脆弱系统(网络空间)、旁站查询、C端查询、指纹信息、探测waf; 最后入手企业方面:天眼查、企业信用信息公示系统 maltego信息收集神器挺好用的,建议小伙伴们都试试 1、whois信息 微步在线https://x.threatbook.cn/ 站长之家http://whois.chinaz.com 阿里云域名信息查询https://whois.aliyun.com Kali whois命令 Python-whois模块查询域名信息 2、网站架构识别 kali平台的whatweb https://github.com/nsonaniya2010/SubDomainizer 基于js的域名探测 3、dns信息(通过查询dns我们可以检测是否存在dns域传送漏洞) kali(host/big命令) nslookup http://tool.chinaz.com/dns/ https://tool.lu/dns/ https://dnsdb.io/zh-cn/ dns历史解析 https:/

PHP Shared Sessions across Domain

泄露秘密 提交于 2019-12-19 02:33:26
问题 I have seen a few answers to this on SOF but most of these are concerned with the use of subdomains, of which none have worked for me. The common one being that the use of session.cookie_domain , which from my understanding will only work with subdomains. I am interested in a solution that deals with deals with entirely different domains (and includes the possibility of subdomains). Unfortunately project deadlines being what they are, time is not on my side, so I turn to SOF's expertise and

前端优化方案

末鹿安然 提交于 2019-12-19 02:28:41
什么是前端 性能 优化(what)? 从用户访问资源到资源完整的展现在用户面前的过程中,通过技术手段和优化策略,缩短每个步骤的处理时间从而提升整个资源的访问和呈现速度。 为什么要做前端性能优化(why)? 在构建web站点的过程中,任何一个细节都有可能影响网站的访问速度,如果不了解性能优化知识,很多不利网站访问速度的因素会形成累加,从而严重影响网站的性能,导致网站访问速度变慢,用户体验低下,最终导致用户流失。 1. 从用户角度而言,优化能够让页面加载得更快、对用户的操作响应得更及时,能够给用户提供更为友好的体验。 2. 从服务商角度而言,优化能够减少页面请求数、或者减小请求所占带宽,能够节省可观的资源。 总之,恰当的优化不仅能够改善站点的用户体验并且能够节省相当的资源利用。 从浏览器发起请求到页面能正常浏览都有哪些阶段(process)? 预处理——>DNS解析——>建立连接——>发起请求——>等待响应——>接受数据——>处理元素——>布局渲染 如何优化——性能优化的具体方法? 一)内容层面 1、DNS解析优化 (DNS缓存、减少DNS查找、keep-alive、适当的主机域名) 2、避免重定向(/还是需要的) 3、切分到多个域名 4、杜绝404 二)网络传输阶段 1、减少传输过程中实体的大小 1)缓存 2)cookie优化 3)文件压缩( Accept-Encoding: g

Retrieving what's in the DNS cache

半城伤御伤魂 提交于 2019-12-18 18:26:24
问题 In Windows, is there an API to retrieve the content of the DNS cache. A college of mine asked me this very question but so far I've looked in on MSDN and searched the web but I couldn't find any information on this. His current solution for this is to parse the output of ipconfig /displaydns but I'm sure there is a better way to do it. How does ipconfig reads what's in the cache anyway? 回答1: The DnsQuery function, called with the DNS_QUERY_NO_WIRE_QUERY query option, allows you to look up a

How to Change DNS Servers Programmatically in Windows?

蓝咒 提交于 2019-12-18 17:29:43
问题 I want to change DNS servers programmatically. I don't want to build a DNS server, I just want to change the primary and secondary dns servers automatically. This work needs to be done in Python. 回答1: You can call a command line tool to do it for you with os.system. import os os.system('netsh interface ip set dns "Local Area Connection" static 192.168.0.200') 来源: https://stackoverflow.com/questions/7415771/how-to-change-dns-servers-programmatically-in-windows