From: Juergen Keil <jk@tools.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] "Could Not Get DNS Address" on OS X
Date: Thu, 24 Mar 2005 11:08:38 +0100 (CET) [thread overview]
Message-ID: <200503241008.j2OA8c8E017113@imap3.tools.intra> (raw)
> I find the precompiled qemu for OS X to mostly work fine, but I get
> 'Could Not Get DNS Address' when I try to run it and am not connected
> to the network. As my entire interest in Qemu is to try to find a way
> to test x86 programs when I can't ssh to an x86 linux server, this is
> kind of a downer.
>
> Does Qemu really require a network connection to run?
No.
> Am I missing some option?
No.
> I tried "--dummy-net", and the option to set the number of NIC cards to 0.
I'm using the following change:
Index: slirp/slirp.c
===================================================================
RCS file: /cvsroot/qemu/qemu/slirp/slirp.c,v
retrieving revision 1.7
diff -u -B -r1.7 slirp.c
--- slirp/slirp.c 7 Oct 2004 23:27:35 -0000 1.7
+++ slirp/slirp.c 24 Mar 2005 09:56:46 -0000
@@ -149,7 +149,8 @@
if (get_dns_addr(&dns_addr) < 0) {
fprintf(stderr, "Could not get DNS address\n");
- exit(1);
+ // exit(1);
+ inet_aton("127.0.0.1", &dns_addr);
}
inet_aton(CTL_SPECIAL, &special_addr);
next reply other threads:[~2005-03-24 10:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-24 10:08 Juergen Keil [this message]
2005-03-24 12:45 ` [Qemu-devel] "Could Not Get DNS Address" on OS X Laurent Amon
-- strict thread matches above, loose matches on Subject: below --
2005-03-24 7:58 Niko Matsakis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503241008.j2OA8c8E017113@imap3.tools.intra \
--to=jk@tools.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).