summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/network.c5
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) {