【发布时间】:2015-08-23 00:59:47
【问题描述】:
我需要阅读 etc/named.conf 文件,并获取域 我只想要域名,然后将域名排成一行
zone "example.org" {
type master;
file "/var/named/example.org.db";
};
zone "example.com" {
type master;
file "/var/named/example.com.db";
};
};
我想要这样的输出:
example.org
example.com
我想在 www.who.is 的 cgi-bin 脚本中添加这个域 输出如下:
example.org : www.who.is/example.org
example.com : www.who.is/example.com
我等你
感谢您,感谢所有用户,感谢 stackoverflow.com
【问题讨论】: