Configuring DNS proxy static records

This section is located at the network dns static-records level.

To add a static DNS record, use the following command:

Admin@nodename# create network dns static-records

Specify the parameters:

Parameter

Description

enabled

Enable/disable static record usage:

  • on

  • off

name

Record name.

description

DNS record description.

domain

Static record FQDN (Fully Qualified Name), e.g. www.example.com.

dns-a-records

List of IP addresses the UserGate server will return when this FQDN is queried.

Command

Admin@nodename# show network dns static-records

displays information about all existing static DNS records. To display information about a specific record, use the following command:

Admin@nodename# show network dns static-records <static-record-name>

Example of creating a static DNS record:

Admin@nodename# create network dns static-records name "Test DNS static record" description "Test DNS static record description" enabled on domain example.com dns-a-records [ 10.10.0.100 ] Admin@nodename# Admin@nodename# show network dns static-records Test DNS static record name : Test DNS static record description : Test DNS static record description domain : example.com dns-a-records : 10.10.0.100 enabled : on

To edit information about static DNS records:

Admin@nodename# set network dns static-records <static-record-name>

The set of parameters available to change is the same as those for the create command.

An example of editing a previously created static DNS record:

Admin@nodename# set network dns static-records "Test DNS static record" dns-a-records [ 10.10.0.101 ] Admin@nodename# show network dns static-records "Test DNS static record" name : Test DNS static record description : Test DNS static record description domain : example.com dns-a-records : 10.10.0.100; 10.10.0.101 enabled : on

To delete a static record, use the following command:

Admin@nodename# delete network dns static-records <static-record-name>

You can also delete only the dns-a-records parameter values from the static record.

An example of deleting the value of the dns-a-records parameter in a previously created record and deleting the entire static DNS record.

Admin@nodename# delete network dns static-records "Test DNS static record" dns-a-records [ 10.10.0.101 ] Admin@nodename# show network dns static-records "Test DNS static record" name : Test DNS static record description : Test DNS static record description domain : example.com dns-a-records : 10.10.0.100 enabled : on Admin@nodename# delete network dns static-records "Test DNS static record" Admin@nodename# show network dns static-records Admin@nodename#