<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and master branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the 
comments.
-->

##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
 * Bug Report

##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
VR
~~~

##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on master 
branch.
-->

~~~
4.11.1
~~~

##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced 
networking, etc.  N/A otherwise
-->
Advanced networking, KVM

##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
CentOS Linux release 7.4.1708

##### SUMMARY
<!-- Explain the problem/feature briefly -->
Guest vms do not get public dns servers (from zone "public dns" setting) in 
dhcp offer
As result vr ip is only ip in resolv.conf file in guest vm
VPC restart with "Cleanup" does not help

VR has dnsmasq as dns server, which resolvs guest vms hostnames, but not public 
domains

if I try to check for example (from guest vm)
~~~
dig google.com @172.16.0.17

; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com @172.16.0.17
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 17071
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com.                    IN      A

;; Query time: 0 msec
;; SERVER: 172.16.0.17#53(172.16.0.17)
;; WHEN: Thu Sep 20 17:33:50 CEST 2018
;; MSG SIZE  rcvd: 28
~~~

##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->

when zone setting "public DNS server" = 8.8.8.8
~~~
lease {
  interface "eth0";
  fixed-address 172.16.0.23;
  option subnet-mask 255.255.255.240;
  option routers 172.16.0.17;
  option dhcp-lease-time 2671200;
  option dhcp-message-type 5;
  **option domain-name-servers 172.16.0.17,8.8.8.8;**
  option dhcp-server-identifier 172.16.0.17;
  option dhcp-renewal-time 1335600;
  option broadcast-address 172.16.0.31;
  option dhcp-rebinding-time 2337300;
  option host-name "postfix-mail-vm1";
  option domain-name "cs16cloud.internal";
  renew 2 2018/10/02 15:34:36;
  rebind 3 2018/10/17 05:30:25;
  expire 0 2018/10/21 02:15:25;
}
~~~

##### ACTUAL RESULTS
<!-- What actually happened? -->

<!-- Paste verbatim command output between quotes below -->
~~~
lease {
  interface "eth0";
  fixed-address 172.16.0.23;
  option subnet-mask 255.255.255.240;
  option routers 172.16.0.17;
  option dhcp-lease-time 2671200;
  option dhcp-message-type 5;
  **option domain-name-servers 172.16.0.17;**
  option dhcp-server-identifier 172.16.0.17;
  option dhcp-renewal-time 1335600;
  option broadcast-address 172.16.0.31;
  option dhcp-rebinding-time 2337300;
  option host-name "postfix-mail-vm1";
  option domain-name "cs16cloud.internal";
  renew 2 2018/10/02 15:34:36;
  rebind 3 2018/10/17 05:30:25;
  expire 0 2018/10/21 02:15:25;
}
~~~


[ Full content available at: https://github.com/apache/cloudstack/issues/2856 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to