dualserver.ini
上传用户:raihanchen
上传日期:2022-08-07
资源大小:129k
文件大小:17k
源码类别:

网络

开发平台:

Visual C++

  1. #This file should be edited and moved to /etc directory.
  2. #unless overridden with -i flag
  3. #Any line starting with a punctuation character will be a comment
  4. #You need to remove ' from begining of values and replace with your 
  5. #own values below if you need change settings
  6. #IMPORTANT WARNING Never Edit this file usig Windows Editor
  7. [SERVICES]
  8. #Specify the service you want to use
  9. #Default is both services
  10. 'DNS
  11. 'DHCP
  12. [LISTEN-ON]
  13. #Specify the Interfaces you would like Server to listen
  14. #if you have more than one NIC card on your server
  15. #always specify which cards will listen DHCP/DNS requests
  16. #Requests from diffent Interfaces look for matching DHCP ranges.
  17. #Requests from relay agents look for matching range to relay agent IP.
  18. #upto 8 interfaces can be specified
  19. #Default is all Static interfaces
  20. '192.168.0.1
  21. [LOGGING]
  22. #Logging will be done only if run as Service.
  23. #LogLevels can be set as None, Errors or All
  24. #Logging Level has be specified separately for DHCP and DNS
  25. #It is advisable to keep DHCP logging to All, DNS to Errors
  26. #Which is defaul logging also, if following lines are not uncommented
  27. 'DHCPLogLevel=All
  28. 'DNSLogLevel=Errors
  29. #Log file should be specified at command line.
  30. #Log file name should include %Y%m%d, %Y will be replaced
  31. #by Current Year, %m by current month and %d by current year.
  32. #For example #/opt/dualserver/dualserver -l/opt/dualserver/log/dualserver%Y%m%d.log
  33. [DNS-ALLOWED-HOSTS]
  34. #These are permitted hosts for DNS Query.
  35. #Hosts having IP address within these ip ranges
  36. #only will be responded to DNS requests.
  37. #Hosts "queried for" has nothing to do with these ranges.
  38. #32 ranges can be specified.
  39. #DHCP Client ranges are automatically included
  40. #use second example for allowing all hosts
  41. '192.168.0.1-192.168.255.254
  42. '1.0.0.1-255.255.255.254
  43. [HOSTS]
  44. #This is where hosts and their
  45. #IPs needs to be specified
  46. #DNS will resolve as per
  47. #entries here, in addition to
  48. #DHCP alotted addresses.
  49. #Bare names automatically
  50. #assume local domain-name.
  51. #hosts here need not be local
  52. #reverse entry is automatic.
  53. #MX and ALIASs needs to
  54. #be given in respected sections
  55. #no alias or wild cards in this section
  56. #No limit to no. of entries here !
  57. 'OracleServer.yahoo.com=192.168.0.43
  58. 'DNS=192.168.0.1
  59. 'cpltcaxd02b=192.168.0.2
  60. 'homehost.external.com=187.178.187.178
  61. 'strange=192.168.6.11
  62. 'soho=192.168.0.111
  63. 'www=12.67.4.3
  64. [ALIASES]
  65. #These are alias names
  66. #ALIAS should be bare or local name
  67. #while CNAME can be local or FQDN, 
  68. #pointing anywhere in the world
  69. #This server will resolve them
  70. #ensure CNAME in right of 
  71. #= and ALIAS is on left
  72. #in form ALIAS=CNAME
  73. #No limit to no. of entries here !
  74. 'MyHost=HomeHost
  75. 'DBServer=DB2Server.com
  76. 'DataServer=OracleServer.external.com
  77. 'gmail=gmail.google.com
  78. 'DB2ServerVendor=oracle.com
  79. #Make this entry for default host of domain
  80. 'workgroup.com=www
  81. 'dns1 = dns
  82. 'xyz=soho
  83. [WILD-HOSTS]
  84. #These are wild card based hosts for
  85. #name queries only (A type only).
  86. #wild hosts would be matched if none found.
  87. #during normal lookup but before forwarding.
  88. #if queried name matches these wildcards
  89. #specified ip would be returned, but there
  90. #would be no reverse lookup against IPs here.
  91. # * and ? are the only wild characters.
  92. #Be very careful while using wild hosts.
  93. #wild hosts wont be part of zone transfer.
  94. #only upto 32 wild hosts can be specified.
  95. #wild hosts can be used to block some external urls
  96. '*.google.com=64.136.20.120
  97. 'www.*.com=127.0.0.1
  98. '*xyz.com*=4.2.2.3
  99. #If you just need "host not found" response,
  100. #simply specify IP as 0.0.0.0
  101. '*.hostnotfound.com=0.0.0.0
  102. [MAIL-SERVERS]
  103. #These are default mail servers for domain
  104. #This section handles MX
  105. #queries. Entries should
  106. #be in form HOST=Priority
  107. #hosts can be local or external
  108. 'MailServer1.com=10
  109. 'MailServer2.net=20
  110. [DOMAIN-NAME]
  111. #This is local zone/domain for this Server
  112. #Default is workgroup (not authorised) if not specified
  113. #There are two formats for this
  114. #workgroup
  115. #workgroup=10.10.in-addr.arpa
  116. #just workgroup means this is not authorized server
  117. #with default domain name workgroup
  118. #workgroup=10.10.in-addr.arpa means this is authorized server for 
  119. #zone workgroup and network 10.10.0.0
  120. #authorized DNS Server will support AXFR and Zone Trnasfer
  121. #and Zone replication. It will also send
  122. #NS records with DNS queries and NS queries will be responded.
  123. 'workgroup=168.192.in-addr.arpa
  124. 'workgroup
  125. [DNS-SERVERS]
  126. #If DNS Service is enabled
  127. #These servers are used
  128. #as default Forward DNS Servers
  129. #DNS Server here would be overridden by
  130. #servers specified in [CHILD-ZONES] section.
  131. #However If only DHCP service is used,
  132. #these are passed as local DNS Servers,
  133. #unless overridden by DHCP-OPTIONS or client OPTIONS
  134. #Max Number of DNS Servers is 8
  135. #Program auto detects if not specified
  136. '192.168.0.1
  137. '10.10.10.1
  138. [CHILD-ZONES]
  139. #If your main domain has child zones and
  140. #each child zone has its own DNS
  141. #Server(s), DualServer can also be used domain
  142. #name server for all zones as main Domain Name Server.
  143. #The queries would be forwarded to these child
  144. #servers. each child zone need 2 enteries, one
  145. #for name lookup and other for reverse lookup
  146. #limit is 32 entries. Each such entry can
  147. #have upto 2 child DNS Servers, separated
  148. #by comma.
  149. #You can also use entries here as DNS-PROXY
  150. #and forward queries to any specified DNS server.
  151. #based on matching of last part of query.
  152. 'zone1.workgroup=192.168.1.1
  153. '1.168.192.in-addr.arpa=192.168.1.1
  154. 'zone2.workgroup=192.168.2.1,192.168.2.2
  155. '2.168.192.in-addr.arpa=192.168.2.1,192.168.2.2
  156. [ZONE-REPLICATION]
  157. #You need to specify Primary
  158. #and secondary servers for replication
  159. #to work. You can add some Clients also,
  160. #which may make TCP/AXFR queries.
  161. #make sure that Primary & Secondary
  162. #Server entries are same on both servers
  163. 'Primary=192.168.0.1
  164. 'Secondary=192.168.0.5
  165. #Alternatively/Additionally You
  166. #can also specify upto 6 clients/servers
  167. #which can make tcp/axfr queries to this server
  168. 'AXFRClient=192.168.0.1
  169. 'AXFRClient=192.168.0.3
  170. 'AXFRClient=192.168.0.4
  171. 'AXFRClient=192.168.0.5
  172. 'AXFRClient=192.168.0.6
  173. [TIMINGS]
  174. #Lease_Time is Maximum lease time in seconds for DHCP
  175. #Lease_Time is also expiry for other DNS hosts
  176. #Default is 360000 sec (100 hours)
  177. #specify 0 for infinity.
  178. 'Lease_Time=360000
  179. #below are zone repl timings
  180. 'Refresh=3600
  181. 'Retry=10
  182. 'Expire=360000
  183. 'Minimum=20
  184. #Below are DNS caching timings, You should never specify them
  185. #under Production Environment as this may make cache entries stale.
  186. #DNS Entries should expire as specified by their auth DNS Servers.
  187. #However you can override for testing purposes only
  188. 'MinCacheTime=100
  189. 'MaxCacheTime=1000
  190. [HTTP-INTERFACE]
  191. #This release 6.x has http inerface for viewing lease status,
  192. #Default is first interface, port 6789
  193. #You can change it here.
  194. #Only this server's alotted dynamic leases and static leases are displayed
  195. #Replicated dynamic leases (from Replicated server) are not diplayed.
  196. '192.168.0.1:6789
  197. #DHCP Sections
  198. #Sections below are DHCP Sections. Clients can be alotted addresses in
  199. #two ways, dynamically from DHCP Range or statically. For static addresses,
  200. #client section needs to be created for each static client
  201. #against its MAC Address. BOOTP clients are always static.
  202. #There can be multiple DHPC-RANGE sections.
  203. #You can specify one or more ranges in each [DHCP-RANGE]
  204. #section, in format specified.DHCP Server will alot addresses from these ranges.
  205. #Static Hosts and BootP clients do not need ranges. do not specify [DHCP-RANGE]
  206. #if all clients are static.
  207. #The Policy for alloting dynamic address is:-
  208. #1)First Look for MacAddress in DHCP Client sections
  209. #2)If not found look for old expired/active address of same host
  210. #3)If not found, look if DNS has matching hostname entry and this IP is free
  211. #4)If not,look at requested IP Address and it is free
  212. #5)If not, allot virgin IP Adress, if any available
  213. #6)If no virgin IP address exists, allot expired IP address of other host.
  214. #From 2) to 6), requests from diffent Interfaces look for matching DHCP ranges
  215. #of Interface IP and requests from relay agents look for matching range to 
  216. #relay agent IP.
  217. #All the ranges in a DHCP-RANGE section can be further restricted
  218. #by Filter_Mac_Range, Filter_Vender_Class and Filter_User_Class
  219. #If for example Mac Range is specified, then this section's ranges
  220. #will only be available to hosts, whoes Mac Address
  221. #Falls in this range. Also if any host has matching Filter_Mac_Range in
  222. #any DHCP-RANGE section then other DHCP Range sections 
  223. #without Filter_Mac_Range or not having matching Mac Range will
  224. #not be available to it. Each Manufacturer has a fixed Mac Range.
  225. #Same Mac ranges can repeate in many DHCP-RANGE sections.
  226. #For Filter_Vendor_Class (option 60) and Filter_User_Class filter (option 77),
  227. #the range would only be available to matching value of Filter_Vender_Class
  228. #and Filter_User_Class sent in client request. If Filter_Vender_Class and 
  229. #Filter_User_Class do match in one or more ranges, other ranges with missing
  230. #or not matching values would not be available to such clients.
  231. #You can specify upto 32 Filter_Mac_Range, Filter_Vender_Class and Filter_User_Class
  232. #in each [DHCP-RANGE].
  233. [DHCP-RANGE]
  234. #This is first and simple DHCP range section example,
  235. #This example may be good enough for simple/home use.
  236. #If you need range filters, look at example below
  237. DHCP_Range=192.168.0.1-192.168.0.254
  238. 'DHCP_Range=192.168.4.1-192.168.4.254
  239. 'DHCP_Range=192.168.5.1-192.168.5.254
  240. #Following are range specific DHCP options.
  241. #You can copy more options names from [DHCP-OPTIONS]
  242. 'Subnet_Mask=255.255.255.0
  243. 'DNS_Server=192.168.0.1
  244. 'DNS_Server=192.168.0.2
  245. 'Router=192.168.0.1
  246. #Lease Time can be different for this Range
  247. 'Lease_Time=11000
  248. [DHCP-RANGE]
  249. #This section is also simple DHCP-RANGE section
  250. #Here the options are specified as flat options.
  251. 'DHCP_Range=192.168.0.1-192.168.0.254
  252. 'DHCP_Range=192.168.4.1-192.168.4.254
  253. 'DHCP_Range=192.168.5.1-192.168.5.254
  254. #Following are flat range specific DHCP options.
  255. #Subnet_Mask below
  256. '1=255.255.255.0
  257. #DNS_Servers below
  258. '6=192.168.0.1
  259. '6=192.168.0.2
  260. #Router
  261. '3=192.168.0.1
  262. #Lease_Time
  263. '51=11000
  264. [DHCP-RANGE]
  265. #This is filtered DHCP-RANGE section.
  266. #First eight entries in this example are filters.
  267. #Currently only following types of filters are supported
  268. #However 32 filters of each type can be specified
  269. 'Filter_Mac_Range=00:0d:60:c5:4e:00-00:0d:60:c5:4e:ff
  270. 'Filter_Mac_Range=00:0e:12:c5:4e:00-00:0e:12:c5:4e:ff
  271. 'Filter_Mac_Range=00:0f:60:c5:4e:a1-00:0f:60:c5:4e:a1
  272. 'Filter_Vendor_Class="MSFT 5.0"
  273. 'Filter_Vendor_Class="MSFT 5.1"
  274. 'Filter_Vendor_Class="MSFT 5.2"
  275. 'Filter_User_Class="My User Class 4.0"
  276. 'Filter_User_Class=00:0d:60:c5:4e:0d:60:c5:4e
  277. #Next few are actual ranges of this section.
  278. 'DHCP_Range=10.0.0.5-10.0.0.10
  279. 'DHCP_Range=10.0.10.1-10.0.10.254
  280. 'DHCP_Range=10.0.1.1-10.0.1.254
  281. 'DHCP_Range=10.0.2.1-10.0.2.254
  282. #Following are range specific DHCP options.
  283. #You can copy more option names from [DHCP-OPTIONS]
  284. #or add flat options like 240="this is the string value"
  285. #or like 240=23:89:a5:ba:a9:e4 (hex format)
  286. 'Subnet_Mask=255.255.255.0
  287. 'DNS_Server=10.5.6.90
  288. 'DNS_Server=11.4.5.6
  289. 'Router=11.5.6.7
  290. 'Router=10.0.99.1
  291. #Lease_Time can be different for this range
  292. #specify 0 for infinity.Lease_Time
  293. 'Lease_Time=360
  294. 'Ethernet_Encp=1
  295. 'NETBIOS_Name_Srv=192.168.0.201
  296. #If you want to send option 43 back to client for
  297. #ranges in this section, specify it as flat option like:-
  298. '43=this is return string
  299. #or use the hex string in value
  300. '43=a6:87:b6:c9:ae:eb:89:09:a4:67:d5
  301. [DHCP-RANGE]
  302. #This is an examle of some host ranges, which will
  303. #be denied DHCP address. The trick is specify the
  304. #filters but do not specify any actual range.
  305. #Hosts falling in following ranges will not get IP.
  306. #If you uncomment the lines below
  307. 'Filter_Mac_Range=00:01:60:c5:4e:12-00:01:60:c5:4e:23
  308. 'Filter_Mac_Range=00:03:12:c5:4e:a1-00:03:12:c5:4e:aa
  309. 'Filter_Mac_Range=00:04:60:c5:4e:a1-00:04:60:c5:4e:a1
  310. 'Filter_Vendor_Class="MSFT 5.0"
  311. #No DHCP range is specified in this section
  312. [DHCP-OPTIONS]
  313. #These are global DHCP Options and would suppliment
  314. #client specific options and DHCP-RANGE options.
  315. #Network Boot (PXE) global options can also be here.
  316. #if any option has more than one value, immediately repeat
  317. #option for each value (not valid for flat and string options)
  318. #If options have client specific values, move/copy them
  319. #to specific client's section. If any option has DHCP range
  320. #specific value, move/copy them to [DHCP-RANGE] sections.
  321. #Subnet_Mast if not specified, taken as 255.255.255.0
  322. 'Subnet_Mask=255.255.255.0
  323. 'DNS_Server=10.5.6.90
  324. 'DNS_Server=11.4.5.6
  325. 'Router=11.5.6.7
  326. 'Time_Offset=0
  327. 'Time_Server=0.0.0.0
  328. 'Name_Server=0.0.0.0
  329. #You can optionally enclose string options values within "",
  330. #must do it, if string contains chars like . (dot) or : (colon)
  331. 'Boot_File="pxelinux.0"
  332. 'Boot_File_Size=255
  333. 'Root_Path=/
  334. 'Extension_Path=/linux/
  335. #Next_Server is PXEBoot TFTP Server
  336. 'Next_Server=192.168.0.1
  337. 'Cookie_Server=0.0.0.0
  338. 'Impress_Server=7.0.0.0
  339. 'RLP_Server=0.0.0.0
  340. 'Swap_Server=123.45.8.23
  341. 'Log_Server=0.0.0.0
  342. 'LPR_Server=2.0.0.0
  343. 'LPR_Server=3.0.0.0
  344. 'Forward_On/Off=1
  345. 'SrcRte_On/Off=0
  346. #Needs both continuous Entries for each policy filter, IP and mask
  347. 'Policy_Filter_IP=123.5.6.78
  348. 'Policy_Filter_Mask=255.255.255.240
  349. 'Default_IP_TTL=0
  350. 'Renewal_Time=120
  351. 'Rebinding_Time=240
  352. 'MTU_Timeout=0
  353. 'MTU_Plateau=89
  354. 'MTU_Plateau=234
  355. 'MTU_Interface=0
  356. 'MTU_Subnet=0
  357. 'Broadcast_Address=0.0.0.0
  358. 'Mask_Discovery=1
  359. 'Mask_Supplier=0.0.0.0
  360. 'Router_Discovery=1
  361. 'Router_Request=4.5.6.7
  362. #Needs both continuous Entries for each static route IP and mask
  363. 'Static_Route_IP=12.13.14.15
  364. 'Static_Route_Mask=255.255.255.0
  365. #second Static_Route
  366. 'Static_Route_IP=12.13.14.16
  367. 'Static_Route_Mask=255.255.255.0
  368. 'Trailers=0
  369. 'LDAP_URL=ldap://ldaphost.com
  370. 'ARP_Timeout=0
  371. 'Ethernet_Encp=1
  372. 'Default_TCP_TTL=0
  373. 'Keepalive_Time=0
  374. 'Keepalive_Data=0
  375. 'NIS_Domain=not specified
  376. 'NIS_Servers=0.0.0.0.0
  377. 'NTP_Servers=0.0.0.0
  378. 'NETBIOS_Name_Srv=192.168.0.201
  379. 'NETBIOS_Dist_Srv=192.168.0.201
  380. 'NETBIOS_Node_Type=8
  381. 'NETBIOS_Scope=not specified
  382. 'X_Window_Font=0.0.0.0
  383. 'X_Window_Manager=6.7.8.9
  384. 'NIS+_Domain_Name=achal
  385. 'NIS+_Server_Addr=22.33.44.55
  386. 'TFTP_Server_Name=not specified
  387. 'Home_Agent_Addrs=2.6.7.8
  388. 'SMTP_Server=192.168.0.201
  389. 'POP3_Server=192.168.0.201
  390. 'NNTP_Server=0.0.0.0
  391. 'WWW_Server=192.168.0.201
  392. 'Finger_Server=0.0.0.0
  393. 'IRC_Server=0.0.0.0
  394. 'StreetTalk_Server=0.0.0.0
  395. 'STDA_Server=0.0.0.0
  396. 'NDS_Servers=0.0.0.0
  397. 'NDS_Tree_Name=not specified
  398. 'NDS_Context=not specified
  399. 'Auto_Configure=1
  400. 'Name_Service_Search=8686
  401. 'Subnet_Selection=255.255.255.0
  402. 'DNS_Domain_Search=not specified
  403. 'TFTP_Phone_Server==0.0.0.0
  404. 'Call_Server=0.0.0.0
  405. 'Discrimination_String=not specified
  406. 'RemoteStatisticsServer=0.0.0.0
  407. 'Phone_Http_Proxy=127.0.0.7
  408. 'IP_Phone="MCIPADD=10.10.0.1,MCPORT=1719,TFTPSRVR=10.10.0.254,TFTPDIR=,VLANTEST=0"
  409. #You can specify missing options as flat options 
  410. #as optiontag=value like 233=value or 244=192.168.5.60
  411. #Values can also be specified in hex string like
  412. #233=4D:00:63:20:4E:43:20:23
  413. #options with suboptions can only be specified as hex string.
  414. #next few are sample flat option, (global mac boot options)
  415. #option mac-version
  416. '230=00:00:00:00
  417. #option mac-nb-img
  418. '234=ac:11:00:09:02:24:0a:4D:61:63:20:48:44:5F:4E:42:53:00:00:00:0:02:1b:53:68:61:72:65:64:49:6D:61:67:65:73:00:4E:65:74:42:6F:6F:74:20:48:44:2E:69:6D:67
  419. #option mac-apps-img
  420. '235="optisvbootbootimage.bin"
  421. #Following sections are client specific DHCP entries/options
  422. #You need to specify IP Adress only. Other options are optional.
  423. #More option Names can be copied from DHCP-OPTIONS to clients.
  424. #For BOOTP requests, only these options would be sent.
  425. #For DHCP requests. Missing Options will be supplimented from
  426. #first [DHCP-RANGE] options (if IP falls in any range), other Missing
  427. #options will be supplemented from [DHCP-OPTIONS].
  428. [00:41:42:41:42:05]
  429. #This is a client with MAC addr 00:41:42:41:42:05
  430. IP_Addr=192.168.0.211
  431. #DHCP will offer following hostname to this client
  432. 'HostName=TestHost
  433. #For example, you can specify DNS Servers, Routers separately for this client
  434. 'DNS_Server=10.5.6.90
  435. 'DNS_Server=11.4.5.6
  436. 'Router=11.5.6.7
  437. 'Router=4.6.7.34
  438. 'NETBIOS_Node_Type=8
  439. #Lease_Time can be different for this client
  440. #Lease_Time here should be < Lease_Time given under [TIMINGS]
  441. #specify 0 for infinity.Lease_Time
  442. 'Lease_Time=360000
  443. [00:41:42:41:42:00]
  444. #This is a client with MAC addr 00:41:42:41:42:00
  445. IP_Addr=192.168.0.200
  446. #No other options specified for this client
  447. #For non BOOPT requests, Missing Options will be supplimented from first [DHCP-RANGE]
  448. #options, if IP falls in any range. and other missing would be added from [DHCP-OPTIONS].
  449. [00:ff:a4:0e:ef:d5]
  450. #this is an example for MacOsX network boot, client specific options
  451. #for client having MAC addr 00:ff:a4:0e:ef:d5
  452. IP_Addr=10.10.0.12
  453. #you can omit the comments, these are for guidance only
  454. #Next Server (TFTP Boot Server) and Boot File can be different for this client
  455. 'Boot_File=pxelinux.0
  456. 'Boot_File_Size=255
  457. 'Root_Path=/
  458. 'Extension_Path=/linux/
  459. 'Next_Server=192.168.0.1
  460. #option mac-nc-client-unknown
  461. '220=00:00:00:00
  462. #option mac-nc-client-id
  463. '221=4D:61:63:20:4E:43:20:23:38
  464. #option mac-username
  465. '232="bootuser"
  466. #option mac-password
  467. '233="bootpassword"
  468. #option mac-machine-name
  469. '237=myComputer
  470. #option mac-client-nb-img
  471. '238="optisvbootimage.bin"