ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved KVM/QEMU DNS

    IT Discussion
    kvm qemu dns
    4
    8
    958
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • IRJI
      IRJ
      last edited by

      What is the easiest way to add DNS entries for my VMs on my local Ubuntu box? I would prefer to connect to VMs via DNS name vs IP address.

      dafyreD 1 Reply Last reply Reply Quote 0
      • dafyreD
        dafyre @IRJ
        last edited by

        @IRJ said in KVM/QEMU DNS:

        What is the easiest way to add DNS entries for my VMs on my local Ubuntu box? I would prefer to connect to VMs via DNS name vs IP address.

        Hosts file?

        IRJI 1 Reply Last reply Reply Quote 1
        • IRJI
          IRJ @dafyre
          last edited by

          @dafyre said in KVM/QEMU DNS:

          @IRJ said in KVM/QEMU DNS:

          What is the easiest way to add DNS entries for my VMs on my local Ubuntu box? I would prefer to connect to VMs via DNS name vs IP address.

          Hosts file?

          Duh

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Technically those affect hostnames, not DNS names. "DNS name" technically means "not using the hosts file." Semantics, but important to note for someone reading this that it doesn't actually do what was asked, but does what was meant.

            For a lot of people, the hostname and the DNS name are synonymous, but they are actually different things. And sometimes when troubleshooting networks, it matters quite a lot as both often exist.

            IRJI 1 Reply Last reply Reply Quote 0
            • IRJI
              IRJ @scottalanmiller
              last edited by

              @scottalanmiller said in KVM/QEMU DNS:

              Technically those affect hostnames, not DNS names. "DNS name" technically means "not using the hosts file." Semantics, but important to note for someone reading this that it doesn't actually do what was asked, but does what was meant.

              For a lot of people, the hostname and the DNS name are synonymous, but they are actually different things. And sometimes when troubleshooting networks, it matters quite a lot as both often exist.

              Right since you are technically not using the Domain Name Service. You are just statically mapping a host to an IP.

              scottalanmillerS 1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller @IRJ
                last edited by

                @IRJ said in KVM/QEMU DNS:

                @scottalanmiller said in KVM/QEMU DNS:

                Technically those affect hostnames, not DNS names. "DNS name" technically means "not using the hosts file." Semantics, but important to note for someone reading this that it doesn't actually do what was asked, but does what was meant.

                For a lot of people, the hostname and the DNS name are synonymous, but they are actually different things. And sometimes when troubleshooting networks, it matters quite a lot as both often exist.

                Right since you are technically not using the Domain Name Service. You are just statically mapping a host to an IP.

                Exactly. Some of us are old enough to have worked on computers, not before DNS existed, but before DNS was common and we had to use host files for everything and DNS wasn't in the picture. Then DNS came along later as a centralized replacement for host files.

                1 Reply Last reply Reply Quote 1
                • D
                  dyasny
                  last edited by

                  libvirt has dnsmasq built in, to serve DHCP. It can also be configured to serve DNS to the libvirt NAT network, and the host.

                  This is an example of a working configuration: https://fabianlee.org/2018/10/22/kvm-using-dnsmasq-for-libvirt-dns-resolution/

                  IRJI 1 Reply Last reply Reply Quote 2
                  • IRJI
                    IRJ @dyasny
                    last edited by

                    @dyasny said in KVM/QEMU DNS:

                    libvirt has dnsmasq built in, to serve DHCP. It can also be configured to serve DNS to the libvirt NAT network, and the host.

                    This is an example of a working configuration: https://fabianlee.org/2018/10/22/kvm-using-dnsmasq-for-libvirt-dns-resolution/

                    Pretty cool. Thanks.

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post