3
Addressing
71
Example: Configuring DNS servers
In
this
example,
the
DNS
client
is
configured
to
use
a
single
DNS
server
with
IPv4
address
10.0.0.1.
Device:/>
set
DNS
DNSServers=10.0.0.1
To
show
the
configured
DNS
server:
Device:/>
show
dns
Property
Value
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐
DNSServers:
10.0.0.1
CacheTTL:
60
CacheNegativeTTL:
30
QueueSize:
1024
RepeatTime:
5
RepeatCount:
3
Comments:
<empty>
If
the
IPv4
address
10.0.0.1
is
defined
in
the
SEG
address
book
with
the
name
dns1_ip
,
the
command
is:
Device:/>
set
DNS
DNSServers=dns_ip1
With
three
multiple
alternate
DNS
servers
called
dns_ip1,
dns_ip2
and
dns_ip3,
the
command
is:
Device:/>
set
DNS
DNSServers=dns_ip1,dns_ip2,dns_ip3
To
test
the
DNS
lookup,
assuming
a
public
Internet
DNS
is
configured,
the
command
is:
Device:/>
dns
www.google.com
ip4
info:
209.85.149.99
209.85.149.103
209.85.149.104
209.85.149.105
209.85.149.106
198.41.0.4
TTL:
60