1%% 2%% %CopyrightBegin% 3%% 4%% Copyright Ericsson AB 1997-2020. All Rights Reserved. 5%% 6%% Licensed under the Apache License, Version 2.0 (the "License"); 7%% you may not use this file except in compliance with the License. 8%% You may obtain a copy of the License at 9%% 10%% http://www.apache.org/licenses/LICENSE-2.0 11%% 12%% Unless required by applicable law or agreed to in writing, software 13%% distributed under the License is distributed on an "AS IS" BASIS, 14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15%% See the License for the specific language governing permissions and 16%% limitations under the License. 17%% 18%% %CopyrightEnd% 19%% 20%% 21%% Dns & resolver defintions 22%% 23 24%% milli second for requests 25-define(RES_TIMEOUT, 2000). 26 27%% milli second to wait before next request after a failure 28-define(RES_SERVFAIL_RETRY_TO, 1500). 29 30%% number of retry 31-define(RES_RETRY, 3). 32 33%% seconds between file_info 34-define(RES_FILE_UPDATE_TM, 5). 35 36%% number of cached dns_rr 37-define(CACHE_LIMIT, 100). 38 39%% refresh interval 40-define(CACHE_REFRESH, 60*60*1000). 41 42%% maximum packet size 43-define(PACKETSZ, 512). 44 45%% maximum domain name 46-define(MAXDNAME, 256). 47 48%% maximum compressed domain name 49-define(MAXCDNAME, 255). 50 51%% maximum length of domain label 52-define(MAXLABEL, 63). 53 54%% Number of bytes of fixed size data in query structure 55-define(QFIXEDSZ, 4). 56 57%% number of bytes of fixed size data in resource record 58-define(RRFIXEDSZ, 10). 59 60%% 61%% Internet nameserver port number 62%% 63-define(NAMESERVER_PORT, 53). 64