jbruyet
October 19th, 2017, 04:11 PM
Hey all I just installed Ubuntu 17.10 Beta 2 server with a static address and DNS isn't working. I can ping network addresses but I can't resolve the addresses.
When I did the installation I configured a static address for the server. I've tried reinstalling the server a couple of times with two different ISO images but no joy. Googling this issue hasn't produced anything useful because the instructions are for using the GUI.
Cat /etc/resolv.conf gives me this:
jobee@NeDi:~$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
jobee@NeDi:~$
Cat /etc/network/interfaces gives me this:
jobee@NeDi:~$ cat /etc/network/interfaces
# dns-* options are implemented by the resolvconf package, if installed
auto ens160
iface ens160 inet static
address 192.168.2.32
netmask 255.255.255.0
gateway 192.168.2.1
dns-nameservers 192.168.2.90 192.168.1.26 192.168.3.28
dns-search link.com
jobee@NeDi:~$
Again, I can ping network addresses but I can't resolve any of them. This is the first time I've used a new version of Ubuntu server. All other times I manually changed interfaces and resolv.conf and life was fine.
My question -- how do I configure a static address and still have DNS work for me?
Thanks,
Joe B
When I did the installation I configured a static address for the server. I've tried reinstalling the server a couple of times with two different ISO images but no joy. Googling this issue hasn't produced anything useful because the instructions are for using the GUI.
Cat /etc/resolv.conf gives me this:
jobee@NeDi:~$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
jobee@NeDi:~$
Cat /etc/network/interfaces gives me this:
jobee@NeDi:~$ cat /etc/network/interfaces
# dns-* options are implemented by the resolvconf package, if installed
auto ens160
iface ens160 inet static
address 192.168.2.32
netmask 255.255.255.0
gateway 192.168.2.1
dns-nameservers 192.168.2.90 192.168.1.26 192.168.3.28
dns-search link.com
jobee@NeDi:~$
Again, I can ping network addresses but I can't resolve any of them. This is the first time I've used a new version of Ubuntu server. All other times I manually changed interfaces and resolv.conf and life was fine.
My question -- how do I configure a static address and still have DNS work for me?
Thanks,
Joe B