LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 960|回复: 1

DNS应该怎么设置?请高手指点!!!

[复制链接]
发表于 2005-10-16 01:40:58 | 显示全部楼层 |阅读模式
事情是这样地:
我的域网是通过Adsl猫(带路由)上的网,IP是10.0.0.138

我现在是在VM虚拟机里装的Arch。

我设置好网络后,局域网用虚拟机里的Arch能连Win,但是连不了外网,不知道是哪里设置错了,请高手指教。

这是/etc/resolv.conf的内容

  1. # /etc/resolv.conf
  2. #

  3. #search <yourdomain.tld>
  4. #nameserver <ip>
  5. nameserver 10.0.0.138
  6. # End of file
复制代码


把/etc/rc.conf内容发上来,高手帮我看看哪里错了。。谢谢


  1. #
  2. # /etc/rc.conf - Main Configuration for Arch Linux
  3. #

  4. #
  5. # Localization
  6. #
  7. # HARDWARECLOCK: set to "UTC" or "localtime"
  8. # TIMEZONE: timezones are found in /usr/share/zoneinfo
  9. # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
  10. # CONSOLEFONT: fount in /usr/share/kbd/consolefonts (only needed for non-us)
  11. # USECOLOR: use ANSI color sequences in startup messages
  12. #
  13. HARDWARECLOCK="localtime"
  14. TIMEZONE=Canada/Pacific
  15. KEYMAP=us
  16. CONSOLEFONT=
  17. USEcolor="yes"

  18. # Scan for LVM volume groups at startup, required if you use LVM
  19. USELVM="no"

  20. #
  21. # Networking
  22. #
  23. HOSTNAME="foaoo"

  24. #
  25. # Module to load at boot-up (in this order)
  26. #   (prefix a module with a ! to disable it)
  27. #
  28. MODULES=(!usbserial !ide-scsi)

  29. #
  30. # Interfaces to start at boot-up (in this order)
  31. # Declare each interface then list in INTERFACES
  32. # Interfaces to start at boot-up (in this order)
  33. # Declare each interface then list in INTERFACES
  34. #   (prefix an interface in INTERFACES with a ! to disable it)
  35. #
  36. # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
  37. #
  38. lo="lo 127.0.0.1"
  39. eth0="eth0 10.0.0.118 netmask 255.255.255.0 broadcast 10.0.0.138"
  40. INTERFACES=(lo eth0)

  41. #
  42. # Routes to start at boot-up (in this order)
  43. # Declare each route then list in ROUTES
  44. #   (prefix a route in ROUTES with a ! to disable it)
  45. #
  46. gateway="10.0.0.138"
  47. ROUTES=(!gateway)

  48. #
  49. # Daemons to start at boot-up (in this order)
  50. #   (prefix a daemon with a ! to disable it)
  51. #
  52. DAEMONS=(syslog-ng hotplug !pcmcia network netfs crond)
  53. DAEMONS=(syslog-ng hotplug !pcmcia network netfs sshd)
  54. # End of file

  55. #

复制代码
发表于 2005-10-16 09:57:27 | 显示全部楼层
多了一行daemon。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表