DNS clientΒΆ

Domain Name Service (DNS) provides name to IP address mapping.

Here is an example of DNS configuration to send DNS queries to the 192.168.0.254 server, and search for example.local domain.

vsr running config# vrf main
vsr running vrf main# dns
vsr running dns# server 192.168.0.254
vsr running dns# search example.local
vsr running dns# commit

To display the DNS client state:

vsr running config# show state vrf main dns
dns
    search example.local
    server address 192.168.0.254
    ..

The same configuration can be made using this NETCONF XML configuration:

vsr running config# show config xml absolute vrf main dns
<config xmlns="urn:6wind:vrouter">
  <vrf>
    <name>main</name>
    <dns xmlns="urn:6wind:vrouter/dns">
      <server>
        <address>192.168.0.254</address>
      </server>
      <search>example.local</search>
    </dns>
  </vrf>
</config>

See also

The command reference for details.