-
|
Hi Everyone, I'm on CS v4.18.2.1. All DNS servers on the zone including external and internal DNS servers are set to 8.8.8.8 and 8.8.4.4. However, every time an instance is booted, it gets the VR's Ip as DNS server in addition to above DNS resolvers but the VR doesn't act as a DNS resolver. As a result, the VM fails to resolve through VR and tries the working ones (e.g. 8.8.8.8). This causes a huge delay in resolving hosts as it tries the VR first. How do I either prevent VMs to obtain VR's IP as DNS server or make the VR to act as DNS resolver? Any idea is highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 19 replies
-
|
@fnavidan |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I have a similar issue but after setting this parameter and restarting the VPC, servers still receive the VR's IP address. Should we restart the VR or how does this change kick in? I tried to renew the dhcp address but that doesn't do the trick |
Beta Was this translation helpful? Give feedback.
-
|
Upon further investigation inside the VR, I found that the dnsmasq service does not listen on port 53 which is causing both DNS service not to function and cloud-init inside VMs to fail get VM's password from VR. By further looking into /etc/dnsmasq.conf file inside the VR, I have figured out that problem is caused by two lines below: #interface=eth0 # Disables binding dnsmasq to the guest NIC Uncommenting first line and commenting the second one followed by restarting dnsmasq temporarily fixed the issue, making the VR a DNS resolver and accessible by cloud-init as a data source for passwords. I confirm that the network offering that the guest network is built with, has all services including DHCP, DNS, and UserData enabled and mapped to VirtualRouter. So, I'm not sure why CloudStack is writing these two lines in dnsmasq config file while DNS is enabled for the network offering. Also I have tried upgrading the VR version to v4.18.1 (latest version for 4.18.x) but still get the same result. Any idea would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
|
The network offering is a shared guest network one. I've already destroyed
VR and have restarted the network with cleanup. Below is the network
offering service map in DB:
select service, provider
from ntwk_offering_service_map
where network_offering_id = (
select id from network_offerings
where uuid = 'bbf17083-aee6-4904-9e69-e9362d3dc475'
);
+----------+---------------+
| service | provider |
+----------+---------------+
| Dhcp | VirtualRouter |
| Dns | VirtualRouter |
| Firewall | VirtualRouter |
| Lb | VirtualRouter |
| UserData | VirtualRouter |
+----------+---------------+
5 rows in set (0.00 sec)
…On Mon, Oct 6, 2025 at 8:30 AM Wei Zhou ***@***.***> wrote:
I'm running on a custom shared network offering. Both UI and DB show DNS,
DHCP, and UserData enabled and mapped to VirtualRouter. I't was previously
working. I'm not sure when it has been started to break.
@fnavidan <https://github.com/fnavidan>
can you share more details of the network offering ?
stopping/starting VR might help, as well as restarting network with cleanup
—
Reply to this email directly, view it on GitHub
<#11749 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKIF7YXQ7K7L77HIX4I2OKL3WID7XAVCNFSM6AAAAACHYVEXL2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINRQGEZTKMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Hi,
I'm on v4.18.2.1
Regards.
…On Tue, Oct 7, 2025 at 8:53 AM Wei Zhou ***@***.***> wrote:
The network offering is a shared guest network one. I've already destroyed
VR and have restarted the network with cleanup. Below is the network
offering service map in DB: select service, provider from
ntwk_offering_service_map where network_offering_id = ( select id from
network_offerings where uuid = 'bbf17083-aee6-4904-9e69-e9362d3dc475' );
+----------+---------------+ | service | provider |
+----------+---------------+ | Dhcp | VirtualRouter | | Dns | VirtualRouter
| | Firewall | VirtualRouter | | Lb | VirtualRouter | | UserData |
VirtualRouter | +----------+---------------+ 5 rows in set (0.00 sec)
… <#m_-3845268203206475123_>
On Mon, Oct 6, 2025 at 8:30 AM Wei Zhou *@*.*> wrote: I'm running on a
custom shared network offering. Both UI and DB show DNS, DHCP, and UserData
enabled and mapped to VirtualRouter. I't was previously working. I'm not
sure when it has been started to break. @fnavidan
<https://github.com/fnavidan> https://github.com/fnavidan
<https://github.com/fnavidan> can you share more details of the network
offering ? stopping/starting VR might help, as well as restarting network
with cleanup — Reply to this email directly, view it on GitHub <#11749
(reply in thread)
<#11749 (reply in thread)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKIF7YXQ7K7L77HIX4I2OKL3WID7XAVCNFSM6AAAAACHYVEXL2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINRQGEZTKMQ
<https://github.com/notifications/unsubscribe-auth/AKIF7YXQ7K7L77HIX4I2OKL3WID7XAVCNFSM6AAAAACHYVEXL2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINRQGEZTKMQ>
. You are receiving this because you were mentioned.Message ID: @.*>
@fnavidan <https://github.com/fnavidan>
I cannot reproduce the issue in 4.20
network offering
mysql> select * from ntwk_offering_service_map;
...
| 131 | 31 | Lb | VirtualRouter | 2025-10-07 06:44:01 |
| 132 | 31 | UserData | VirtualRouter | 2025-10-07 06:44:01 |
| 133 | 31 | Dns | VirtualRouter | 2025-10-07 06:44:01 |
| 134 | 31 | Dhcp | VirtualRouter | 2025-10-07 06:44:01 |
| 135 | 31 | Firewall | VirtualRouter | 2025-10-07 06:44:01 |
however, network only has 3 services
mysql> select * from ntwk_service_map;
...
| 107 | 220 | Dhcp | VirtualRouter | 2025-10-07 06:44:32 |
| 108 | 220 | UserData | VirtualRouter | 2025-10-07 06:44:32 |
| 109 | 220 | Dns | VirtualRouter | 2025-10-07 06:44:32 |
VR 1
***@***.***:~# cat /etc/dnsmasq.d/cloud.conf
bind-interfaces
listen-address=127.0.0.1,172.16.101.10
dhcp-range=set:interface-eth0-0,172.16.101.10,static
dhcp-option=tag:interface-eth0-0,15,cs1cloud.internal
dhcp-option=tag:interface-eth0-0,6,172.16.101.10,10.0.32.1,8.8.8.8
dhcp-option=tag:interface-eth0-0,3,172.16.101.1
dhcp-option=eth0,26,1500
dhcp-option=tag:interface-eth0-0,1,255.255.255.0
***@***.***:~#
VR 2 (after restarting network with cleanup)
***@***.***:~# cat /etc/dnsmasq.d/cloud.conf
bind-interfaces
listen-address=127.0.0.1,172.16.101.10
dhcp-range=set:interface-eth0-0,172.16.101.10,static
dhcp-option=tag:interface-eth0-0,15,cs1cloud.internal
dhcp-option=tag:interface-eth0-0,6,172.16.101.10,10.0.32.1,8.8.8.8
dhcp-option=tag:interface-eth0-0,3,172.16.101.1
dhcp-option=eth0,26,1500
dhcp-option=tag:interface-eth0-0,1,255.255.255.0
***@***.***:~#
—
Reply to this email directly, view it on GitHub
<#11749 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKIF7YSCS4H7QHEJPJKQIAT3WNPN5AVCNFSM6AAAAACHYVEXL2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINRRGE4DMMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
After upgrading to 4.20.2.0, I was able to get around this problem by setting use.external.dns back to false followed by destroying VR and restarting network. It now works fine.!
Thank you for all your helpful info.