Skip to content

Commit

Permalink
Readme actualization
Browse files Browse the repository at this point in the history
  • Loading branch information
mersinvald committed Apr 24, 2017
1 parent 758d0a6 commit b9a49c8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,19 @@ $HOME/.config/batch_resolve.toml
/etc/batch_resolve.toml
```

Configuration includes DNS servers with their QPS properties and retries on failure count
Configuration includes DNS servers, maximum simultaneously running resolve tasks and retries on failure count
```toml
[[dns]]
addr = "8.8.8.8:53" # Google primary DNS
qps = 1000 # How much queries per second will be performed on this DNS

# DNS servers are only accepted as socket addresses
# If port is not specified default DNS :53 port will be used
[[dns]]
addr = "8.8.4.4" # Google secondary DNS
qps = 500
dns = [
"8.8.8.8"
]

# Simultaneous resolve tasks
tasks = 5000

# Times to retry on connection timeout
retry = 10
retry = 5
```

Configuration template can also be found [here](batch_resolve.toml)
Expand Down
20 changes: 10 additions & 10 deletions README_RUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ $HOME/.config/batch_resolve.toml
/etc/batch_resolve.toml
```

Конфигурация включает DNS сервера, количество запросов в секунду к каждому и количество повторов по таймауту.
Конфигурация включает DNS сервера, количество одновременно выполняемых задач резолва и количество повторов по таймауту.
```toml
[[dns]]
addr = "8.8.8.8:53" # Google primary DNS
qps = 1000 # Сколько запросов в секунду следует направлять этому DNS
# Адреса DNS серверов
# Если порт не указан -- по умолчанию будет использован полт 53
dns = [
"8.8.8.8"
]

# Если порт не указан, будет использован порт 53
[[dns]]
addr = "8.8.4.4" # Google secondary DNS
qps = 500
# Количество одновременных задач
tasks = 5000

# Количество повторов по таймауту
retry = 10
# Количество повторов запроса по таймауту
retry = 5
```

Шаблон конфигурации можно найти [здесь](batch_resolve.toml)
Expand Down

0 comments on commit b9a49c8

Please sign in to comment.