LinuxSir.cn,穿越时空的Linuxsir!

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

想在pdnsd里加几条记录,方便内网互相访问,可是……

[复制链接]
发表于 2007-3-22 11:20:35 | 显示全部楼层 |阅读模式
看不明白它的文档啊……
哪位用过的给说说吧


  1. haha@bigTOM:~$ sudo pdnsd-ctl add
  2. Wrong number of arguments for 'add' command.
  3. Usage:

  4. add     a       addr    name    [ttl]   [noauth]
  5. add     aaaa    addr    name    [ttl]   [noauth]
  6. add     ptr     host    name    [ttl]   [noauth]
  7. add     cname   host    name    [ttl]   [noauth]
  8. add     mx      host    name    pref    [ttl]   [noauth]
  9.         Add a record of the given type to the pdnsd cache, replacing existing
  10.         records for the same name and type. The 2nd argument corresponds
  11.         to the argument of the option in the rr section that is named like
  12.         the first option. The ttl is optional, the default is 900 seconds.
  13.         noauth is used to make the domains non-authoritative.
  14.         If you want no other record than the newly added in the cache, do
  15.         pdnsdctl record <name> delete
  16.         before adding records.
复制代码
 楼主| 发表于 2007-3-22 11:34:49 | 显示全部楼层
sudo pdnsd-ctl add a 192.168.1.51 bigtom

怪了,用这个命令LinuX客户可以直接ping bigtom到192.168.1.51,
但是windows用户不行……

怎么搞的?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-22 17:55:34 | 显示全部楼层
晕,windows真垃圾

好像域名里必须有个“.”,它才认为是需要dns解析的域名,如果没有,好像用它自己的那个名字服务了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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