Chinaunix

标题: 怎么修改localdomain? [打印本页]

作者: hkg36    时间: 2011-07-12 10:45
标题: 怎么修改localdomain?
本帖最后由 hkg36 于 2011-07-12 10:52 编辑

在/etc/sysconfig/network里修改hostname为test.testdomain.com,然后在/etc/hosts里面也改了,在/etc/resolv.conf 把search后面改成了testdomain.com,然后重启机器,运行domainname还是显示ocalhost.localdomain,/etc/resolv.conf 自动改成了localhost.localdomain。

应该怎么改啊?
作者: anonymous0502    时间: 2012-07-08 12:33
domainname - show or set the system’s NIS/YP domain name
作者: ulovko    时间: 2012-07-08 13:34
  1. NAME
  2.      domainname — set or print name of current YP/NIS domain

  3. SYNOPSIS
  4.      domainname [ypdomain]

  5. DESCRIPTION
  6.      The domainname utility prints the name of the current YP/NIS domain.  The
  7.      super-user can set the domain name by supplying an argument; this is usu‐
  8.      ally done in the network initialization script /etc/rc.network, normally
  9.      run at boot time.
复制代码
阁下使用的是DHCP




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2