Gui static IP and no DNS

Hello
I want to set static IP.
Yast2 -> network setting -> edit connection -> static IP with mask
It work, but I don’t have dns connection.
ping: opensuse.org: Name or service not known
ping 195.135.221.140 is OK

Then I set dhcp, it’s all OK

What should I do for static connection?
Thank you.

Did you define your DNS server(s) with YaST? It is one of the tabs on the same page where you define IP address.

Often your router does provide DNS service also, so try that one. Or the ones given you by your ISP.

Or a more general available one like Googles 8.8.8.8.

Hello
I have something like that:

https://ibb.co/gw7m53f

Also I have:

cat /etc/resolv.conf  
search (MY ISP) 
nameserver 8.8.8.8

Please post:

cat /etc/sysconfig/network/ifcfg-NAME-OF-YOUR-ETHERNETCARD

f.e:

cat /etc/sysconfig/network/ifcfg-eth0

also:

cat /etc/sysconfig/network/ifroute-eth0

if eth0 is your card

Please post the complete commandline and use Code-Tags:
https://forums.opensuse.org/showthread.php/536143-Using-Code-Tags-Around-Your-Paste

If you are using an private IP 192.168.x.y please do not mask them, they will not be routed to the bad Internet…
Here is my:

linux64:/home/stephan # cat /etc/sysconfig/network/ifcfg-eth0
NETWORK=''
DHCLIENT_SET_DEFAULT_ROUTE='yes'
IPADDR='192.168.0.2/24'
MTU='1500'
BOOTPROTO='static'
STARTMODE='auto'
ZONE='public'

And it still does not work?
When not, post

nslookup forums.opensuse.org

You may need to delete previous connections in your router. When replacing a main board ipv6 worked as before but ipv4 DNS failed. Deleting the information on the client stored on the router fixed the problem: Hilfe FRITZ!Box 7360 - Geräte und Benutzer

empty frozen

nslookup forums.opensuse.org
cat /etc/sysconfig/network/ifcfg-eth0
NETWORK=''
DHCLIENT_SET_DEFAULT_ROUTE='yes'
IPADDR='MYIP/24'
MTU='0'
BOOTPROTO='static'
STARTMODE='auto'


cat /etc/sysconfig/network/ifroute-eth0
empty

I’m connected to switch and I have public IP. I don’t have access to industrial router .