diff options
Diffstat (limited to '_sources/configuration/dns.rst.txt')
-rw-r--r-- | _sources/configuration/dns.rst.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/_sources/configuration/dns.rst.txt b/_sources/configuration/dns.rst.txt new file mode 100644 index 0000000..0ba80e2 --- /dev/null +++ b/_sources/configuration/dns.rst.txt @@ -0,0 +1,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 | |