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.

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

To display the DNS client state:

vrouter 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:

vrouter 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.