Solved 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.
-
@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?
-
@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
-
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.
-
@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.
-
@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.
-
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/
-
@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.