摘要: 添加系统开机ssh systemctl enable ssh ystemctl enable ssh Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install. 阅读全文
posted @ 2022-10-13 14:50 查灵海 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 下面是可用的分类和相关的简明描述,以后的BIND版本中会包含更多的分类:default: 默认分类,没有分类的日志都使用这个分类的配置.general: 没有分类的日志都记录在此分类中.database: 服务器内部使用存储zone和缓存数据.security: 允许/拒绝的请求.config: 配 阅读全文
posted @ 2019-03-27 09:28 查灵海 阅读(250) 评论(0) 推荐(0) 编辑
摘要: apt-get install bind9 bind9-doc dnsutils named-checkconf //测试配置文件 dig 在dnsutils 阅读全文
posted @ 2019-03-06 17:20 查灵海 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 修改/etc/apt/sources.list文件,再执行apt-get update更新索引 中科大镜像站 阅读全文
posted @ 2019-03-06 10:07 查灵海 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 最新的kali linux2018已经不再支持原有的vmwaretools,即使安装了也不能实现主机与客户机之间的交互(比如从主机复制文件到客户机)。安装open-vm-tools替代vm tools能够完美实现“自动适应客户机”(即自动适应客户机的分辨率,随意改变窗口大小),和与宿主机之间文件的复 阅读全文
posted @ 2018-12-28 10:53 查灵海 阅读(1610) 评论(0) 推荐(0) 编辑
摘要: ddns-update-style none; option domain-name-servers 125.219.192.2,222.88.88.88,202.102.224.68,211.84.208.2; default-lease-time 86400; max-lease-time 17 阅读全文
posted @ 2018-07-05 09:09 查灵海 阅读(732) 评论(0) 推荐(0) 编辑
摘要: sort -n -t '.' -k 4 dhcpd.leases | egrep 'ip地址' -c 统计该ip段数量 sort -n -t '.' -k 4 dhcpd.leases | egrep 'ip地址' 显示该ip段 阅读全文
posted @ 2018-06-26 16:38 查灵海 阅读(122) 评论(0) 推荐(0) 编辑
摘要: cat dhcpd.leases|grep -o '\<[0-9a-f]\{2\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}:[0-9a-f]\{2\}\>' grep -A 5 可以显示匹配内容以及后面的5行内容 grep -B 阅读全文
posted @ 2018-06-20 08:21 查灵海 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 查了查还是这个命令 cat dhcpd.leases|grep -o '\<[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\>' -c cat dhcpd.leases|grep -o '\<172\.[0-9]\{1,3\}\.[0-9 阅读全文
posted @ 2017-11-07 17:49 查灵海 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 9. view语句 视图(view)语句的定义和使用: view view_name [class] { match-clients { address_match_list } ; match-destinations { address_match_list } ; match-recursiv 阅读全文
posted @ 2017-10-16 09:02 查灵海 阅读(1465) 评论(0) 推荐(0) 编辑