绑定区域文件中的“@”是什么意思?

Hoj*_*eri 11 bind

一般在术后$TTL$ORIGIN有一行开始@IN在区域名称,然后管理员的电子邮件地址,什么是@这里的意思,并在未来的项目?

Rad*_*anu 10

$ORIGIN 在区域文件处理期间在两种上下文中使用:

  1. 符号@ 强制替换 $ORIGIN 的当前(或综合)值。@ 符号被替换为 $ORIGIN 的当前值。
  2. 的当前值$ORIGIN被添加到任何“非限定”名称(任何不以“点”结尾的名称)。

@符号替换示例:

; example.com zone file fragment 
; no $ORIGIN present and is synthesized from the 
; zone name in named.conf
....
@          IN      NS     ns1.example.com. 
; ns1.example.com is the name server for example.com
....
$ORIGIN uk.example.com.
@          IN      NS     ns2.example.com. 
; functionally identical to
; uk.example.com. IN NS ns2.example.com.
; ns2.example.com is the name server for uk.example.com
Run Code Online (Sandbox Code Playgroud)

  • 如果缺少“$ORIGIN”,则“@”指的是[区域名称](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-bind)。 (2认同)