CentOS 7 下,如何设置DNS服务器

在CentOS 7下,手工设置 /etc/resolv.conf 里的DNS,过了一会,发现被系统重新覆盖或者清除了。和CentOS 6下的设置DNS方法不同,有几种方式: 1、使用全新的命令行工具 nmcli 来设置

#显示当前网络连接
#nmcli connection show
NAME UUID                                 TYPE           DEVICE
eno1 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 802-3-ethernet eno1

#修改当前网络连接对应的DNS服务器,这里的网络连接可以用名称或者UUID来标识
#nmcli con mod eno1 ipv4.dns "114.114.114.114 8.8.8.8"

#将dns配置生效
#nmcli con up eno1

2、使用传统方法,手工修改 /etc/resolv.conf

  • 修改 /etc/NetworkManager/NetworkManager.conf 文件,在main部分添加 “dns=none” 选项:
[main]
plugins=ifcfg-rh
dns=none
  • NetworkManager重新装载上面修改的配置
# systemctl restart NetworkManager.service
  • 手工修改 /etc/resolv.conf
nameserver 114.114.114.114
nameserver 8.8.8.8

详细参见:

# man NetworkManager.conf
# man nmcli
此条目发表在公告声明分类目录。将固定链接加入收藏夹。

CentOS 7 下,如何设置DNS服务器》有 209 条评论

  1. Pingback引用通告: 【每日AI收集】【Hadoop大数据分析与挖掘实战】(一)-P19~22 - 每日AI每日AI

  2. Pingback引用通告: viagra online

  3. Pingback引用通告: levitra 20mg

  4. Pingback引用通告: sildenafil for sale usa

  5. Pingback引用通告: cialis brand 20mg lilly comprar paypal

  6. Pingback引用通告: cheap generic tadalafil 5mg

  7. Pingback引用通告: sildenafil 50 mg buy online

  8. Pingback引用通告: order sildenafil us

  9. Pingback引用通告: purchase cialis online australia

  10. Pingback引用通告: should you take amoxicillin with food

  11. Pingback引用通告: can you drink alcohol on amoxicillin

  12. Pingback引用通告: half life of zithromax

  13. Pingback引用通告: celebrex en buenos aires

  14. Pingback引用通告: celebrex forums

  15. Pingback引用通告: how quickly does cephalexin work

  16. Pingback引用通告: cephalexin allergy

  17. Pingback引用通告: metformin script

  18. Pingback引用通告: duloxetine dr

  19. Pingback引用通告: duloxetine dr 30mg

  20. Pingback引用通告: sildenafil 25 mg buy online

  21. Pingback引用通告: viagra purchase australia

  22. Pingback引用通告: generic viagra us pharmacy

  23. Pingback引用通告: sildenafil citrate tablets ip 100 mg

  24. Pingback引用通告: ordering tadalafil

  25. Pingback引用通告: viagra overdose captions

  26. Pingback引用通告: generic cialis free shipping

  27. Pingback引用通告: cialis 50mg price

  28. Pingback引用通告: italy cialis otc

  29. Pingback引用通告: price of viagra generic

  30. Pingback引用通告: cialis availability in philippines

  31. Pingback引用通告: hims viagra australia

  32. Pingback引用通告: generic cialis online australia

  33. Pingback引用通告: buy cialis reliable

  34. Pingback引用通告: teva generic cialis price singapore

  35. Pingback引用通告: buy generic cialis online australia

  36. Pingback引用通告: propecia hair growth

  37. Pingback引用通告: 60 mg generic cialis

  38. Pingback引用通告: best cialis dose australia

  39. Pingback引用通告: tadalafil 20mg otc

  40. Pingback引用通告: where to buy cialis online in australia

  41. Pingback引用通告: levitra online fast delivery

  42. Pingback引用通告: buy cialis

  43. Pingback引用通告: secure tabs online viagra 100mg

  44. Pingback引用通告: buy viagra worldwide

  45. Pingback引用通告: acheter viagra 200mg

  46. Pingback引用通告: comprar cialis online 2017

  47. Pingback引用通告: acheter viagra 100

  48. Pingback引用通告: cialis otc us

  49. Pingback引用通告: buy cialis philippines

  50. Pingback引用通告: pills for erection

  51. Pingback引用通告: cheapest pharmacy to get prescriptions filled

  52. Pingback引用通告: find cheap cialis online

  53. Pingback引用通告: foreign pharmacy no prescription

  54. Pingback引用通告: buy cialis doctor

  55. Pingback引用通告: buy cialis online generic

  56. Pingback引用通告: buy online best price

  57. Pingback引用通告: canadian pharmacy 20mg

  58. Pingback引用通告: retin a without script

  59. Pingback引用通告: payday loan consolidation plymouth

  60. Pingback引用通告: online daily

  61. Pingback引用通告: lisinopril 10mg daily

  62. Pingback引用通告: can you buy ativan over the counter in canada

  63. Pingback引用通告: cialis sale 20mg

  64. Pingback引用通告: buy cheap cialis overnight

  65. Pingback引用通告: buy cialis very cheap prices fast delivery

  66. Pingback引用通告: buy cialis online best price

  67. Pingback引用通告: what dating sites are completely free

  68. Pingback引用通告: ed causes and cures

  69. Pingback引用通告: levitra cialis viagra

  70. Pingback引用通告: valtrex online canada

  71. Pingback引用通告: sildenafil us pharmacy

  72. Pingback引用通告: herbal ed treatment

  73. Pingback引用通告: cialis at costco

  74. Pingback引用通告: 150 mg viagra

  75. Pingback引用通告: cialis for sell

  76. Pingback引用通告: viagra on sale

  77. Pingback引用通告: online canadian drugstore

  78. Pingback引用通告: daily cialis 5mg

  79. Pingback引用通告: sildenafil 100mg coupon

  80. Pingback引用通告: cheap viagra online

  81. Pingback引用通告: cialis 50mg

  82. Pingback引用通告: viagra sales

  83. Pingback引用通告: neurontin uses

  84. Pingback引用通告: best tadalafil tablets

  85. Pingback引用通告: levitra doses

  86. Pingback引用通告: sildenafil cost uk

  87. Pingback引用通告: norvasc generic

  88. Pingback引用通告: atorvastatin 20mg

  89. Pingback引用通告: meloxicam for dogs

  90. Pingback引用通告: metoprolol dosage

  91. Pingback引用通告: losartan 50 mg

  92. Pingback引用通告: daily viagra

  93. Pingback引用通告: cialis dosage 20mg

  94. Pingback引用通告: levitra super force

  95. Pingback引用通告: duloxetine withdrawal

  96. Pingback引用通告: steroids prednisone

  97. Pingback引用通告: elavil side effects

  98. Pingback引用通告: duloxetine drug class

  99. Pingback引用通告: hydrochlorothiazide 25 mg

  100. Pingback引用通告: metformin dosage guide

  101. Pingback引用通告: warnings for mirtazapine

  102. Pingback引用通告: what is wellbutrin

  103. Pingback引用通告: buspar

  104. Pingback引用通告: citalopram 20mg

  105. Pingback引用通告: buy tizanidine

  106. Pingback引用通告: wellbutrin weight loss

  107. Pingback引用通告: diclofenac dosage

  108. Pingback引用通告: clonidine half life

  109. Pingback引用通告: finasteride side effects

  110. Pingback引用通告: coreg generic

  111. Pingback引用通告: what does metronidazole treat

  112. Pingback引用通告: new ed treatments

  113. Pingback引用通告: drug prices

  114. Pingback引用通告: cialis professional ingredients

  115. Pingback引用通告: viagra manufacturer

  116. Pingback引用通告: canadian drugstore cialis

  117. Pingback引用通告: viagra generic cost

  118. Pingback引用通告: levitra professional 20 mg

  119. Pingback引用通告: ivermectin 1% cream generic

  120. Pingback引用通告: ivermectin 4 tablets price

  121. Pingback引用通告: std dating free

  122. Pingback引用通告: acyclovir cost uk

  123. Pingback引用通告: side effects of amoxicillin

  124. Pingback引用通告: aricept

  125. Pingback引用通告: augmentin coverage

  126. Pingback引用通告: zithromax 250 mg

  127. Pingback引用通告: omnicef

  128. Pingback引用通告: cephalexin and alcohol

  129. Pingback引用通告: clindamycin hydrochloride

  130. Pingback引用通告: erythromycin tablets 250mg

  131. Pingback引用通告: zithromax 250

  132. Pingback引用通告: plaquenil 500

  133. Pingback引用通告: cialis shelf life

  134. Pingback引用通告: cialis cost without insurance

  135. Pingback引用通告: non prescription viagra

  136. Pingback引用通告: vardenafil vs sildenafil

  137. Pingback引用通告: viagra uses

  138. Pingback引用通告: cialis soft gel

  139. Pingback引用通告: how does levitra work

  140. Pingback引用通告: best prices on viagra

  141. Pingback引用通告: stromectol online pharmacy

  142. Pingback引用通告: ivermectin gel

  143. Pingback引用通告: tadalafil india generic

  144. Pingback引用通告: cialis daily side effects

  145. Pingback引用通告: dysfunction erectile

  146. Pingback引用通告: sildenafil 25 mg india

  147. Pingback引用通告: watermelon viagra

  148. Pingback引用通告: viagra fuck

  149. Pingback引用通告: 20mg sildenafil

  150. Pingback引用通告: female viagra 2018

  151. Pingback引用通告: treating ed

  152. Pingback引用通告: womens viagra pill

  153. Pingback引用通告: does amlodipine cause edema

  154. Pingback引用通告: tadalafil 20mg mexico

  155. Pingback引用通告: levitra walmart

  156. Pingback引用通告: metformin er 500 mg

  157. Pingback引用通告: daily cialis dose

  158. Pingback引用通告: buy generic 100mg viagra online

  159. Pingback引用通告: ampicillin vs amoxicillin

  160. Pingback引用通告: doxycycline precautions

  161. Pingback引用通告: furosemide 40 mg

  162. Pingback引用通告: xenical price in usa

  163. Pingback引用通告: priligy usa sale

  164. Pingback引用通告: finasteride 1 mg

  165. Pingback引用通告: bimatoprost ophthalmic solution india

  166. Pingback引用通告: clomid testosterone increase

  167. Pingback引用通告: diflucan dosage iv

  168. Pingback引用通告: cialis without prescriptions canada

  169. Pingback引用通告: induced lactation with domperidone

  170. Pingback引用通告: fastest delivery of generic cialis

  171. Pingback引用通告: naltrexone dosage range

  172. Pingback引用通告: tizanidine formulary

  173. Pingback引用通告: substitute for cialis

  174. Pingback引用通告: ciprofloxacin drops dose

  175. Pingback引用通告: cialis review

  176. Pingback引用通告: generic cialis 20mg

  177. Pingback引用通告: tadalafil otc

  178. Pingback引用通告: viagra discount prices

  179. Pingback引用通告: sildenafil 100 mg

  180. Pingback引用通告: sildenafil canada

  181. Pingback引用通告: hydroxychloroquine 900 mg

  182. Pingback引用通告: is there a generic cialis available in the us hvtsgeahdItetaBtjUsermk

  183. Pingback引用通告: generic viagra reviews forum

  184. Pingback引用通告: zithromax azithromycin

  185. Pingback引用通告: buy ivermectin canada

  186. Pingback引用通告: cheap medications online

  187. Pingback引用通告: hydroxychloroquine 90 mg

  188. Pingback引用通告: buy cialis brand

  189. Pingback引用通告: how much does cialis cost at walmart

  190. Pingback引用通告: Google

  191. Pingback引用通告: prednisolone prednisone

  192. Pingback引用通告: facts and myths about sex

  193. Pingback引用通告: rechargeable penis ring

  194. Pingback引用通告: 1xbit

  195. Pingback引用通告: best in ottawa

  196. Pingback引用通告: savage 93r17 for sale

  197. Pingback引用通告: 피망포커머니

  198. Pingback引用通告: ivermectin usa

  199. Pingback引用通告: ushanka hat

  200. Pingback引用通告: murchison falls tours

  201. Pingback引用通告: rimmel

  202. Pingback引用通告: Dank vapes

  203. Pingback引用通告: napalm og big chief

  204. Pingback引用通告: cialis no prescription

  205. Pingback引用通告: Thc vape juice

  206. Pingback引用通告: WHERE TO BUY MESCALINE

  207. Pingback引用通告: Golden Retriever For Sale

  208. Pingback引用通告: where to buy cheap cialis

  209. Pingback引用通告: cialis for sale in uk

发表评论

邮箱地址不会被公开。 必填项已用*标注