̾??
- Provided by: isc-dhcp-common (Version: 4.2.4-7ubuntu12.13)
- Source: isc-dhcp
- Report a bug
Internet Systems Consortium ?? DHCP ???饤?????Ȥȥ????Фϡ??ɤ????? ?????????ѥ??åȤ˰?¸?????????դ?ư?????Ԥ?ǽ?Ϥ??????ޤ??? ?????դ?ư????ʸˡ???˼????ޤ???
?????դ?ư???ϡ?if, else, elsif ʸ?????Ѥ??ƻ??ꤷ?ޤ??? ????ʸ?ϡ??̾?ʸ (option ʸ) ???о???ǽ?ʾ????Ϥɤ??ˤǤ??о???ǽ?Ǥ??ꡢ ?ޤ????Τ褦??ʸ?????뤳?Ȥ???ǽ?Ǥ??? ?????Фˤ?????????ʸ?ϼ??Τ褦?ˤʤ뤳?Ȥ?¿???Ǥ??礦:
if option dhcp-user-class = "accounting" {
max-lease-time 17600;
option domain-name "accounting.example.org";
option domain-name-servers ns1.accounting.example.org,
ns2.accounting.example.org;
} elsif option dhcp-user-class = "sales" {
max-lease-time 17600;
option domain-name "sales.example.org";
option domain-name-servers ns1.sales.example.org,
ns2.sales.example.org;
} elsif option dhcp-user-class = "engineering" {
max-lease-time 17600;
option domain-name "engineering.example.org";
option domain-name-servers ns1.engineering.example.org,
ns2.engineering.example.org;
} else {
max-lease-time 600;
option domain-name "misc.example.org";
option domain-name-servers ns1.misc.example.org,
ns2.misc.example.org;
}
???饤??????¦?Ǥϡ??????դ?ɾ???????ϼ??Τ褦?ˤʤ??Ǥ??礦:
# example.org ?ϥե????䥦???????? DNS ???ե??륿?????Τǡ?
# example.org ?ͥåȥ???˷Ҥ????Ȥ??Τߡ????? DNS ?????Ф????Ѥ??ޤ???
# example.org ?˷Ҥ????ΤǤϤʤ????硢???ʤ? DNS ?????Ф?ͥ?????Ѥ??ޤ???
if not option domain-name = "example.org" {
prepend domain-name-servers 127.0.0.1;
}
if ʸ?? elsif ??³ʸ?ϡ??????Ȥ??ƥ֡??뼰???????ޤ??? ?Ĥޤꡢ????????ʸ?ϡ?ɾ?????????ȥ֡????ͤη??̤????????뼰???????ޤ??? ????ɾ?????̤????ˤʤ??ȡ? if ʸ??ľ???Υ֥졼???dz????줿ʸ???¹Ԥ??졢??³???? elsif ?? else ?????ϥ????åפ????ޤ??? ?????Ǥʤ????硢ɾ?????̤????ˤʤ? elsif ???˽вޤǡ???³?????? elsif ???μ????????å??????ޤ??? ???Τ褦??????դ????ȡ?ľ???Υ֥졼??????ʸ???¹Ԥ??졢??³???? elsif ?? else ?????ϥ????åפ????ޤ??? ???٤Ƥ? if ?????? elsif ????????å????줿???ΤΤɤμ???ˤʤ??ʤ??????ǡ? else ?¸?ߤ??????硢 else ??ľ???Υ֥졼??????ʸ??ɾ???????ޤ??? ?????ˤ????Ƥϡ?ɾ?????̤????ˤʤ??֡??뼰?ϵ??Ȥ??ư??????ޤ???
?ʲ??ϡ?DHCP ????ʪ?Ǹ??ߥ??ݡ??Ȥ????Ƥ????֡??뼰?ΰ????Ǥ???
data-expression-1 = data-expression-2
= ???ڥ졼???ϡ?2 ?ĤΥǡ??????????Ӥ???ξ?Ԥ?Ʊ???????Ͽ????֤??? Ʊ???Ǥʤ??????ϵ????֤??ޤ??? ???դ⤷???ϱ??դΤ????줫?????ξ??硢???̤϶??ˤʤ??ޤ???
boolean-expression-1 and boolean-expression-2
boolean-expression-1 or boolean-expression-2
not boolean-expression
exists option-name
???ҤΥ֡??뼰?ϡ??ǡ???????ɾ?????̤˰?¸???ޤ??? ?ǡ????????˼????ޤ???
substring (data-expr, offset, length)
suffix (data-expr, length)
option option-name
config-option option-name
hardware
packet (offset, length)
string
colon-separated hexadecimal list
concat (data-expr1, ..., data-exprN)
reverse (numeric-expr1, data-expr2)
leased-address
binary-to-ascii (numeric-expr1, numeric-expr2, data-expr1, data-expr2)
?ǽ??? 3 ?ĤΥ????פμ??????Ȥ??ơ? ???饤?????Ȥ˳??????Ƥ??줿 IP ???ɥ쥹?Ѥ? PTR ?쥳???ɤ?̾???????????뤿???˻??Ѳ?ǽ?ʼ????ޤ?
concat (binary-to-ascii (10, 8, ".",
reverse (1, leased-address)),
".in-addr.arpa.");
encode-int (numeric-expr, width)
pick-first-value (data-expr1 [ ... exprn ] )
host-decl-name
???ͼ??ϡ?ɾ?????̤??????ˤʤ뼰?Ǥ??? ???̤ˡ??????κ??祵?????? 32 ?ӥå?̤???Ǥ????Ȳ??ꤹ?٤??ǤϤ????ޤ??? ?????????٤? 32 ?ӥåȤ??ۤ??뤳?ȤϤ??????ޤ???
extract-int (data-expr, width)
lease-time
number
client-state
????ʸ?????Ѥ??ơ?ɸ???????????ͥ??˾???????????ǽ?Ǥ??? ????ʸ?ϡ???ά??ǽ?? priority (fatal, error, info, debug ?Τ????줫) ?ȡ? ?ǡ????????????ޤ???
log (priority, data-expr)
????ʸ?ϡ?ñ???Υǡ??????????Τ????ޤ??? ʣ???Υǡ????ͤ????Ϥ????????硢 concat ???ڥ졼???????Ѥ??Ƥ???????Ϣ?뤹??ɬ?פ??????ޤ???
DHCP ???饤?????Ȥȥ????Фϡ? ưŪ?˥ɥᥤ???͡??ॷ???ƥ???????ǽ?Ϥ??????ޤ??? ?????ե????????ˡ??ɤΤ褦?˥ɥᥤ???͡??ॷ???ƥ????????ߤ??????? ??????ǽ?Ǥ??? ?????? RFC 2136 ?˽??äƤ??뤿?ᡢ RFC 2136 ?ݡ??Ȥ??? DNS ?????Фϡ? DHCP ?????Ф????ι??????????դ???ǽ?Ȼפ????ޤ???
TSIG ?????? DNSSEC ?Ϥޤ????ݡ??Ȥ????Ƥ??ޤ????? DHCP ?????Фޤ??ϥ??饤?????Ȥ????ι??????????դ????褦?? DNS ?????Ф????ꤹ?????硢???¤?̵?????????Ф??? DNS ?????Ф????Ȥˤʤ뤫?⤷???ޤ????? ???????뤿???˺??????Ǥ??????ɤ???ˡ?ϡ? IP ???ɥ쥹?١????Υѥ??åȥե??륿?????Ѥ??ơ? ???¤?̵???ۥ??Ȥ????ι?????ȯ?Ԥ??ߤ??뤳?ȤǤ??? ???餫?ˡ??????Ǥϥ??饤?????Ȥι??????Ф??륻???????ƥ?????????ˡ?? ?????ޤ????? ???Τ????ˤ? TSIG ?? DNSSEC ??ɬ?פǤ????? ???? DHCP ????ʪ?ˤϤޤ??ޤޤ??Ƥ??ޤ?????
ưŪ DNS (DDNS) ?????ϡ?dns-update ???????Ѥ??뤳?ȤǼ¹Ԥ????ޤ??? dns-update ???ϡ??֡??뼰?Ǥ??ꡢ4 ?ĤΥѥ???????????ޤ??? ???????????????ȡ????̤Ͽ??ˤʤ??ޤ??? ???Ԥ????ȡ????̤ϵ??ˤʤ??ޤ??? 4 ?ĤΥѥ?????ϡ???????쥳???ɥ????? (RR)?? RR ?κ??ա?RR ?α??ա??쥳???ɤ?Ŭ?Ѥ??????٤? ttl ?Ǥ??? ???δؿ??κǤ???ñ?ʻ??????ϡ?dhcpd.conf ?ե??????λ??????ˤ??ꡢ ?ʤˤ??????뤫???Ҥ????Ƥ??ޤ??? ???????Ǥϡ?ʣ???μ??????Ѥ????ơ? dns-update ?Ѥΰ??????????????Ƥ??ޤ???
???????Ǥϡ??ǽ??? dns-update ???ؤ? 1 ???ܤΰ????ϡ? A RR ?????פ?ɾ?????????ǡ??????Ǥ??? 2 ???ܤΰ????ϡ?DHCP host-name ???ץ??????? ?????????ɥᥤ???ξ??? "ssd.example.net"?? ???ޤ??ƥ????ȥ??ȥ???Ϣ?뤹?뤳?Ȥǡ????ۤ????ޤ??? 3 ???ܤΰ????ϡ????饤?????Ȥ˳??????Ƥ??줿???ɥ쥹???? 32 ?ӥåȤο??ͤ????ƥХ??Ȥ? "." ?Ƕ??ڤä? ASCII ʸ???????Ѵ????뤳?Ȥǡ? ???ۤ????ޤ??? 4 ???ܤΰ??? TTL ?ϡ?????λĤ????֤Ǥ? (???????????????????????ޤ????? ?ʤ??ʤ? DNS ?????Фϡ??????Ф??Ƥ??Ĥ⤳?? TTL ?ͤ????Ϥ??Ƥ??ޤ??????Ǥ??? ?????ϡ?????????ڤ??ο??????Ǥ??äƤ??Ǥ?)??
?ǽ??? dns-update ʸ???????????ȡ? ????³???? 2 ???ܤι????ˤ??? PTR RR ?????ȡ??뤵???ޤ??? PTR ?쥳???ɤΥ??ȡ????ϡ?A RR ?Υ??ȡ?????Ʊ?ͤǤ????? ?쥳???ɤκ??դϥ?????줿???ɥ쥹???դˤ??? ".in-addr.arpa" ?? ???礵?줿???ΤǤ??? ???դϡ????ɥ쥹?Υ???????襯?饤?????ȤΡ??????ʷ??ǤΥɥᥤ??̾?Ǥ???
dhcpd.conf(5), dhcpd.leases(5), dhclient.conf(5), dhcp-eval(5), dhcpd(8), dhclient(8), RFC2132, RFC2131
Internet Systems Consortium DHCP Distribution ?ϡ?Vixie Labs ?Ȥη????Τ??Ȥǡ?Ted Lemon ?????Ҥ??ޤ????? ?ܥץ????????Ȥλ????ϡ?Internet Systems Consortium ?????ޤ????? Internet Systems Consortium ?˴ؤ????????ϡ? https://www.isc.org ?ˤ????ޤ???