summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2002-09-17 15:58:48 +0000
committerFlorin Grad <florin@mandriva.com>2002-09-17 15:58:48 +0000
commit84cc3e3365a84a9f74976b3c9665071991065100 (patch)
treef3ea7b2b991df0e47175c4895a748300ab7c238f /perl-install/standalone
parent73e9c490157feafbfd38e0d843bf860b56f7b316 (diff)
downloaddrakx-84cc3e3365a84a9f74976b3c9665071991065100.tar
drakx-84cc3e3365a84a9f74976b3c9665071991065100.tar.gz
drakx-84cc3e3365a84a9f74976b3c9665071991065100.tar.bz2
drakx-84cc3e3365a84a9f74976b3c9665071991065100.tar.xz
drakx-84cc3e3365a84a9f74976b3c9665071991065100.zip
add the nameserver IP variable in advanced mode
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakgw6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw
index 6a62db069..b6fd68158 100755
--- a/perl-install/standalone/drakgw
+++ b/perl-install/standalone/drakgw
@@ -271,15 +271,19 @@ Driver: %s", $device, $conf->{NETWORK}, $conf->{IPADDR}, $conf->{BOOTPROTO}, $al
if ($auto ne _('Yes')) {
$reconf_dhcp_server_intf = 0;
$server_ip = $conf->{IPADDR};
+ $nameserver_ip = $conf->{IPADDR};
$lan_address = $conf->{NETWORK};
$in->ask_from('',
_("I can keep your current configuration and assume you already set up a DHCP server; in that case please verify I correctly read the C-Class Network that you use for your local network; I will not reconfigure it and I will not touch your DHCP server configuration.
+The default DNS entry is the Caching Nameserver configured on the firewall. You can replace that with your ISP DNS IP, for example.
+
Else, I can reconfigure your interface and (re)configure a DHCP server for you.
", $device),
[ { label => _("C-Class Local Network"), val => \$lan_address, type => 'entry' },
{ label => _("(This) DHCP Server IP"), val => \$server_ip, type => 'entry' },
+ { label => _("The DNS Server IP"), val => \$nameserver_ip, type => 'entry' },
{ label => _("Re-configure interface and DHCP server"), val => \$reconf_dhcp_server_intf, type => 'bool' } ])
or goto step_warning_already_conf;
}
@@ -374,7 +378,7 @@ if ($reconf_dhcp_server_intf) {
option subnet-mask 255.255.255.0;
option domain-name "homelan.org";
- option domain-name-servers $server_ip;
+ option domain-name-servers $nameserver_ip;
range dynamic-bootp $lan_address.16 $lan_address.253;
default-lease-time 21600;