DNS server does not run.

Issues related to configuring your network
Post Reply
akira
Posts: 2
Joined: 2015/02/20 14:52:44

DNS server does not run.

Post by akira » 2015/02/20 15:00:52

[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.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: DNS server does not run.

Post by TrevorH » 2015/02/20 15:12:35

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

jimbo8098
Posts: 12
Joined: 2015/01/30 03:06:11

Re: DNS server does not run.

Post by jimbo8098 » 2015/02/21 15:52:11

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

Post Reply