linux下DNS的 配置
一:网络环境
bind9.4
主机名(hostname):centos
ip:192.168.1.168
dns:192.168.1.1(配置完后,需要修改,指向192.168.1.168,修改/etc/resolv.conf),
要达到的目的:把这台主机配置成一台dns服务器
dns server:ns1.test.com
ip:192.168.1.168
www.test.com 192.168.1.168
二:安装过程
安装的目录是/usr/local/named, 所有的域名的文件都是放在 /usr/local/named/var下,这个路径需要注意,很多文章是在/var/named这个目录下,不过我觉得把所有的文件放在named的目录下,会更好。
./configure --prefix=/usr/local/named && make && make install
groupadd bind
useradd -g bind -d /usr/local/named -s /sbin/nologin bind
cd /usr/local/named/etc
/usr/local/named/sbin/rndc-confgen > rndc.conf
cat rndc.conf > rndc.key
chmod 777 /usr/local/named/var
tail -10 rndc.conf | head -9 | sed s/#\ //g > named.conf
vi named.conf
添加下面内容(
#################
options {
directory "/usr/local/named/var"; //域名文件存放的绝对路径
pid-file "named.pid"; //如果bind启动,自动会在/usr/local/named/var目录生成一个named.pid文件,打开文件就是named进程的ID
};
zone "." IN {
type hint; //根域名服务器
file "named.root"; //存放在//usr/local/named/var目录,文件名为named.root
};
zone "localhost" IN {
type master; //类型为主域名服务器
file "localhost.zone"; //本地正向解析的文件
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master; //类型为主域名服务器
file "named.local"; //本地反向解析的文件
allow-update { none; };
};
zone "test.com" IN { &nb
相关文档:
Summary
PXE (Preboot eXecution Environment) is, in one persons words, Intel's attempt at making PCs work more like SUNs (
ref
). PXE
outlines a protocol for enabling the BIOS to retrieve the operating system over standard network protocols.
This document outlines the process of setting up a ......
一、Emacs 安装
1. 软件下载:http://ftp.gnu.org/gnu/emacs/ 找latest 版本下载。
2. 软件上传:本人采用虚拟机安装的linux系统,主机是Windows XP,而由XP向linux上传文件采用的工具是:FileZilla;大家可以在网上下载,实在下载不了, ......
系统信息
uptime
uptime 给出下列信息的一行显示. 当前时间, 系统运行了多久时间, 当前登陆的用户有多少, 以及前1,5和15分钟系统的平均负载.
联机信息-时间,显示如下
11:27pm up 9 days, 7:12, 3 user, load average: 0.07, 0.12, 0.14
当前系统时间 系统运行时间 当前在线用户数 系统负荷 1分钟前 5 分钟前 15 分钟 ......
So you want to root a linux system? But, you don't know shit about it?
Well, this guide is for you.
Tools covered by this guide
-----------------------
netcat [utility for creating a backdoor shell, but can be used for a plethora of other things]
gcc [c program compiler, the h ......