qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Carl Karsten <carl@personnelware.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] adding search to dhcp
Date: Tue, 10 May 2011 12:40:26 -0500	[thread overview]
Message-ID: <BANLkTikyfTE9a=dmcL3zk8nNMqv3_3vwDQ@mail.gmail.com> (raw)

man qemu...
hostname=name   Specifies the client hostname reported by the builtin
DHCP server.

I would like to add a technically similar option: search
It would be sent along the same path that the above hostname parameter takes.

This would allow the guest OS to reference other boxes on my LAN by
just hostname, not FQDN. I have many scripts that rely on this, and so
they break when I try to run them in a qemu vm.


man dhcp-options
       option domain-search domain-list;

         The domain-search option specifies a 'search list' of Domain Names to
         be used by the client to  locate  not-fully-qualified  domain  names.
         The  difference  between  this option and historic use of the domain-
         name option for the same ends is  that  this  option  is  encoded  in
         RFC1035 compressed labels on the wire.  For example:

           option domain-search "example.com", "sales.example.com",
                                "eng.example.com";

I would expect the syntax to look like this:

qemu -hda 1.qcow2 -net nick -net
user,hostname=qemu,search=example.com,sales.example.com


-- 
Carl K

             reply	other threads:[~2011-05-10 17:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 17:40 Carl Karsten [this message]
2011-05-11  9:02 ` [Qemu-devel] adding search to dhcp Stefan Hajnoczi
2011-05-11 11:01   ` Markus Armbruster
2011-05-11 15:22     ` Carl Karsten
2011-05-11 16:08       ` Stefan Hajnoczi
2011-05-11 20:49         ` Jan Kiszka
2011-05-11 21:08           ` Michael Tokarev
2011-05-12  9:00             ` Markus Armbruster

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='BANLkTikyfTE9a=dmcL3zk8nNMqv3_3vwDQ@mail.gmail.com' \
    --to=carl@personnelware.com \
    --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).