summaryrefslogtreecommitdiff
path: root/_sources/configuration/dns.rst.txt
blob: 0ba80e231ba1829abcdc467b50759a3e8b26133f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[dns]
=====

Overview DNS section. 

**dns1=x.x.x.x**
  By default is not defined.

  Specifies primary DNS to be sent to peer.

**dns2=x.x.x.x**
  By default is not defined.

  Specifies secondary DNS to be sent to peer.

.. admonition:: Note:

    Params in this section also may be applied with ``accel-cmd reload`` command, but for new connections.

Also *accel-ppp* has very interesting way to allocate DNS addresses which sent RADIUS server. Received RADIUS attributes is more prior than params in config. For *ppp* (pppoe, pptp, l2tp, sstp) connection type used attributes ``MS-Primary-DNS-Server``, ``MS-Secondary-DNS-Server``. For ipoe connection type need send attributes ``DHCP-Domain-Name-Server``

.. code-block:: sh
  
  +----+-------------------+-------------------------+----+-------------------------+
  | id | username          | attribute               | op | value                   |
  +----+-------------------+-------------------------+----+-------------------------+
  |  1 | user              | DHCP-Domain-Name-Server | := | 100.64.254.254          |
  |  2 | user              | DHCP-Domain-Name-Server | := | 192.168.254.254         |
  
  +----+-------------------+-------------------------+----+-------------------------+
  | id | username          | attribute               | op | value                   |
  +----+-------------------+-------------------------+----+-------------------------+
  |  3 | user              | MS-Primary-DNS-Server   | := | 100.64.254.254          |
  |  4 | user              | MS-Secondary-DNS-Server | := | 192.168.254.254         |