40 | | # Check if we can get to our low-rent DNS resolver. If so, we can accept a hostname instead of an IP. |
41 | | # Prompt the user for an IP (or hostname if DNS is available). |
42 | | # If we get a hostname, look up the A record. If there isn't one, demand an IP. |
43 | | # If we get an IP, look up the PTR record, and set the target system's hostname to the value. Otherwise, set it to `install-target-host`. |
44 | | # Given the IP, use ~~magic~~ the `netparams` script and `masks` file to get the netmask, broadcast, gateway, and CIDR notation. If we're not on cluster, give the user a chance to edit them by hand. |
45 | | # Kill `dhclient` if it's running, and flush eth0. Set the IP address, route, and other info. Set the MIT nameservers and clobber any existing values in resolv.conf |
| 40 | 1. Check if we can get to our low-rent DNS resolver. If so, we can accept a hostname instead of an IP. |
| 41 | 1. Prompt the user for an IP (or hostname if DNS is available). |
| 42 | 1. If we get a hostname, look up the A record. If there isn't one, demand an IP. |
| 43 | 1. If we get an IP, look up the PTR record, and set the target system's hostname to the value. Otherwise, set it to `install-target-host`. |
| 44 | 1. Given the IP, use ~~magic~~ the `netparams` script and `masks` file to get the netmask, broadcast, gateway, and CIDR notation. If we're not on cluster, give the user a chance to edit them by hand. |
| 45 | 1. Kill `dhclient` if it's running, and flush eth0. Set the IP address, route, and other info. Set the MIT nameservers and clobber any existing values in resolv.conf |