|
|
发表于 2007-8-12 21:32:15
|
显示全部楼层
奉陪到底
问问搂住,
如果新装的系统,没看手册要打PP;
如果非新装系统,以前是怎么用的?
- Code Listing 5: Setting the domainname
- # nano -w /etc/conf.d/net
- (Set the dns_domain variable to your domain name)
- dns_domain_lo="homenetwork"
- Note: If you choose not to set a domainname, you can get rid of the [size=5][color="DarkRed"][b]"This is hostname.(none)" messages[/b][/color][/size] at your login screen by editing /etc/issue. Just delete the string .\O from that file.
- If you have a NIS domain (if you don't know what that is, then you don't have one), you need to define that one too:
复制代码
- Code Listing 13: Opening /etc/hosts
- # nano -w /etc/hosts
- Code Listing 14: Filling in the networking information
- (This defines the current system)
- 127.0.0.1 tux.homenetwork tux localhost
- [size=5][color="DarkRed"][b](Define extra systems on your network,
- they need to have a static IP to be defined this way.)[/b][/color][/size]
- 192.168.0.5 jenny.homenetwork jenny
- 192.168.0.6 benny.homenetwork benny
- Save and exit the editor to continue.
复制代码 |
|