Is there really a nameserver ruing on 192.168.1.1? (Probably it's your wifi router.) Try deleting that entry from resolv.conf and see if you can now resolve names.
Since this is a server I'd suggest a different configuration:
1) Plug it directly into the router with an Etheet cable.
2) Create an entry in /etc/network/interfaces like this:
Code:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
Please read: https://help.ubuntu.com/lts/servergu...ame-resolution
برچسب:
نویسنده: استخدام کار