---
title: "解决redhat linux下IP地址可以ping通,域名无法ping通"
author: "akinlong"
date: "2013-04-27T14:22:39Z"
tags: []
categories: ["操作系统"]
slug: "redhat-linux-ip-ping-ping"
draft: false
lastmod: "2013-04-27T14:22:39Z"
id: 1855874
url: "https://akinlong.iteye.com/blog/1855874"
---

在/etc/resolv.conf中添点东西

格式如下：   
nameserver xxx.xxx.xxx.xxx   
nameserver xxx.xxx.xxx.xxx 

后面的ip地址是dns服务器的地址，可以添加多个地址

如:  
nameserver 202.106.46.151

然后   
service network restart