也许这个问题,不该到这问,不过,DNS版块.那似乎人气不怎.么好..
况且 无法上网也算基本的.问题吧. 汽车
问题名称:配置DNS后(可能没成功),无.法上网 ( 游戏 )
问题提出者:bing65
问题简.叙:不但上不了网,甚.至网卡选择自动分配IP 时 都无法激活 (广告)
问题目的:新手初学在L.IN.UX下配置DNS,很想成功 外贸
联系信息:bing65@tom..com .
相关信息:
1、操作系统:
1).详细版本信息:RedHatLin.ux9.0. 汽车
2)..详细安装过程:光盘安装 美容
3).详细配置过.程:后附个相关配置文件 投资
.4).详细运行记录:哦.,忘了在LINUX 下保存过来了 投资
5).详.细附加信息:我的电脑并不是作为宿舍的主机,但是,我想让自己的电脑又做自己的主机又做客户端,就是想学配置DNS嘛.理论上是可以的吧.. 外汇
2、问题:
1).简短问题名称:不能上网啊,急. 外贸
2).详细问题描述:之前.也是配置一次DNS ,也是搞得上不了网,.而且把配置文件搞得很乱,结果重装了系统,这次说什么也不靠重装了 .无论是否启动DNS都不能上网啊,郁闷.并郁闷着电影
3).问题可能原因:连自动分配IP都.不能激活网卡,实猜不到原因 (但是自己手动分配IP又可以激活网卡,可仍上不.了网,更郁闷) 鲜花
4).详细附加参考信息:这里.填写对.解决本问题有关的参考信息 外汇
下面是相关的一些配置.文件,不知道够了没有:.
host.conf
orde.r hosts,bind 鲜花
复制代码
host.allow
#hosts..allow This file describes the names of the hosts whi.ch are--------------彩票
# allowed .to use the local INET services, .as decided<性病>
# . by the '/usr/sb.in/tcpd' server..
复制代码
host.deny
#hosts.deny This file describe.s the. names of the hosts which are 婚庆
# *not* allowed to. use the local INET services, as dec.ided.
# . . by the '/usr/sbin/tcpd' server..
#
# The portmap line. is redundant, but it. is left to remind you that 杀毒
# the new secure portmap uses hosts.deny and hosts.allow. In .part.icular学习
# you should .know .that NFS uses portmap!.
复制代码
hosts
#Do not remove the following .line, or var.ious programs--- 印刷
# that req.uire network .functionality will fail.外贸
127.0.0.1 . localhost.localdomain . localhost.
复制代码
named.conf
key bing. {
algorithm hmac.-md5.;( 游戏 )
sec.ret "FuA/j4wFwm4l8jwZ.7XaMrA==";.
};
controls {
. . inet 127.0.0.1 port 953学习
. allow { 127.0.0.1; } keys {. bing.; }; 杀毒
};
acl our-in.ner-nets .{127.0.0.1/32;192.168.1.1/8;};健康
//内部网络地址范围
options {
directory "/var/name..d"; 鲜花
allow-query .{any;.}; 女人
. allow.-recursion{our-inner-nets;};虚拟主机
. notify yes; 外汇
. pid-file "name.d.pid";健康
};
zone "." {
t.ype hint;外贸
. f.ile "named.root";--- 印刷
};
zone ".localhost" { 健康
. type master;学习
file "named.l.ocal.host";( 游戏 )
};
z.one "0.0.127.in-addr.ar.pa" { 电子
. type master; 婚庆
.file "named.1.27.0.0";.
};
z.one "7u7.net" {.
type ma.ster;.
fil.e. "named.7u7.net";.
. notify no;[成人用品]
};
zone "1..168.192.in.-addr.arpa"{.
ty.pe master; 美容
. file "named..192.168.1"; 电子
};
复制代码
nsswitch.conf
#
# /etc/nsswitch.co.nf 女人
#
# An exam.ple Name Serv.ice Switch config file. This file should be( 游戏 )
# sorted. with the most-used servi.ces at the beginning..
#
# The entry. '.[NOTFOUND=return]' means that the search for an.
# entry should .s.top if the search in the previous entry turned 建材
# up no.thing. Note that if the search failed due to some ot.her reason外贸
# (like no NIS .server responding) then. the search continues with the<性病>
# next entry.
#
# Legal entries. are:.
#
# nisplus or nis+ . . Use NIS+ (NIS version 3) 建材
# nis .or yp U.se NIS (NIS version 2), also called YP健康
# dns . . Use DNS (Domain Name Service)<性病>
# files . Use .the local files 杀毒
#. db Use the local data.base (.db) files 杀毒
# . compat U.se NIS on compat mode(广告)
# . hesiod . Use Hesiod for user lookups 电子
# [NOTFOUND.=return] Stop searching .if not found so far 电子
#
# To use db, p.ut the "db" in. front of "files" for entries you want to be.
# looked up first .in the d.atabases.
#
# Example:
#passwd: . .db files nisplus nis.
#shadow: db f.iles nisp.lus nis(广告)
#.group: db files nispl.us nis 电子
passwd: fil.es<性病>
shadow.: files[成人用品]
group: fi.les电影
#hosts: db files. nispl.us nis dns 女人
host.s: files. nisplus nis dns 汽车
#. Example - obey only what nisplus tells u.s... 乙肝
#servic.es: nis.plus [NOTFOUND=return] files.
#networks: nisplus [NOTFOUND=.return] .files 女人
#protocols: nisplus [N.OTF.OUND=return] files( 游戏 )
#r.pc: nisplus [NOTFOUN.D=return] files虚拟主机
#ethers: nisplus [NOT.FOUN.D=return] files教育
#netmasks: nispl.us .[NOTFOUND=return] files 外贸
bootpa.r.ams: nisplus [NOTFOUND=return] files.
ethers: . files(广告)
netmasks:. files<性病>
network.s: files.
proto.cols: files 建材
rp.c: files( 游戏 )
servi.ces: files.
netgr.oup: files( 游戏 )
publicke.y: nisplus虚拟主机
automount.: files 美容
aliases: files. nisplus 电子
复制代码
resolv.conf
;. generated by /sbin/.dhclient-script.
nameserv.er 202.96.128.68 电子
nam.eserver 61.144.56.11教育
复制代码
rndc.conf
/*
* Co.py.right (C) 2000, 2001 Internet Software Consortium..
*
* Permiss.ion to use, copy, modify, and distribute this softwar.e for any 外汇
* .purpose with or without fee is hereby granted, provided that the abov.e.
* copyrig.ht notice and this permission noti.ce appear in all copies. 女人
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTE.RNET SOFTWARE CONSO.RTIUM.
* DISCLAIMS ALL WARRANTIES WITH REGARD T.O THIS SOFTW.ARE INCLUDING ALL[成人用品]
* IMPLIED WARRANTIES OF MERCHANTAB.ILITY AND FITNESS.. IN NO EVENT SHALL投资
* INTERNET SO.FTW.ARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, 杀毒
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR .ANY DAMAGES WHATSOEVER RESULT.ING外贸
*. FROM LOS.S OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,投资
* NEGL.IGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTI.ON.
* WITH THE USE OR PE.R.FORMANCE OF THIS SOFTWARE.[成人用品]
*/
/* $Id: rndc.co.nf,v. 1.7 2001/01/09 21:40:45 bwelling Exp $ */.
/*
* Sample rndc configurati.on. file..
*/
key bing. {
. algorithm hmac-.md5; 电子
. s.ecret "FuA/j4wFwm4l8jwZ7XaMrA==";电影
};
options {
default-key .bing..;
default-server . localhos.t;电脑
default-po.rt 953;学习
};
server l.ocalhost {.
key bin.g. ; 婚庆
};
include "/et.c/rndc.key";电影
复制代码
rndc.key
key bing. {
al.go.rithm hmac-md5;.
. secret. "FuA/j4wFwm4l8jwZ7XaMrA=="; 电子
};
复制代码
xinetd.conf
#
# Simple configuration file for. xin.etd.
#
# Some defaul..ts, and include /etc/xinetd.d/ 婚庆
defaults
{
instanc.es . = 60 电子
. lo.g_type = SYSLOG authpriv--------------彩票
log_o.n_success = HOST PID.外贸
..log_on_failure = HOST[成人用品]
. cps . = 25 30( 游戏 )
}
includedir /etc/xinetd..d 美容
复制代码