[root@centos ~]# systemctl restart network
Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
So DNS does not run. What should I now? CentOS7 is difficult.
DNS server does not run.
Re: DNS server does not run.
It tells you what to do next. You cut and pasted it in here. Try it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: DNS server does not run.
Are you able to ping IPs directly (eg 8.8.8.8)
If not, you'll need to resolve that issue first. Run:
ip addr
which will show you a list of your IP addresses with broadcasts. You can then check the broadcast IP against what you have been given by your provider/ISP. If that is all setup as it should be but you still can't ping an IP, it's probably best to contact your provider/ISP and ask them to check on the connections/give you the correct broadcast IP you need to use. I'm assuming that you are using static addresses but if not DHCP should allocate the correct information here and you should be fine.
If you have tried restarting networking with no effect, try setting the nameservers in /etc/resolv.conf to the nameservers your hosting provider/ISP provide. If they don't offer that then you could use 8.8.8.8 temporarily. You'd want to use the following on each line to define it:
nameserver <IP>
Once you've done that, try to ping a hostname again and see if that works.
-Jim
If not, you'll need to resolve that issue first. Run:
ip addr
which will show you a list of your IP addresses with broadcasts. You can then check the broadcast IP against what you have been given by your provider/ISP. If that is all setup as it should be but you still can't ping an IP, it's probably best to contact your provider/ISP and ask them to check on the connections/give you the correct broadcast IP you need to use. I'm assuming that you are using static addresses but if not DHCP should allocate the correct information here and you should be fine.
If you have tried restarting networking with no effect, try setting the nameservers in /etc/resolv.conf to the nameservers your hosting provider/ISP provide. If they don't offer that then you could use 8.8.8.8 temporarily. You'd want to use the following on each line to define it:
nameserver <IP>
Once you've done that, try to ping a hostname again and see if that works.
-Jim