[root@linux shell]# iptables -A FORWARD -m ipp2p --ipp2p -j MARK --set-mark 0x01 iptables: invalid argument 这是怎么回事儿???
有法子利用perl 針對特定網段的IP 進行PING的動作 並回傳IP與hostname 的 對應資料嗎? 小弟需要一支程式對公司內的IP及hostname 進行掃描並將資料寫入資料庫之後提供查調。 不知各位高手是否有範列可以提供參考一下。 感激不盡…
修改/etc/hosts 添加 127.0.0.1 localhost localhost.u0u0.net 修改/etc/rc.conf hostname="localhost.u0u0.net" 这样localhost.u0u0.net就相当于localhost,不会去NDS反查ip。 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4774/showart_191887.html
如何可以更改sendmail的hostname, 要把localhost.localdomain 改称我的域名? #>hostname 出现的是我的域名 #>telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). ...... 这里出现的不是我的域名而是localhost.localdomain. 现在可以寄/收邮件,POP/IMAP都可以运作。只是有的server不接受来自localhost.localdomain的邮件。 那位高手知道如何解决?急呀~!:em16:
今天,在一台hp 3440上改主机名. 可是重启后,uname -a,hostname查到的都是改前的主机名. 我改了文件hosts,netconf.也用过sam,set_parms.可是重启后,结果都是一样的. 请问还要怎么做,才能将主机名改正? 谢谢!!! [ 本帖最后由 windows998 于 2006-8-5 00:23 编辑 ]
上次是改机器的IP地址,这次是更改系统的hostname. 原来的机器名叫做“orig”,要改成target。 1.到/etc目录下,运行如下命令: find . -type f |xargs grep "orig" 得到如下的结果: ./inet/hosts:192.168.1.50 orig loghost orig.com.cn./net/ticlts/hosts:orig orig ./net/ticots/hosts:orig orig ./net/ticotsord/hosts:orig orig ./ssh/ssh_host_rsa_key.pub:ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA0/bG1MEDfRduhIhBlfA/G...
2008/09/03 08:10:28 [notice] 4197#0: using the "epoll" event method 2008/09/03 08:10:28 [notice] 4197#0: nginx/0.6.31 2008/09/03 08:10:28 [notice] 4197#0: built by gcc 3.4.6 20060404 (Red Hat 3.4.6-3) 2008/09/03 08:10:28 [notice] 4197#0: OS: Linux 2.6.9-42.EL 2008/09/03 08:10:28 [notice] 4197#0: sysctl(KERN_RTSIGMAX): 0 2008/09/03 08:10:28 [notice] 4197#0: getrlimit(RLIMIT_NOFILE): 65535:65535 200...