mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-28 21:07:43 +00:00
Use new_network_number, not new_network_address. Use search, not domain in /etc/resolv.conf.
This commit is contained in:
parent
5689130f1a
commit
f245ec1f68
@ -77,7 +77,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
|
|||||||
ifconfig $interface inet $new_ip_address $new_subnet_arg \
|
ifconfig $interface inet $new_ip_address $new_subnet_arg \
|
||||||
$new_broadcast_arg
|
$new_broadcast_arg
|
||||||
# Add a network route to the computed network address.
|
# Add a network route to the computed network address.
|
||||||
route add -net $new_network_address $new_subnet_arg dev $interface
|
route add -net $new_network_number $new_subnet_arg dev $interface
|
||||||
for router in $new_routers; do
|
for router in $new_routers; do
|
||||||
route add default gw $router
|
route add default gw $router
|
||||||
done
|
done
|
||||||
@ -88,7 +88,7 @@ if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
|
|||||||
ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg
|
ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg
|
||||||
route add -host $alias_ip_address $interface:0
|
route add -host $alias_ip_address $interface:0
|
||||||
fi
|
fi
|
||||||
echo domain $new_domain_name >/etc/resolv.conf
|
echo search $new_domain_name >/etc/resolv.conf
|
||||||
for nameserver in $new_domain_name_servers; do
|
for nameserver in $new_domain_name_servers; do
|
||||||
echo nameserver $nameserver >>/etc/resolv.conf
|
echo nameserver $nameserver >>/etc/resolv.conf
|
||||||
done
|
done
|
||||||
@ -125,11 +125,11 @@ if [ x$reason = xTIMEOUT ]; then
|
|||||||
ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg
|
ifconfig $interface:0 inet $alias_ip_address $alias_subnet_arg
|
||||||
route add -host $alias_ip_address dev $interface:0
|
route add -host $alias_ip_address dev $interface:0
|
||||||
fi
|
fi
|
||||||
route add -net $new_network_address
|
route add -net $new_network_number
|
||||||
for router in $new_routers; do
|
for router in $new_routers; do
|
||||||
route add default gw $router
|
route add default gw $router
|
||||||
done
|
done
|
||||||
echo domain $new_domain_name >/etc/resolv.conf.std
|
echo search $new_domain_name >/etc/resolv.conf.std
|
||||||
for nameserver in $new_domain_name_servers; do
|
for nameserver in $new_domain_name_servers; do
|
||||||
echo nameserver $nameserver >>/etc/resolv.conf.std
|
echo nameserver $nameserver >>/etc/resolv.conf.std
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user