diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-02-07 13:45:04 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-02-07 13:45:04 +0000 |
commit | 8105677d280cd24a5fab3808b472c039ebea912c (patch) | |
tree | 4bad59d79fda789ea6de298f6429c2bbc5f6e65a /mdk-stage1 | |
parent | af0646e74754046bad8fb92d8c4c0688e534dd58 (diff) | |
download | drakx-8105677d280cd24a5fab3808b472c039ebea912c.tar drakx-8105677d280cd24a5fab3808b472c039ebea912c.tar.gz drakx-8105677d280cd24a5fab3808b472c039ebea912c.tar.bz2 drakx-8105677d280cd24a5fab3808b472c039ebea912c.tar.xz drakx-8105677d280cd24a5fab3808b472c039ebea912c.zip |
don't reverse hostname lookup if dhcp already gave hostname+domain
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/network.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index d469cbe31..84eee2c8e 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -405,6 +405,9 @@ static enum return_type configure_network(struct interface_info * intf) char ips[50]; char * name; + if (hostname && domain) + return RETURN_OK; + wait_message("Trying to resolve hostname..."); strcpy(ips, inet_ntoa(intf->ip)); name = mygethostbyaddr(ips); @@ -419,7 +422,7 @@ static enum return_type configure_network(struct interface_info * intf) log_message("reverse name lookup on self failed"); - if (domain != NULL) + if (domain) return RETURN_OK; if (dns_server.s_addr != 0) { |