DNS Problem on Ubuntu 18.04 - Netplan

Discussion in 'Proxmox VE: Networking and Firewall' started by Junqueira Junior, Dec 3, 2018.

  1. Junqueira Junior

    Junqueira Junior New Member

    Joined:
    Dec 3, 2018
    Messages:
    1
    Likes Received:
    0
    I'm having problems to set a proper DNS server on the Ubuntu 18.04 LTS.

    I've found several solutions through the use of the netplan configuration file. I have tried severals modifications without success. I can get into the VM and I am able to connect to other computers using the IP address. However, I cannot use the DNS server. Hence, it is not possible to install anything via apt install....

    Right now my "/etc/netplan/01-netcfg.yaml" looks like:

    network:
    version: 2
    renderer: networkd
    ethernets:
    ens18:
    dhcp4: no
    dhcp6: no
    addresses: [YY.YYY.YY.XX/22]
    gateway4: YY.YYY.YY.254
    nameservers:
    addresses: [8.8.4.4,8.8.8.8]
    routes:
    - to: YY.YYY.YY.254/22
    via: 0.0.0.0
    scope: link



    Do you guys have any idea what i am doing wrong?

    Thanks!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice