Commit f74f4349 authored by Wolfgang Bumiller's avatar Wolfgang Bumiller Committed by Dietmar Maurer

DNS ui/api: ipv6 support

parent b33af6f4
...@@ -883,17 +883,17 @@ __PACKAGE__->register_method({ ...@@ -883,17 +883,17 @@ __PACKAGE__->register_method({
}, },
dns1 => { dns1 => {
description => 'First name server IP address.', description => 'First name server IP address.',
type => 'string', format => 'ipv4', type => 'string', format => 'ip',
optional => 1, optional => 1,
}, },
dns2 => { dns2 => {
description => 'Second name server IP address.', description => 'Second name server IP address.',
type => 'string', format => 'ipv4', type => 'string', format => 'ip',
optional => 1, optional => 1,
}, },
dns3 => { dns3 => {
description => 'Third name server IP address.', description => 'Third name server IP address.',
type => 'string', format => 'ipv4', type => 'string', format => 'ip',
optional => 1, optional => 1,
}, },
}, },
......
...@@ -20,21 +20,21 @@ Ext.define('PVE.node.DNSEdit', { ...@@ -20,21 +20,21 @@ Ext.define('PVE.node.DNSEdit', {
{ {
xtype: 'pvetextfield', xtype: 'pvetextfield',
fieldLabel: gettext('DNS server') + " 1", fieldLabel: gettext('DNS server') + " 1",
vtype: 'IPAddress', vtype: 'IP64Address',
skipEmptyText: true, skipEmptyText: true,
name: 'dns1' name: 'dns1'
}, },
{ {
xtype: 'pvetextfield', xtype: 'pvetextfield',
fieldLabel: gettext('DNS server') + " 2", fieldLabel: gettext('DNS server') + " 2",
vtype: 'IPAddress', vtype: 'IP64Address',
skipEmptyText: true, skipEmptyText: true,
name: 'dns2' name: 'dns2'
}, },
{ {
xtype: 'pvetextfield', xtype: 'pvetextfield',
fieldLabel: gettext('DNS server') + " 3", fieldLabel: gettext('DNS server') + " 3",
vtype: 'IPAddress', vtype: 'IP64Address',
skipEmptyText: true, skipEmptyText: true,
name: 'dns3' name: 'dns3'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment