Use the "dns" command to configure or display DNS (Domain Name System) settings.
View settings
The following command displays the current DNS settings:
msh> dns
IPv4 DNS server configuration
The following command enables or disables the IPv4 DNS server address:
msh> dns "ID" server "server address"
The following command displays a configuration using the IP address 192.168.15.16 on a DNS 1 server:
msh> dns 1 server 192.168.15.16
You can register an IPv4 DNS Server address.
You can select an ID number between 1 and 3. You can select up to three ID numbers.
You cannot use "255.255.255.255" as the DNS server address.
IPv6 DNS server configuration
The following command enables or disables the IPv4 DNS server address:
msh> dns "ID" server6 "server address"
You can register IPv6 DNS Server address.
You can select an ID number between 1 and 3. You can select up to three ID numbers.
Dynamic DNS function setting
msh> dns "interface_name" ddns {on|off}
You can set the dynamic DNS function "active" or "inactive".
{on} means "active" and {off} means "inactive".
wlan can be specified only when the IEEE 802.11 interface is installed.
Interface name |
Interface configured |
---|---|
ether |
Ethernet interface |
wlan |
IEEE 802.11 interface |
Specifying the record overlap operation
msh> dns overlap {update|add}
You can specify operations performed when records overlap.
update: To delete old records and register new records.
add: To add new records and store the old records.
When CNAME overlaps, it is always changed, irrespective of the settings.
CNAME registration
msh> dns cname {on|off}
You can specify whether to register CNAME.
{on} means "active" and {off} means "inactive".
The CNAME registered is the default name beginning with rnp. CNAME cannot be changed.
A records registration
msh> dns arecord {dhcp|own}
dhcp: You can specify the method of registering an A record when the dynamic DNS function is enabled and DHCP is used.
own: To register an A record using the printer as the DNS client.
The DNS server address and the domain name already designated are used for the registration.
Registering AAAA record as DNS client when DDNS function is enabled and DHCPv6 is set
dns aaaarecord [dhcpv6|own]
dhcpv6: DHCPv6 server registers AAAA record as DNS client instead of the machine.
own: Machine registers AAAA record as DNS client.
Record updating interval settings
msh> dns interval [1-255]
You can specify the interval after which records are updated when using the dynamic DNS function.
The updating interval is specified hourly. It can be entered between 1 and 255 hours.
The default is 24 hours.
resolv.conf display
msh> dns resolv
Specifying the protocol when asking names during dual stacking
msh> dns resolv protocol {ipv4|ipv6}
This appears during dual stacking only.