Operation Manual

132
DNS Commands
E-DOC-CTC-20040210-0030 v1.0
dns fwdadd
Add a DNS forwarding entry. The entries in the forwarding list determine which DNS server should be used for which
PC. If an identification cannot be established within the local LAN, the request is forwarded to another DNS server, on
another network (Internet/LAN to LAN connection). The connection is negotiated within a PPP link.
SYNTAX:
where:
EXAMPLE:
RELATED COMMANDS:
dns fwdadd dns = <ip-address>
src = <ip-address>
mask = <ip-mask (dotted or cidr)>
[metric = <number{0-100}>]
[direct = <no/yes>]
dns The IP address of the (remote) DNS server. REQUIRED
src The source IP address (pool) of the host(s) using this DNS server. REQUIRED
mask The appropriate source IP (sub)netmask. REQUIRED
metric A number between 0 and 100.
Represents the metric (weight factor) for this DNS route.
OPTIONAL
direct Selects whether DNS replies are sent directly back to the client or are
being relayed by the DNS forwarder.
OPTIONAL
=>dns fwdlist
DNS SRC Metric Direct Permanent
10.0.0.138 10.0.0.2 1 no yes
=>dns fwdadd dns=10.0.0.138 src=10.0.0.3 mask=24 direct=1
Dns forwarding server added.
=>dns fwdlist
DNS SRC Metric Direct Permanent
10.0.0.138 10.0.0.2 1 no yes
10.0.0.138 10.0.0.3 1 yes yes
=>
dns fwddelete Delete a DNS forwarding entry.
dns fwdlist List all forwarding entries.