dig

shared libraries of dig and nslookup

偶尔善良 提交于 2021-02-17 06:05:48
问题 I am using centos 6.4 . While doing dig or nslookup, I got below error dig google.com dig: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory here is my ldd of dig '# ldd /usr/bin/dig linux-vdso.so.1 => (0x00007fff5e674000) liblwres.so.80 => /usr/lib64/liblwres.so.80 (0x00007f73d5c1c000) libdns.so.81 => /usr/lib64/libdns.so.81 (0x00007f73d5883000) libbind9.so.80 => /usr/lib64/libbind9.so.80 (0x00007f73d5676000) libisccfg.so.82 =>

dig: error while loading shared libraries: libdns.so.162: cannot open shared object file: No such file or directory

微笑、不失礼 提交于 2020-12-13 04:26:03
问题 Hello I'm on my server and i try to enable https, but i have this error dig: error while loading shared libraries: libdns.so.162: cannot open shared object file: No such file or directory I 've find this similar question but I don't reach to solve my problem. shared libraries of dig and nslookup if i type ldd /usr/bin/dig I see libdns.so.1100 => /usr/lib/arm-linux-gnueabihf/libdns.so.1100 but not libdns.so.162 Can someone help me to solve this my problem? Thanks in advance 来源: https:/

Bind-Utils之dig工具

人走茶凉 提交于 2020-03-19 02:16:13
目录 Bind-Utils之dig工具 参考 dig工具 命令语法 实例演示 Bind-Utils之dig工具 😄 Written by Zak Zhu 参考 马哥linux视频 阮一峰 | DNS原理入门 ( http://www.ruanyifeng.com/blog/2016/06/dns.html ) MLing | 使用dig命令解析域名 ( https://www.cnblogs.com/MLing/p/9199336.html ) dig工具 dig - DNS lookup utility 命令语法 详细用法请 man dig 学习 ! 查询正向解析信息 dig [-t RR_TYPE] FQDN [@SERVER] [QUERY_OPTIONS] 查询反向解析信息 dig -x ADDR [@SERVER] [QUERY_OPTIONS] 模拟主从区域传送 dig [-t axfr | ixfr=N] ZONE_NAME [@SERVER] 实例演示 详见: << 搭建BIND主从服务器 >>文章中" 测试服务 "目录下内容 来源: https://www.cnblogs.com/zakzhu/p/12521635.html

数位dp回顾

自闭症网瘾萝莉.ら 提交于 2020-03-12 06:43:17
不会数位dp的同学点这里 数位dp教学 # include <bits/stdc++.h> using namespace std ; # define ll long long # define lb long double # define INF 0x3f3f3f3f const int maxn = 100035 ; const int mod = 1e6 + 7 ; int len ; ll dp [ 15 ] [ 2 ] [ 2 ] [ 12 ] [ 10 ] ; // dp[i][j][k][l][m]表示当前搜到第i位,且前导0与最高位限制状态为j和k, 且要统计的数字是l, 并且已经产生m个dig的答案 int a [ 15 ] ; // pos代表当前搜到第几位,lead表示有无前导0, limit表示当前位是有限制, dig表示要统计是的数字, sum表示已经产生的dig的数量 ll dfs ( int pos , int lead , int limit , int dig , int sum ) { if ( pos > len ) return sum ; // 如果搜完了所有位数则返回答案sum if ( ! limit && ! lead && dp [ pos ] [ lead ] [ limit ] [ dig ] [ sum ] != - 1

[LeetCode] 738. Monotone Increasing Digits 单调递增数字

落爺英雄遲暮 提交于 2020-03-07 13:08:58
Given a non-negative integer N , find the largest number that is less than or equal to N with monotone increasing digits. (Recall that an integer has monotone increasing digits if and only if each pair of adjacent digits x and y satisfy x <= y .) Example 1: Input: N = 10 Output: 9 Example 2: Input: N = 1234 Output: 1234 Example 3: Input: N = 332 Output: 299 Note: N is an integer in the range [0, 10^9] . 这道题给了一个非负数,让我们求一个数字小于等于给定数字,且该数字各位上的数字是单调递增的。先来分析题目中给的几个例子吧,首先如果是 10 的话,由于1大于0,所以不是单调自增的,那么返回的数就是9。第二个例子是 1234,各位上已经满足单调自增的条件了,返回原数即可。第三个例子是 332,最后一位2小于之前的3,那么此时将前面位减1,先变成322,再往前看,还是小于前面的3

C# 截取屏幕

不羁的心 提交于 2020-03-05 06:35:39
try { //获取屏幕宽 int iWidth = Screen.PrimaryScreen.Bounds.Width; //获取屏幕高 int iHeight = Screen.PrimaryScreen.Bounds.Height; //按照屏幕宽高创建位图 Image img = new Bitmap(iWidth, iHeight); //从一个继承自Image类的对象中创建Graphics对象 Graphics gc = Graphics.FromImage(img); //抓屏并拷贝到myimage里 gc.CopyFromScreen(new System.Drawing.Point(0, 0), new System.Drawing.Point(0, 0), new Size(iWidth, iHeight)); //this.BackgroundImage = img; //保存 string path = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } System.Windows.Forms.SaveFileDialog dig

DNS信息收集工具dig使用

白昼怎懂夜的黑 提交于 2020-03-03 06:55:24
Dig 是域信息搜索器的简称( Domain Information Groper ),使用dig命令可以执行查询域名相关的任务 常见域名记录: A(主机记录 把一个域名解析成IP地址) C name(别名记录 把一个域名解析到另一个域名) NS(这个域的域名服务器的地址记录) MX(邮件交换记录 指向这个域的FTP服务器的地址) ptr(把IP解析成域名) 下图是dns查询过程 Dig常用命令以及使用 1. dig -h 简单看一下参数 man dig 可以看到更多详细的使用 2 .解析域名 dig 域名 解析域名 例如:dig www.sina.com dig 域名 @dns服务器 例如:dig www.sina.com @8.8.8.8 下面我指定了DNS服务器 3. 查指定的域名记录 dig sina.com @8.8.8.8 any any参数指这个域名下的所有域名记录 还有其他参数,比如mx,a等 4. 反向解析 dig -x ip @dns服务器 5. 获得DNS服务器的bind版本信息 dig +noall +answer txt chaos VERSION.BIND @example.com noall:不输出任何内容 answer:只对结果输出 6. 比如当域名被劫持的情况,可以使用这个命令 DNS追踪 dig +trace example.com 来源:

CTU Open Contest 2019 B. Beer Bill

↘锁芯ラ 提交于 2020-02-23 12:25:29
题目来源: 点击这里 题目如下: Pub bills were introduced into daily life long before computers even existed. People tend tothink that once a bill has been paid, it is no more than a pathetic paper scrap not worthy ofany more attention. The fact, completely overlooked by established computer science streams,is that the scribblings on the bill represent highly formalized and often quite nontrivial textsuitable for many formal language applications and analyses. A bill consists of lines of characters. Each line is either a priced line or a rake line. A pricedline begins with a positive integer — the price of a