How to get an empty file /etc/resolv.conf ?
When creating a virtual machine, entries like "search openstacklocal" or "domain openstacklocal" always appear in the /etc/resolv.conf file. I want that after creating any virtual machine in the file /file the lines “search openstacklocal” or “domain openstacklocal” were missing. I found a way to change these lines, but my goal is completely missing them. How can this be implemented? Which function needs to be fixed and where? I use Openstack train
When creating a virtual machine, entries like "search openstacklocal" or "domain openstacklocal" always appear in the /etc/resolv.conf file.
I want that after creating any virtual machine in the file /file the lines “search openstacklocal” or “domain openstacklocal” were missing.
I found a way to change these lines, but my goal is completely missing them.
How can this be implemented? Which function needs to be fixed and where?
On Tue, 2024-06-18 at 10:06 +0000, iamotvertov@gmail.com wrote: this is not a bug so no funciton needs to be fixed. this is an artifact of how you have configured your openstack. first thing to confirm is in nova you have set https://docs.openstack.org/nova/latest/configuration/config.html#api.dhcp_do... to the empty string this will remove any domain suffix form names in nova and the metadta it generated for the vm the second place this can come form is neutron they have a way to defien a domain for the neutron networks that is provided by dhcp/dns withing the cloud the final place this can come form is designate the dns as a service project which allow defienign default domains per neutron netowrk and or port which will be configured in a real dns server. form the name i belvie this is comign form neutron internal dns supprot which is documeted here https://opendev.org/openstack/neutron/src/branch/master/doc/source/admin/con... https://docs.openstack.org/neutron/latest/admin/config-dns-int.html they also have [DEFAULT]dns_domain option that defaults to openstacklocal so to prevent this you need to set that to the epmty string allso i.e. in /etc/neutron/neutron.conf add ``` [DEFAULT] dns_domain="" ```
I use Openstack train
participants (2)
-
iamotvertov@gmail.com
-
smooney@redhat.com