Hi Melanie,

You can.... but it's a hack and it is not persistent whatsoever. The following 
will be wiped out every time you restart VR AND every time you create a new VM 
since it is updated on every handshake with ACS management:

If you edit the third line in /etc/dnsmasq.d/cloud.conf on the VR this will 
achieve it:

dhcp-range=set:interface-eth0-0,10.1.1.1,static
dhcp-option=tag:interface-eth0-0,15,cs2cloud.internal
dhcp-option=tag:interface-eth0-0,6,<NEW DNS SERVER 
HERE>,10.1.1.1,8.8.8.8,8.8.4.4
dhcp-option=tag:interface-eth0-0,3,10.1.1.1
dhcp-option=tag:interface-eth0-0,1,255.255.255.0

Once done do a "service dnsmasq restart", then clear the DHCP lease on your 
guest and request again - this will now pass the new nameserver in the DHCP 
lease.

For reference - I tried changing the network table entry and this does *not* 
accomplish anything:

> SELECT id,name,dns1,dns2 FROM cloud.networks where id=207
| id      | name      | dns1      | dns2      |
| 207     | dagnet2   | 1.1.1.1   | 9.9.9.9  

As far as I can see there's no API call to manipulate this either.

Regards,
Dag Sonstebo
Cloud Architect
ShapeBlue
 

On 13/03/2019, 13:41, "Melanie Desaive" <[email protected]> wrote:

    Hi all,
    
    for an isolated Network: Is it possible to configure an alternative DNS
    Server IP for the network through the API or GUI? 
    
    I want an individual IP from the isolated network itself to be pushed
    as DNS server by the VR DHCP-server. Not the DNS servers defined for
    the zone and not the VRs IP itsself.
    
    I know it is kind of a hack, but it would help us a lot to circumvent
    the VR for DNS in that use case.
    
    Greetings,
    
    Melanie
    -- 
    -- 
    Heinlein Support GmbH
    Schwedter Str. 8/9b, 10119 Berlin
      
    https://www.heinlein-support.de
     
    Tel: 030 / 40 50 51 - 62
    Fax: 030 / 40 50 51 - 19
      
    Amtsgericht Berlin-Charlottenburg - HRB 93818 B
    Geschäftsführer: Peer Heinlein - Sitz: Berlin
    
    


[email protected] 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 

Reply via email to